Jump to content

Read data from text file and display on graph


Recommended Posts

As has been said on LAVA before, people here are happy to guide and help but you need to make some sort of effort yourself as a starting point.

 

So which part of the task are you stuck on ? I would start by breaking the problem down, can you

 

a ) read the data from your text file ? If not look in the LabVIEW examples

 

b) can you plot simple data on a graph ?  if not look in the LabVIEW examples.

 

In fact there is an example provide by LabVIEW in the NI example finder that does basically what you need, plus several VI's on the NI LabVIEW forums which show you how to do this as well.

 

Come back if you have a more specific question having looked at some of these.

Link to comment

Several thing jump out looking at your VI.

 

1) File I/O is time expensive and the file is opened before read,  read and then closed, reading the same file twice is a  waste of time a lot quicker to open read once and the manipulate your data in the types you want. You can simple open read all data then, use spreadsheet string to array.

 

2) User event structures are not used in the way you have used it here, look at some event structure examples and read

 

http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/event_struct_outside_loop/

 

3) finally what data are you actually trying to plot, just trying to understand your data a little

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.