08-26-2014 04:46 AM - edited 08-26-2014 04:58 AM
Hope this will help you.
08-26-2014 06:57 AM
Ok, this can be simplified so much.
An Analog Output holds the last value that was written to it. So you just need to set the voltage each loop iteration. And you don't need the case structure either. Use a Select function to choose your output voltage.
Initialize the AO task outside of the main loop and close it after the main loop.
08-27-2014 02:46 AM
Thank you Munna!!
08-27-2014 02:49 AM - edited 08-27-2014 02:56 AM
Really Really thank you crossrulz !!!!
I'm trying to make I/P also as a virtual channel, but the daqmx event can't compare with constant directly...
Do you know me how to solve this problem?? I search from the internet but there is no solution...
08-27-2014 09:28 PM
Really Really thank you crossrulz !!!!
I'm trying to make I/P also as a virtual channel, but the daqmx event can't compare with constant directly...
Do you know me how to solve this problem?? I search from the internet but there is no solution...
And also, that is to control one relay. I try to put 2 of this program inside one VI but it can not work... I try to use two while loops or put them in one loop, both cannot work...
could you tell me how to put them together?
Thank you!!!!!
08-27-2014 10:04 PM
08-27-2014 11:03 PM