Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save waveform history to file

I am measuring a signal with a cRIO-Modul which is plotted into a waveform. I increased the history-data-points of that waveform. I tried to save the complete waveform history into a file but everytime I only get the last 10000 data points (although the history has 100000 data-points saved).

 

I am using the DMA-Mode and my loop-rate is 10000 and number of scans is also 10000. I detected a connection between the number of scanns and the data-points that are saved but I cannot increas my number of scanns.

 

Is there an easy whay to save the complet history data of the waveform into a signal on the push of a button?

 

Thanks,

Jan

0 Kudos
Message 1 of 4
(3,590 Views)

Could you please post your RT VI?

 

Where did you increase the History Data, at a Graph?

This is just a property of the Graph itself and has nothing to do with the data you get from the wire branch.

 

 

Christian

0 Kudos
Message 2 of 4
(3,579 Views)
Here is my Host- and my FPGA-Code. The lower while-loop with the case-structure should do the job but somehow it does not work as i expect it to work.
Download All
0 Kudos
Message 3 of 4
(3,575 Views)

As I mentioned before, the history length of the chart is just a property of the chart itself.

When creating a local variable from the chart you still get the number of point you write into the chart.

 

Make a little example under Windows where you generate a waveform with 1k point with every iteration and write it into a chart. Create a local variable reading of the chart and check the length of the outgoing waveform there. Independent from the history length, it will always be 1k.

 

If you need to save data continously, then look at some RT examples which do that with Low-Level File I/O VIs.

 

 

Christian

0 Kudos
Message 4 of 4
(3,567 Views)