Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Calling PERL Scripts from TestStand

4 ratings | 1.25 out of 5
Print

Downloads

Filename: ts_perl_w_exit_func.zip
Requirements: View

Filename: tsperlexample.zip
Requirements: View

This example demonstrates how to call Perl scripts from TestStand using the Perl interpreter. The example provides a 'C' style wrapper DLL that you can call from TestStand which in turn executes the Perl scripts via the Perl interpreter. The example contains a sequence that uses a custom step type configured to use the Perl wrapper DLL as its code module.

The file TS Perl Example.zip calls Perl scripts without Exit functions. The file TS Perl w Exit Func.zip calls PERL scripts with Exit functions.

To use these examples, extract the files located in the attached *.zip file and read the readme.txt. For an example on how to call TCL scripts from TestStand, see the TCL script example in the NI Developer Zone.

*Note: This example requires the ActivePerl 5.6 interpreter. The Microsoft Visual C++ source files for the wrapper DLL are included so that you can modify and rebuild the DLL to work with other versions of the PERL interpreter.

**Note: Documentation and support for the ActivePerl Interpreter API is provided by the interpreter vendor. For more information on the TestStand API and the methods illustrated in this example for sending/retrieving data to/from the wrapper DLL to TestStand, reference the TestStand Programmer Help file that comes with your TestStand installation.

Requirements


Filename: ts_perl_w_exit_func.zip

Software Requirements


Application Software: NI TestStand Development System 2.0.1
Language(s): Visual C++

 
Filename: tsperlexample.zip

Software Requirements


Application Software: NI TestStand Development System 2.0.1
Language(s): Visual C++

 
4 ratings | 1.25 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).