NI VeriStand Add-Ons Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

API Example: Call NI VeriStand From IronPython

This is a simple example of using IronPython with NI VeriStand.

Instructions

  1. Install Iron Python
  2. Copy the NIVeriStand.py file from NI VeriStand \IronPython\ (in public docs dir) to IronPython \Lib\ (in program files dir)
  3. Open up the SinWave Delay Script.py in a text editor and confirm that the APPDATADIR variable and the LOGGINGDIR variable are appropriate for your system (XP vs VISTA, etc). If not, change them.
  4. Open up NI VeriStand
  5. Double click on the "SineWave Delay Script.py", if windows asks what program to run this with, browse to the IronPython dir in program files and pick ipy.exe

Version

This was developed against NI VeriStand 2010 with IronPython 2.6.

Quality, Limitations

This was developed in 2010 and has only been tested briefly since. It uses 2010 stimulus profile api (legacy).

Dependencies

IronPython 

License

This repository and any materials provided by NI therein are provided AS IS. NI DISCLAIMS ANY AND ALL LIABILITIES FOR AND MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR  PARTICULAR PURPOSE, OR NON-INFRINGEMENT OF INTELLECTUAL PROPERTY. NI shall have no liability for any direct, indirect, incidental, punitive, special, or consequential damages for your use of the repository or any materials contained therein.

Stephen B