LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running 2 measurements at simultanously.

Solved!
Go to solution

Hi,

 

You've probably answer this question a million times.

But I have these 2 while loops taking measurments, of distance  and water level(using resistance). And independentlythey are working as hoped. 

My questions is, what would be the best way of getting them to work in the same VI??

I keep getting  a 5003 and 5006 error when I try running them as is.

 

Thanks in advance.

 

VI is attached.

0 Kudos
Message 1 of 4
(1,170 Views)
Solution
Accepted by topic author Bandit1234

Unfortunately, you cannot, it is because the program that runs on the Arduino can do only ONE TASK at a time, while it is taking measurements of distance (Digital pulse width), it cannot take measurements of water level (Analog voltage).

 

Even if you program directly on the Arduino, it can run the instructions sequentially and at any point in time, only one instruction runs.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(1,164 Views)
Solution
Accepted by topic author Bandit1234

For all the reasons santo_13 mention above something like this is the best you can hope for...

 

read2.png

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(1,120 Views)

Dear 

That's working as hoped. Thanks very much.

0 Kudos
Message 4 of 4
(1,111 Views)