How To Enable Autoscaling of NI HyperTrend Control

Updated Oct 12, 2023

Reported In

Software

  • LabVIEW

Issue Details

I am using NI HyperTrend control to display data from a database.
While the VI is running, I can enable the AutoScale Y option by right clicking on the graph.
However, after closing and re-opening the VI, the autoscaling is disabled.
How can I activate it permanently?

Solution

The control settings can be defined by using an invoke node at the beginning of the VI as shown in the code snippet below.
Drag and drop this snippet in LabVIEW 2018 or upper version to view the code.

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. 
There is 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