LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to program labview to read a file data from an other code and make graph

if you can give me an example
0 Kudos
Message 1 of 3
(3,055 Views)
You'd better post this question in the LabVIWE section of the Developer Exchange.

Anyway, I suggest you to look in the examples shipped with LabVIEW: you can find some basic VI that can help to solve your problem.
In Search Examples >> Fundamentals >> File I/O you can learn how to read data from a file.
In Fundamentals >> Graph and Charts you can find examples on how to graph data.

The basic problem is the format of data stored on file: all is easy if they are in plain text, some moreproblem will arise in case they are stored in binary format.

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(3,055 Views)
Depending on exactly what form your data is in, you will be looking at some sort of VI similar to the attached. From my vast experience :=).....the biggest challenge in importing unknown data formats, is whether it's "BigEndian" or "LittleEndian" data...that is...is it sent most significant bit, or least significant bit first. It's a simple matter to reverse the data, and see what gives you a reasonable looking graph. If you have the direction reversed, you will usually have a discontinuous bunch of vertical lines. Anyway...give this a shot, and let me know what happens.
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 3 of 3
(3,055 Views)