03-24-2022 02:46 PM
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.
Solved! Go to Solution.
03-24-2022 03:17 PM - edited 03-24-2022 03:17 PM
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.
03-25-2022 09:09 AM - edited 03-25-2022 09:09 AM
For all the reasons santo_13 mention above something like this is the best you can hope for...
03-25-2022 09:52 AM
Dear RTSLVU,
That's working as hoped. Thanks very much.