LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run multiple sensors using Arduino UNO and Labview

I'm trying to run multiple sensors (DHT11, PIR Motion sensor, and LDR) using Arduino UNO. I'm able to run the individual VI but I can't run all the sensors together. I want all the values to be updated together. When I run them together, don't get any value. I attached my VI below. Please help..

0 Kudos
Message 1 of 3
(3,627 Views)

You are trying to open the same COM port (and Arduino) THREE TIMES!

 

Open the Arduino ONCE, configure it ONCE.

 

THEN enter your main loop.

 

Also remember that an Arduino cannot multitask so I don't think your parallel loops inside your main loop are going to work, unless LINX does some magic I don't know about.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 3
(3,597 Views)

This is how I would start. It is a very simple start and you can add more sophistication later. I do not have your vi's so I could not hook up the error out for most of the vi's. This will give you some idea of how to get started.

Tim
GHSP
0 Kudos
Message 3 of 3
(3,584 Views)