LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform icon history data problem

We all know that the historical data of the waveform chart can be cleared through the attribute node, but assigning an empty array to the attribute node will clear all the historical data. But I only want to clear part of the historical data. What should I do?

0 Kudos
Message 1 of 11
(2,438 Views)

Write a waveform or array into the history property node that only includes the part of the data you want to keep.

0 Kudos
Message 2 of 11
(2,416 Views)

Hi guy from China,

 


ok@fine wrote:

We all know that the historical data of the waveform chart can be cleared through the attribute node, but assigning an empty array to the attribute node will clear all the historical data.


You use a property node to read/write the history of a chart.

 


ok@fine wrote:

But I only want to clear part of the historical data. What should I do?


Read the history, "clear part of it", write the history…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 11
(2,414 Views)

Thank you for your reply.For example, when daqmx collects data in real time, the waveform chart adopts the refresh mode of strip chart. At this time, the waveform will be continuously displayed. If the historical data of the waveform chart is cleared regularly, it will lead to the discontinuous display of the graph. How to solve this problem?

0 Kudos
Message 4 of 11
(2,372 Views)

Which of us ever said to "clear it regularly"?

 

A chart has a history.  You said you want to eliminate part of the history.

 

Don't write an empty array to the history property node.  Write an array that contains the data you want to keep to the history property node.

 

How often do you plan on rewriting the history of the chart?  Why are you eliminating part of the history?

0 Kudos
Message 5 of 11
(2,365 Views)

Thank you for your reply.I want to show the data on the waveform chart in real time. What should I do?

0 Kudos
Message 6 of 11
(2,359 Views)

Hi guy from China,

 


ok@fine wrote:

Thank you for your reply.I want to show the data on the waveform chart in real time. What should I do?


Just wire the data to the chart terminal.

Why do you want to fiddle with chart history?

(When you really need to change/edit that history data so often you really should be using a graph instead…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 11
(2,356 Views)

Now we encounter the problem that too much historical data leads to the slow display of signals on the waveform chart, so we want to solve this problem by changing the historical data of the waveform diagram

0 Kudos
Message 8 of 11
(2,352 Views)

Hi guy from China,

 


ok@fine wrote:

Now we encounter the problem that too much historical data leads to the slow display of signals on the waveform chart, so we want to solve this problem by changing the historical data of the waveform diagram


Simple solution: change the history buffer size…

 

Again: when you need/want to edit the history data of a chart so often you really should be using a graph instead!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 11
(2,348 Views)

Thank you. I'll try the graph

0 Kudos
Message 10 of 11
(2,347 Views)