LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart history lenght

I read that this property can't be set with a property node, but there's no way even to read it?
0 Kudos
Message 1 of 8
(3,858 Views)

Hi there, just an idea, you may try to get the history length from the history data using the array size command.

 

Ierman Gert

0 Kudos
Message 2 of 8
(3,849 Views)
That's the current length of actual data; Chart history lenght is a maximum length
0 Kudos
Message 3 of 8
(3,847 Views)

Hi Snamprogretti,

 

why do you want to read it while execution?

 

It's a setting only available in edit mode, so you ("the programmer") can create/change a numeric constant in the block diagram...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(3,831 Views)
Having to set the same constant in two different places is bad programming style. If i modify the sw in 2011 i'll probably forget it.
Message 5 of 8
(3,827 Views)

Hi Snamprogretti,

 

when you need a variable sized buffer then there are better things than a chart's history... Smiley Wink

Best regards,
GerdW


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

I would like to be able to read this property as well. For example, to do some simple math on it for user notifications.

 

Personally, I don't like these types of properties that are settable only with RightMouseButton > Dialog Box. Setting the cluster size in Array to Cluster for example (of which I have an Idea in the Idea Exchange). Maybe you should post and Idea if we can't get an answer from someone that knows more than I do (which is 'bout everybody! Smiley Wink)

 

Richard






0 Kudos
Message 7 of 8
(3,815 Views)
When i need a variable sized buffer i use other things, when i need an incremental display i use a chart.
0 Kudos
Message 8 of 8
(3,807 Views)