LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hypertrend

How to save HyperTrend GROUP information when the program is stopped and restarted?

0 Kudos
Message 1 of 12
(3,870 Views)

Snord,

 

When you refer to save information are you wanting to save data or wanting to save the actual properties you can configure for the group from the right click menu? You can export the settings to an XML file. Is this the kind of functionality you are looking for?

 

-Nick-

Nick C | Software Project Manager - LabVIEW Real-Time | National Instruments
0 Kudos
Message 2 of 12
(3,841 Views)

Thank you Nick,

 

Yes, I want to save the settings for the Group (similiar to how Traces are saved when you use MAX to examine historical data). I started to explore the XML option you mentioned but got lost in the detail. Is there (or can you supply) an example of how this is done. I am using the HyperTrend control in a SCADA application and it would be a valuable feature for them to be able to create Groups that do not vanish when the the spplication closes.

0 Kudos
Message 3 of 12
(3,830 Views)

Snord,

 

There is no published documentation on exporting/importing settings to Hypertrend. It's fairly straightforward though. In your trace view you set all the properties (color, axis values, labels, etc). Once you have your configuration for the group set the way you would like, you simply click "Export Settings" and browse to a location for the XML settings file to save. Next time you open Hypertrend, open the same trace view and import the XML file you had previously saved, you should then see the data set colors, labels, etc change to the settings saved in the XML file.

 

-Nick-

Nick C | Software Project Manager - LabVIEW Real-Time | National Instruments
0 Kudos
Message 4 of 12
(3,820 Views)

Nick,

Perhaps you are misunderstanding what I am trying to do. I am NOT using MAX. I am using Labview to develop a SCADA application. I have placed a HyperTrend Control in the application and I programatically include all the shared variables from the libraries residing on the local machine with logging enabled into the HyperTrend Control. As a feature for the end user, I wish to have the ability to create user defined groups as subsets of the variables mentioned above. As a end user, I know how to create these groups but they vanish when the application is restarted.

 

You mentioned an "Export Settings" button, but I can't locate it. Can you reproduce what I am discribing?

 

0 Kudos
Message 5 of 12
(3,815 Views)

Snord,

 

You are correct that I was misunderstanding your question. I've attached a simple example that shows how to use the Method Nodes of the Hypertrend Control to get and set the XML settings of the control.There is also an example in the LabVIEW example finder, but it doesn't actually write the XML to file, it uses user events to update a second control.

 

The example included below uses the GetCurrentSettingXML and SetCurrentSettingXML method nodes to copy the settings from one Hypertrend control and write them to file. Then the program reads these settings back from the file and applies them to a second Hypertrend control.

 

Hypertrend XML Settings.png

 

The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at:http://ni.com/samplecodelicense

 

Hope this helps!

 

-Nick-

Nick C | Software Project Manager - LabVIEW Real-Time | National Instruments
0 Kudos
Message 6 of 12
(3,802 Views)

Thank you Nick,

 

This is what I was looking for. I took the essence of your example and applied it to application and it is now performing the way I intended.

 

The reason why I couldn't find the invoke node for the "SetCurrentSettingsXML" is that it did not exist for "IHyperTrendCtl2". Your example is using "IHyperTrendCtl3". What is the difference? Am I correct in saying that it didn't exist for "IHyerTrendCtl2"? I am using Labview11.

0 Kudos
Message 7 of 12
(3,792 Views)

Snord,

 

I believe that method should exist for HyperTrendCtl2 as well. It is possible that the library containing your HyperTrentCtrl2 may have some problems. Are you using LabVIEW 2011 or LabVIEW 2011 SP1?

 

I'm going to setup a virtual machine with your exact software setup and see if I can reproduce the problem. I will need the following information:

 

Operating System: (also note 32/64 bit)

LabVIEW Version:
DSC Version:

 

I'll setup the machine and try and duplicate the problem as soon as I hear back from you.

 

-Nick- 

Nick C | Software Project Manager - LabVIEW Real-Time | National Instruments
0 Kudos
Message 8 of 12
(3,773 Views)

Windows 7 (64 bit)

Labview 2011 SP1

DSC Module 2011 SP1

 

0 Kudos
Message 9 of 12
(3,763 Views)

Snord,

 

The setup you listed is currently the exact same as I have running on my computer, I was under the impression you were running a slightly older version of LabVIEW. In the shipped LabVIEW 2011 SP1 library, only the HyperTrendCtl3 is present. I believe the HyperTrendCtl2 came from a previous version of LabVIEW DSC. Was the project created in an older version of LabVIEW with an older version of DSC?

 

It seems that under your current setup, only the HyperTrendCtl3 is supported as it is the only HyperTrend Control that comes installed in the libraries. 

 

-Nick-

Nick C | Software Project Manager - LabVIEW Real-Time | National Instruments
0 Kudos
Message 10 of 12
(3,753 Views)