11-15-2012 10:00 AM
I have a txt file that reads
time, data1, data2, data3, data4, data5, yes/no
example:
0,450,427,421,480,622,0 4,561,513,478,466,540,0 8,547,531,510,492,515,0 12,528,524,513,495,525,1 36,531,524,515,505,534,1 65,537,528,519,511,539,1
Where the last bit realates to a buzzer
I need a graph that shows all 5 data point (so a graph with 5 lines)
How would I do this?
Also, is there a way to show the yes/no part of this in LanView?
Solved! Go to Solution.
11-15-2012 10:05 AM - edited 11-15-2012 10:06 AM
not sure about LanView, but you can certainly do it using LabVIEW.
I will describe it in a code snippet
11-15-2012 10:14 AM - edited 11-15-2012 10:20 AM
here it is:
It is very simple.
1. Open the text file as a spreadsheet file. You can wire a path control or if left blank, it will prompt for a path.
2. Set comma as delimiter.
3. Display the values on the graph.
I only added a numeric array indicator so that you can see the values as being exactly the ones from the file.
To learn more about LabVIEW, I suggest you try looking at some of these tutorials.
11-15-2012 10:28 AM
Thanks so much! I'm really new to this. Stupid question, what are those blue indicators and what are they called?
11-15-2012 12:17 PM
Since you are really new to this, please look at those tutorials that Ray, so kindly mentioned. Those 'blue indicators' are the graph and array indicators that you see on the image of the front panel.
11-15-2012 01:23 PM
As Dennis mentionned, it would be a good idea to review the online courses as the controls and indicators are very basic features of LabVIEW.
You'll discover many things that will be useful for you.