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

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.

Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
0 Kudos
Message 2 of 3

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.

0 Kudos
Message 3 of 3