LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

generate constant voltage under Specifying Conditions

Hope this will help you.

Munna
0 Kudos
Message 11 of 17
(1,125 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 17
(1,104 Views)

Thank you Munna!!

0 Kudos
Message 13 of 17
(1,078 Views)

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...

 

0 Kudos
Message 14 of 17
(1,076 Views)

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!!!!!

 

0 Kudos
Message 15 of 17
(1,047 Views)
0 Kudos
Message 16 of 17
(1,039 Views)
Cool
0 Kudos
Message 17 of 17
(1,032 Views)