07-11-2008 04:17 PM
07-11-2008
04:32 PM
- last edited on
10-01-2025
01:49 PM
by
Content Cleaner
I'm not sure what kind of architecture the vision builder created for you. I would recommend you setup a state machine. You can have the digital line of the USB monitored inside each iteration of the while loop. When that line goes high, you change states to an Idle state until the user hits the continue button. You interface with the USB-6009 using the daqmx driver. Just monitoring a single line on the board is a very simple function. Look at some of the shipping examples to see how to do this.
For information on state machines see: https://www.ni.com/en/support/documentation/supplemental/16/simple-state-machine-template-documentat...
or: http://zone.ni.com/devzone/cda/tut/p/id/7595
07-11-2008
05:01 PM
- last edited on
10-01-2025
01:50 PM
by
Content Cleaner
With DAQmx you can also use events. This is especially useful if you have a producer-consumer architecture. The producer loop has the event structure that responds to button presses, as well as the DAQmx event. The consumer loop is the one that's doing the work. You can get an overview of DAQmx events here. There's also a couple of examples the ship with LabVIEW.
07-11-2008 05:12 PM
07-11-2008 05:17 PM
07-11-2008 05:23 PM
07-14-2008 07:50 AM