03-23-2010 12:07 PM
I know that one way of clearing a waveform chart is to write an empty array to the 'history' property of the charts property node. The help file for this states: "use strictly typed refnums when reading this properrty"
I am looking at a program coded in LV 8.6
a number of control refnums are carried around in an array (so strict typed)
in some cases (but not all) the programmer used "to more specific class" to designate a waveform class when writing to properties for scaling the Y-axis, etc. Other times this is not done(?)
We are now having an issue which appears to be that the chart is re-initialized when dynamically rescaled (I am not sure if that is what is going on, but that is what it looks like).
It looks like when the chart is dynamically rescaled the previously acquired data is gone and the chart starts populating fresh.
Haven't figured out what is causing this, and I am wondering if strict type refnums vs generic refnums may be a factor?
03-23-2010 12:26 PM
Waveform charts can hold different data types (they are polymorphic), such as DBL or 1D-array of DBL. When you want to set the history, you need a 1D DBL or 2D DBL respectivily. The correct data type is part of the 'strict type', I guess you will get the default instance if you use the non-strict (generic) type.
But if this is releated to your problem, I can't even guess.
Felix