09-17-2009 07:43 PM
Solved! Go to Solution.
09-17-2009 08:00 PM
09-17-2009 09:14 PM
09-17-2009 10:01 PM
Attaching code is as simple as using the 'Add Attachments' link right below the message body.
What you want to do is add a case statement. This is basic stuff and you should look at the free LabVIEW tutorials.
09-17-2009 10:28 PM
09-17-2009 10:57 PM
You've got this inside out. As it is now, the VI will only work if the Start button is pressed before you start the VI.
Put the DAQ stuff inside the case structure, then the start button and case structure inside the loop.
You should put a small wait statement in the false case so that the loop isn't running at top speed eating CPU cycles when all it is doing is polling the start button when the button is still false.
09-18-2009 01:02 AM
Thank you so much, but I tried it and I'm not sure if I'm doing something wrong with that idea, but I couldn't get it to work. If I put all the DAQ stuff inside the case structure, it does not continually collect data. But if I leave the case structure on the outside, the selector terminal has nowhere to be wired to.
Let me start from the beginning: the VI (that I have attached below, slightly different than above) simply starts collecting data right away when you press the white run arrow at the top toolbar, and does not stop until you press the "stop" button. I would like to control its start AND stop with buttons on the front panel, with continuous data collection in between the pressing of start and stop. I know it involves case structures and while loop(s) but I can't seem to get it wired correctly to work.
09-18-2009 08:16 AM
09-18-2009 10:46 AM