LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

loading data from excel/notepad to display on waveform chart

I won't be near a computer that has LabVIEW on it for at least a week to be able to put together any kind of demonstration.  Perhaps someone else following this thread may be able to help.  What you have so far is a pretty basic VI.  What you need is to advance this VI to a real architecture.  Probably a state machine type of architecture.   Perhaps also a producer/consumer based on events.  Look these up in LabVIEW examples and also on the New.....  menu function.  Your state machine would need at least 3 states:  Idle, acquire data, load and display wavefrom.
Message 11 of 15
(1,346 Views)
Anybody knows what i can do?? Cos im new to this.
0 Kudos
Message 12 of 15
(1,330 Views)
Hi holla,
 
In order for us to help you, we need to know what you want.  Can you explain a bit more?
 
Do you want a program that gathers data and then saves this data to a file?
Do you want a program that loads saved data and then displays the values?
Do you want a program that loads data but doesn't display the values until you press a button?
Do you want a program that performs some sort of data analysis on loaded values?
 
Regards,
Kevin S.
Applications Engineer
National Instruments
0 Kudos
Message 13 of 15
(1,308 Views)
I want to be able to load saved data and display the values graphically. For the waveform chart, the y-axis is  0-5V and for the x-axis is to measure the time from 0-3600 sec. The graph should be able to scroll so that it could see the previous and next values. If it is possible, there will also be something like a textbox that can be scroll to view the data from the notepad (the data will be stored in notepad).
0 Kudos
Message 14 of 15
(1,292 Views)

First of all, you are not storing data in notepad. You are not storing data in Excel. You are storing data on your hard drive. It is a text file that can be viewed by any number of other programs. Second, as has been already answered ac ouple of times in this thread, you just need to call the Read From Spreadsheet File function to load and display the file in a graph. It will display all of the data in the file. No need to scroll. Since you are not saving any time information, there is no way to format the x-axis. The built in tools of a graph will allow you to zoom if that is what you want. If you want, you can also display the data in an array indicator. Where and when you place the Read From Spreadsheet File function is up to you. It can be in the basic example you already posted or in a separate VI.

 

I would stronly suggest you review the learning LabVIEW options that are available at http://www.ni.com/academic/lv_training/how_learn_lv.htm. This is all very basic stuff and you keep asking the same thing over and over again and the answer about reading from a file isn't going to change.

 

 

0 Kudos
Message 15 of 15
(1,277 Views)