LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify WaveformChart history data length programmatically in LabVIEW?

How can I change waveformchart history data length in Labview during a VI's running?
0 Kudos
Message 1 of 8
(3,384 Views)

I have wanted to do this a couple of times myself.

This can only be changed at edit time,
and
it must be done via the pop-up.

What problem does this cause? There may be a work-around.

Ben


Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 8
(3,384 Views)
> How can I change waveformchart history data length in Labview during a
> VI's running?

Since this buffer is pretty integrated into the execution of the
compiled VI, it isn't possible to change it at runtime. It will
automatically expand to allow new plots in the 2D array case, but the
circular dimension is fixed at compile time.

If you are using the waveform datatype, the buffer is measured in
waveforms, which can each hold any number of points from zero to 2B. So
this datatype does give you another degree of flexibility.

Greg McKaskle
Message 3 of 8
(3,384 Views)
"any number of points from zero to 2B"

Is that 2b hex or "to be determined" or a typo?

I never noticed an upper limit. Is there one?


Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 8
(3,384 Views)
> "any number of points from zero to 2B"
>
> Is that 2b hex or "to be determined" or a typo?
>

2B is my shorthand for ~2 Billion, or 2^31 - 1.

This is effectively the upper limit on LV arrays
since they use a signed I32 to store their size
for each dimension. And of course we are already
having to look forward to the day that we bump this
to a 64 bit number. Joy, joy.

Greg McKaskle
0 Kudos
Message 5 of 8
(3,384 Views)
Thank all of you very much. I think this is a great place and I can always get useful information here.
0 Kudos
Message 6 of 8
(3,384 Views)
No wonder I never noticed the upper limit!

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 8
(3,384 Views)
One more thing jbao,

THe best way to thank someone on this exchange is to give the best answer a four star rating.

This way others in the future can quickly find the answer to their questions.

Have fun,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 8
(3,384 Views)