LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

splitting the income data from Arduino in labview

Good Morning, 

 

I wrote my code in Arduino Uno to detect a pressure and temperature. 

 

i'm using A0 to A3 pins as a pressure sensors and A4 as a temperature one. so i already defined them in my code. (the pressure sensor is a mat of 4X4 rows and columns, so i defined the digital pins from 9 to 12 to give high to the mat accordingly).

 

i build my VI and i'm representing my pressure data over an intensity graph, using spreadsheet spring to array and then replace array subset. 

 

i recently added the temperature scale, i tried to connect it from Visa Read into Fract/Exp string to number. 

 

however, the Arduino serial monitor display everything correctly. but i can't manage it on LabVIEW to split those sensors. 

 

I know that there's another post about this subject. i tried every solution in that post and still now working.

 

i tried to connect split signals input from spreadsheet string to array and then connect them to my destination scales. won't work either. Maybe i'm connecting this function in wrong way. 

 

 

looking for advises. 

 

 

 

 

 

Thank you. 

0 Kudos
Message 1 of 14
(3,789 Views)

It will be good if you can share piece of code or the data you received from aurdino and the format you expect?

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 14
(3,776 Views)

Hi there, 

 

thanks for your reply. 

 

in the attachment you'll find a picture to represent the output data, the original diagram and what i'm trying with splitting signals 

 

 

thanks 

Download All
0 Kudos
Message 3 of 14
(3,768 Views)

my code reads the pressure 4 times before reading the temperature. and if you notice in the array there's a number of 65.49  that should be for the temperature. 

 

that's why i'm confused and have no idea how to split my incoming data. 

0 Kudos
Message 4 of 14
(3,765 Views)

If every time the data comes in same order use Array Subset or Index array to Split the data (Temperature and Pressure)

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 14
(3,749 Views)

as you can see i'm using replace subset array, and when i'm using index array or array subset. the VI is breaking down. 

 

i tried this, i might connect something wrong. 

 

however, here's the attachment. check it out

0 Kudos
Message 6 of 14
(3,744 Views)

the arrays from two different dimensions, 

 

the intensity graph is 2D array while the temperature is 1D. 

 

when you connect the index array or the subset one to the new feed elements, it will work with one of them not both. 

 

however, i don't have any training on labview, i always learn from the forums, so sorry if i ask a lot sometimes. 

 

thanks 

0 Kudos
Message 7 of 14
(3,739 Views)

Try to save your vi in LV2015 and then share, Not able to View your code.

 

try to go through LabVIEW Basics as per as this task explore more about arrays and how to use them in Looping

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 8 of 14
(3,730 Views)
0 Kudos
Message 9 of 14
(3,726 Views)
Please I need the lm35 heat sensor on labview and  arduino with code
0 Kudos
Message 10 of 14
(3,106 Views)