LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I configure DAQmx Send Software Trigger?

I am new to this software package.  I'm trying to configure my aquisition to start collecting sample when I press a button on the screen.  I have a working vi.  However, it begins collection data as soon as I run it.  I am using a M series board and DAQmx controls.
0 Kudos
Message 1 of 2
(3,137 Views)
StuJ,
 
If you want to begin collecting data after pressing a button on your front panel, you can simply put a while loop before the DAQmx Start Task/DAQmx Read VI. Wire the conditional terminal to a "start" button. This will repeatedly check the value of the button, and exit the loop when the button has been pressed. If you are using the DAQmx Create Channel VI and/or the DAQmx timing VI, put the while loop after these and wire the task output/error lines through the while loop.
 
Keep in mind that you most likely want to put a Wait in the while loop so that your system is not constantly polling the control.
 
Michael P
National Instruments
--
Michael P
National Instruments
0 Kudos
Message 2 of 2
(3,127 Views)