VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify the VeriStand System Definition from LabVIEW

Solved!
Go to solution

Hi all,

 

I have a project where I need to be able to change the VeriStand System Definition from within LabVIEW.  The project will use a LabVIEW user interface and I'd like to be able to change VeriStand System Mappings programmatically from LabVIEW (i.e., unload and load the System Mapping .txt files via LabVIEW). 

 

It appears that the SystemDefinitionAPI contains the methods that I need, but I can't figure out how to get a reference for VeriStand.SystemDefinitionAPI

 

If there is an easier or more straightforward way of doing this, please let me know.  Thanks for your help,

 

Phil 

Message 1 of 5
(7,285 Views)

You would use the standard LabVIEW .NET integration. There are a couple examples that ship with NI VeriStand that can help you get started. Look in the following folder on disk:

 

<LabVIEW>\examples\NI Veristand\API\System Definition API

Jarrod S.
National Instruments
Message 2 of 5
(7,270 Views)
Solution
Accepted by topic author Muelmann

A little more info that may be helpful...

 

The examples referenced by Jarrod contain a .NET constructor to create a System Definition file by giving a name, description, creator, version, etc...  If you double-click the constructor node it will bring up a dialog which show all the constructors for the SystemDefintion object.  You should see another constructor which only requires a "nivssdfFile" string input.  Use this constructor instead and provide a path to your nivssdf file to open your existing SysDef (instead of creating a new one).

 

Remember, you still need to call the SaveSystemDefinitionFile method when you're done with your changes to commit everything to disk (as demonstrated in the example).

Message 3 of 5
(7,263 Views)

Thanks Devin and Jerod.  This is the information I was looking for.  Is there documentation available from NI for this API?

0 Kudos
Message 4 of 5
(7,249 Views)

Yes...but only in NIVS 2011. When it ships (soon), you can open up that help if you install it or in the online help.

Stephen B
Message 5 of 5
(7,226 Views)