04-03-2017 04:24 AM
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.
04-03-2017 04:40 AM
It will be good if you can share piece of code or the data you received from aurdino and the format you expect?
04-03-2017 04:46 AM
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
04-03-2017 04:48 AM
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.
04-03-2017 05:05 AM
If every time the data comes in same order use Array Subset or Index array to Split the data (Temperature and Pressure)
04-03-2017 05:14 AM
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
04-03-2017 05:23 AM
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
04-03-2017 05:55 AM - edited 04-03-2017 05:56 AM
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
04-03-2017 05:56 AM
please check now
06-06-2018 09:48 AM
Please I need the lm35 heat sensor on labview and arduino with code