LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically set chart history length?

How do I programmatically set chart history length?
0 Kudos
Message 1 of 5
(3,522 Views)
Hi, the first which you have already tried is to right click on the chart and click history and put the length in. Or the second way is to create a property node from the chart and then on block diagram, set it to history through its properties and make sure its set to write. And add a constant or control and put the number at what u want your history to be.
0 Kudos
Message 2 of 5
(3,522 Views)
Thanks, but I tried using the history property which requires an array input. I set the array to have 5 elements of value 0. When I run the VI the chart history length remains at its' default of 1024 and the chart displays the 5 zero inputs. Is there something I'm not understanding here? Thanks!
0 Kudos
Message 3 of 5
(3,522 Views)
Hi, u could try instead of using a chart, u could use an xy graph with a chart buffer and with the chart buffer defining the length/amount points needed. And this also mimics what happens in a chart.

Stuart
0 Kudos
Message 4 of 5
(3,522 Views)
Thanks!
0 Kudos
Message 5 of 5
(3,522 Views)