03-27-2013 01:29 PM
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.
03-28-2013 05:21 AM
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.
03-28-2013 08:54 AM
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.
03-29-2013 04:54 AM - edited 03-29-2013 04:58 AM
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