05-16-2006 04:02 PM
05-17-2006 01:01 AM
Hi,
Do you actually set the parameter Engine to anything when you call your sequence.
In your DLL function call, just pass an obj handle "RunState.Engine".
Regards
Ray Farmer
05-17-2006 08:15 AM
Hi Ray,
Thanks for the quick response!
To answer your question, yes, I do set the Engine parameter in TestStand to RunState.Engine.
However, all I know about the TS:IEngine containter is that it has one (or more) data fields that get passed to my DLL. I don't know what those fields are, so on the DLL end I am not sure what I should be getting. i.e. the function prototype in my DLL should probably contain some struct, but I don't know what the struct is. The only guess I can make is that teststand is passing me a TS_IID_Engine type struct (defined in tsapicvi.h). However there are 4 data fields in this struct convienently labeled Data1 - Data4, all of which i tried using as a handle, and none of which worked.
05-17-2006 08:51 AM
Hi DaveC,
I dont know why you are passing that struct, but all you need is a CAObjHandle and link either the SequenceContext or the RunState.Engine in the DLL Adapter specification.
Have a look at the Using LabWindows/CVI with TestStand manual 4-3,4,5,6&7 for calling code modules with Struct Parameters, if thats what you really need to pass.
Regards
Ray Farmer
05-17-2006 09:06 AM