VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Ni VeriStand Automation from Python/C/C++

Hi,

I have NI VeriStand installed and project created. I need to automate it from using one of the programming language. Please direct me to some documentation/ sample programs.

 

Thank you,

Amit Saste

0 Kudos
Message 1 of 9
(6,551 Views)

Hi Amit,

 

NI VeriStand provides a .NET-based API for the Workspace and the System Explorer that you can use to create custom interfaces for NI VeriStand or to implement automation of the configuration and/or operation of NI VeriStand applications. For example, you can use the System Explorer API library to create a custom configuration window that limits the changes a user can make to an NI VeriStand application or to simplify the configuration process by making it possible to specify the application parameters in a spreadsheet. Additionally, you can use the Workspace API library to automate the operation of an NI VeriStand application or to create a completely custom run-time interface. These .NET-based APIs can be used by LabVIEW, NI TestStand, and a variety of other environments capable of using .NET interfaces.

 

In conclusion calling these .NET interfaces in the other environments is what you'll have to look into.

 

Check out the following link for more info

 

http://www.ni.com/white-paper/9366/en/

 

Cheers,

RAO

0 Kudos
Message 2 of 9
(6,528 Views)
Python for .Net supports importing .NET APIs for VeriStand. I do not have TestStand. So option for me is to write automation code in Python and call VeriStand APIs directly into Python. Can I execute Python code directly to interact with VeriStand?
0 Kudos
Message 3 of 9
(6,516 Views)
I believe NI VeriStand ships with a python library designed to be used in IronPython that wraps the execution API. I have installed VeriStand 2013 SP1 but I do not see this library in installation directory. Can you guide me where should I get it?
0 Kudos
Message 4 of 9
(6,512 Views)
0 Kudos
Message 5 of 9
(6,505 Views)

Depending on your version of windows, you should have 'NIVeriStand.py' in one of the following locations:

C:\Users\Public\Documents\National Instruments\NI VeriStand 2013\IronPython\
C:\Documents and Settings\All Users\Documents\National Instruments\NI VeriStand 2013\IronPython\

Message 6 of 9
(6,490 Views)

Hi Amit,

 

Did you find the suitable files, mentioned by UKCraig?

 

Cheers,

Rao

0 Kudos
Message 7 of 9
(6,465 Views)
Thanks. I got NIVeriStand.py in the public folder.
0 Kudos
Message 8 of 9
(6,461 Views)

for cPython I recommend pythonnet (example attached) or older library: https://github.com/NIVeriStandAdd-Ons/cPython-Interface-for-NI-VeriStand 

 

CLA, CTA, CLED

0 Kudos
Message 9 of 9
(6,425 Views)