LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I display my waveform file

I use write waveform to a file.VI to save my test result,but when i want to recall the result and display it in a waveform chart using read a waveform from a file.VI, I can't find anything in the waveform chart.
 
can you help me?
0 Kudos
Message 1 of 7
(3,497 Views)
It would be helpful if you attached an actual data file and also the VI you used to save it. Other than that, its pretty hard to say what you might be doing wrong.
0 Kudos
Message 2 of 7
(3,481 Views)
Please see my VI and saved data.
 
Download All
0 Kudos
Message 3 of 7
(3,477 Views)
Your problem is caused by your use of a waveform data type for each single element you write to the chart. The history then contains an array of waveform data types - each with a single element. You could do something like the code below but it doesn't make much sense to me to use a timed loop and then loose the dt information when you read the data back. Here's a VI that does it a little differently.
Download All
0 Kudos
Message 4 of 7
(3,459 Views)
Hi Dennis,
 
thanks for your help.
 
I change my Vi according your code, but X axis is number not the system time. I want to display the system time (X axis ) in the data generation chart. How can i do?
0 Kudos
Message 5 of 7
(3,430 Views)
To display time on the x axis, you can write to a couple of property nodes just like is done in the shipping example called Real-Time Chart. You could create a waveform data type and wire that to the chart. The difference would be to use a single waveform. For example, you could use a shift register and a build array function to create the Y array that you wire to a Build Waveform function. For this, you would not need to use a chart. A graph could be used.
0 Kudos
Message 6 of 7
(3,421 Views)

Hi Dennis,

 

Can you update your chart data and save.vi for me?

Thanks. 

0 Kudos
Message 7 of 7
(3,405 Views)