07-06-2005 03:22 PM
07-07-2005 02:59 PM
Kevin,
To call your functions from an application, assuming it is another CVI application, you will want to include <TestStand>\AdapterSupport\stdtst.h in your source. This header file defines the tTestData and tTestError structure data types.
You may also want to refer to the C/CVI Standard Prototype Adapter section of Chapter 13 of the TestStand User Manual. Tables 13-10 and 13-11 list each field of the two data structures in question. This table includes the data type and a description of each field. It also tells whether a field is an input or output.
The manual is available from the Help menu of the sequence editor or from here.
The real trick of calling one of your functions from another application will be dealing with the sequence context. Chapter 8 of the User Manual discusses the sequence context in more detail. A viable sequence context will only be available when a sequence is being executed.
If the application you are building will be executing sequences, then you will be okay. If not, then you may want to consider another route instead of using the functions you have. That is, you may want to consider building a new DLL from functions that are not based on the TestStand prototypes.
Regards,
Eric M
Applications Engineer
National Instruments