05-17-2009 03:03 PM
Solved! Go to Solution.
05-18-2009 12:10 AM
1.Connect the trigger to DI line (if its a digital trigger)
2.Just modify the example at this path: C:\Program Files\National Instruments\LabVIEW 8.5\examples\DAQmx\Digital\Read Values.llb\Read Dig Chan.vi with the sine wave generation logic in case structure within the loop.
The example is simple digital input read and if your code needs some more logic you can build it around.
Post back for queries.
05-18-2009 01:56 PM
Good Afternoon my8os,
You do not need a timed loop. The simplest way to program this is to have a DAQ Task setup with the appropriate waveform. Start the output and a timer on the user trigger. When the correct time has elapsed, stop the loop/task. You can use the Elapsed Time Express VI to count 1 second. It will output a Boolean when the time has elapsed.
If you wanted to have a slightly more elegant (and complicated) program, you can use an Event Structure to monitor for the user input and enter your 1 sec analog output loop when needed.
05-18-2009 03:16 PM