NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate Teststand with a c++ program

Hi all,

 

I'm currently writing a program in c++ that will take a set of instructions from a text document, create a teststand sequence, populate it with steps, and then save the file.  I've been looking around the forums and the NI site for hours now for a starting point but I haven't really found one.  From the bit I have found, it looks like I would need to use the engine class from the Teststand API in order to create steps.  Is there a directory where it explains what each of these functions does, and what their inputs/outputs do?  Thanks for any help. 

0 Kudos
Message 1 of 4
(4,821 Views)

API Reference:

"C:\Program Files\National Instruments\TestStand 2012\Doc\Manuals\TestStandAPIReferencePoster.pdf"

 

You could use some of the features from the User Interface as a starting point

C:\Users\Public\Documents\National Instruments\TestStand 2012\UserInterfaces\Full-Featured\C++ using MFC

 

The following example is not exactly what you are looking for and its done using ActiveX in a TestStand sequence itself. However, if you look at the "Build New Sequence" sub sequence in

C:\Users\Public\Documents\National Instruments\TestStand 2012\Examples\SequenceBuilderTool\LabVIEW\Sequence Builder.seq

You will see some of the methods used for creating a new sequence file, associated parameters, and also methods to create steps programmatically.

 

Hope this helps.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 4
(4,809 Views)

You can access the NI TestStand Help, which includes full documentation for the entire API, by selecting Help»NI TestStand Help in the sequence editor or by selecting Start»All Programs»National Instruments»TestStand»Documentation»NI TestStand Help.

0 Kudos
Message 3 of 4
(4,801 Views)

Hi Mrajecki,

 

you could use the SequenceFile Translator of TestStand. There is an example done with C++ at this location:

 

C:\Users\Public\Documents\National Instruments\TestStand 2012\Examples\SequenceFileTranslators\VC

Be aware that there is not so much documentation though.

 

If the steps that your sequenceFile will be populated with already exist, then you should use what we call the SequenceBuilder. It merely consist in opening a blank sequenceFile then open a "Template SequenceFile" containing one or more steps and copy these Step/sequence in your newly opened blank sequence File.

 

It is quite simple and done with the TestStand API.

 

You have an example written in CVI (C ANSI) in this location: C:\Users\Public\Documents\National Instruments\TestStand 2012\Examples\SequenceBuilderTool

  

Regards

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

0 Kudos
Message 4 of 4
(4,791 Views)