Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple analog read serial communication arduino

Solved!
Go to solution

Hello,

I'm working on a project and I'm new to Labview,

Can someone tell me how to read multiple analog Read on Labview in Serial communication with Arduino UNO?

I've tried it, but the data is somehow error.

I also attached my current vi and arduino code.

 

Please help me.

 

 

 
 
Download All
0 Kudos
Message 1 of 11
(7,099 Views)

You'll have better luck at https://decibel.ni.com/content/groups/labview-interface-for-arduino where the hobbyists who use Arduino can be found

0 Kudos
Message 2 of 11
(7,087 Views)

Thank you, I still haven't get the solution yet, but thanks for telling me.

 
0 Kudos
Message 3 of 11
(7,043 Views)

Hi,

 

I will try to look into this the next few days, but what I see now is that you read bytes without knowing how many bytes there are available at the serial port.

Use the property node 'Bytes at serial port' to see how many bytes there are and read those bytes.

 

Kees

0 Kudos
Message 4 of 11
(7,032 Views)
Solution
Accepted by watha2

Hi,

 

From your Arduino project you are sending more then one value. But in you VI you do not analyse the incomming data to split up Voltage and Current.

I would suggest that you send a fixed string with voltgae data and current data so that you know in your VI how many bytes you should receive and how to split up the data.

 

Kees

0 Kudos
Message 5 of 11
(7,019 Views)

reviewing the code embedded in the microcontroller Arduino, this good but repeatedly write port, for some time working on a similar project and the solution was to save the data ports in variables and then print to the port only once between each one identified data must place such as "#".

In the LabVIEW program must read the plot and do a search so that filtres data by data, received from the arduino

0 Kudos
Message 6 of 11
(6,692 Views)
Do you have a question? A remark? Or something else?
Anyway for a new question, please start a new thread.
greetings from the Netherlands
0 Kudos
Message 7 of 11
(6,685 Views)

@Albert.Geven wrote:
Do you have a question? A remark? Or something else?
Anyway for a new question, please start a new thread.

He spent a great deal of time last night spamming every single thread on these message boards related to Arduino.

 

 

0 Kudos
Message 8 of 11
(6,674 Views)

You can see an example for reading multiple analog inputs

Download All
Message 9 of 11
(6,604 Views)

@Tom. wrote:

You can see an example for reading multiple analog inputs


Are you dense or something?

There is already an answer marked as the solution.

0 Kudos
Message 10 of 11
(6,593 Views)