LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simple analog output and input with DAQmx

Solved!
Go to solution

Hi guys,

 

I made a vi that is supposed to write a voltage (and current), and read a voltage (and current).

Both write process and read process works perfectly when I enable them separetly.

But I cannot enable read while I write process is running.

 

I think there are something wrong in my vi.

Is there anyone can figure out what happens?

0 Kudos
Message 1 of 2
(2,760 Views)
Solution
Accepted by topic author Xiang00

I resolved this issue by myself. It's because I put two case loops (write process and read process) into one while loop. The while loop does not run until all of the case loop ends, which made I can only write or read.

 

To resolve this issue, I can either put the case loops into different while loops or use master slave structure.

0 Kudos
Message 2 of 2
(2,739 Views)