How To Enable Autoscaling of NI Hypertrend Control

Updated Apr 16, 2020

Reported In

Software

  • LabVIEW

Issue Details

I use the NI Hypertrend control to display data from a database.
I want to activate the AutoScale Y option because for now, I enable it when running the VI and right-clicking on the graph but if I close the VI and I re-open it, the autoscaling is disabled.
How can I activate it permanently?

Solution

You can add an invoke node to define current settings at the beginning of the VI, like this snippet:
Please know that you can drag and drop this snippet in LabVIEW 2018 or upper version.

Additional Information

The HyperTrend control is a special control that can be configured with XML, so the string constant must be written like an XML script. 
You can see an example of the use of the HyperTrend in  C:\Program Files (x86)\National Instruments\LabVIEW 2018\examples\lvdsc\HMI Design\NIHyperTrend Graph XML Configuration\NIHyperTrend Graph XML Configuration.vi