05-16-2009 02:06 AM
labview nuebe
I have a VI which follows -- DAQmx create channel analog voltage input --> DaQmx timing --> DAQmx start task, then reads and writes in a while loop. I want to be able to stop the device "close DAQmx tasks", change input channels then restart the dev. I want to keep the VI running while I start and stop the DAQmx device. I want to do this by using a "power" button that outputs a boolean true /false, which will start and stop the device.. Right now I can do this by putting a stop button in the while loop, but that stops the vi from running.
Does anyone understand what I am talking about? Can you help me out with this task, or direct to some example which does something like this. The VI is set up like most any example on the example section dealing with analog voltage input aquisition, but I don't know how to open and close the daqmx channels while keepinf the VI running. I want to turn the channels on and off at the daq device, not just in the VI routine.
Thank you.
05-16-2009 05:28 AM
05-16-2009 01:59 PM
I nested while loops but, I think I am not nderstanding the boolean values to turn the while loops on and off.
Here is my code, can you look and tell me why my boolean switches don't work
05-16-2009 04:07 PM