Engine
- Updated2025-04-09
- 2 minute(s) read
Engine
Use the Engine class to create and access objects of other classes, control executions, launch built-in dialog boxes, implement a Tools menu, find files and directories, and invoke various utilities. Create the Engine object directly using ActiveX. To access the Engine object from a step, use the TestStand API to obtain the value of the Engine property from the SequenceContext class or pass the SequenceContext property RunState.Engine as an object parameter to the step.
The following examples show how to create the initial Engine object:
LabWindows/CVI
CAObjHandle engineObj = 0; TS_NewEngine(NULL, &engineObj);
Visual Basic
'Place the TestStand Engine ActiveX control on the main form.
Visual C/C++
#import "C:\TestStand\Bin\teapi.dll" TS::IEnginePtr engine; HRESULT hr = engine.CreateInstance(__uuidof(TS::Engine)) ;