LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get data (txt file with data from 5 sensors) into a graph?

Solved!
Go to solution

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?

0 Kudos
Message 1 of 6
(2,603 Views)

not sure about LanView, but you can certainly do it using LabVIEW.

 

I will describe it in a code snippet

Message 2 of 6
(2,601 Views)
Solution
Accepted by topic author sofiakyle

 

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.

Download All
Message 3 of 6
(2,595 Views)

Thanks so much! I'm really new to this. Stupid question, what are those blue indicators and what are they called?

0 Kudos
Message 4 of 6
(2,589 Views)

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.

0 Kudos
Message 5 of 6
(2,571 Views)

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.

0 Kudos
Message 6 of 6
(2,556 Views)