Attached is a program I wrote to generate and acquire signals and write the acquired voltage values to a text file. I would like to use a trigger to start recording my acquired signal (and eventually, I would like to use the same trigger to write the generated signal, so that the generated and acquired signals are synchronized); however, as the program is now, every time I try to run a test, I continue to get an error message related to the analog trigger. Physically, I have a live wire hooked up to PFI 0/AI START TRIG (pin #11 on my E-Series SCB-68), but no return wire.
(1) Is the trigger in the right place in the program to do what I want?
(2) Do I need a return wire in addition to the live wire for the analog trigger?
Thanks for your time!