11-03-2016 06:36 AM
Hi Guys,
i'm a beginner on Labview, I don't have enough experience.
I have two different sensors connected to Arduino and I'm collecting data from COM3. However, my intention is to represent each sensor by a column.
then take those data from the array to display it on both 2D array and intensity graph.
till now I have problem with indexing, as I can see my results only on one column.
please check VI attached and any idea will help.
Thanks
Solved! Go to Solution.
11-03-2016 06:49 AM - edited 11-03-2016 06:52 AM
Hi N.,
till now I have problem with indexing, as I can see my results only on one column.
No, it's not a problem of "indexing". It's a problem of stgring to number conversion!
You receive text lines containing two data values: you should parse those lines to get these two values and build an array with them. Then you show that array in your intensity graph!
(Using ExpressVIs to convert 1D-array to 2D-array is almost always wrong…)
Recommendation: Use ScanFromString with a format string of "%s %d %s %d" to parse a text line…
please check VI attached and any idea will help.
There is no VI. There are only images…
i'm a beginner on Labview, I don't have enough experience.
Having no experience is no problem - but you should take the free online resources offered by NI to actually learn LabVIEW!
Another recommendation:
Change your arduino sketch to send the data as "1,xx,2,yy" text line. It will be much easier to parse with your PC…
11-03-2016 06:55 AM
Hi GredW,
i'm planning to have some courses with NI soon enough, in the meantime i'm trying to learn myself, and i'll upload the VI.
sorry it's my bad.
Regards,
Anthony
11-03-2016 06:57 AM
11-03-2016 07:02 AM
is that alright now ?
11-03-2016 08:54 AM
11-03-2016 09:04 AM
Hi GredW,
this is much better and easier than i was expecting.
I do like the smiplicity of the VI.
Thanks,
PS: how can I make the intensity graph display the numbers as small squres not rectangular,
my plan is to make the intensity graph shows the extra pressure sensor as red squre, the medium as orange and the normal as blue.
your solution is awesome.
cheers,
Anthony
11-03-2016 02:13 PM
11-23-2016 04:57 AM
Hello GerdW,
I want to ask you a question please,
can I update this VI to detect the movement as (sensor spartial resolution technique).
looking forward your reply.
Thanks,
Anthony
11-24-2016 11:04 AM