09-16-2008 04:09 AM
Hi All,
I have this DLL with this function:
long __declspec(dllexport) InitMyNodeID(char* nameNode myData* mh)
{
GimmeMyNodeID(nameNode, &mh->myNodeID);
}
struct myData {
int myNodeID;
};
Notes:
GimmeMyNodeID is a standard API that receives nameNode as input and returns an int myNodeID.
I'm having difficulty receiving it on the test stand parameter...
Can somebody help me on this..:o)
09-16-2008 04:35 AM
Ray,
in order to pass structs as parameters from/to TestStand, you have to define a datatype. In the typedefinition, you can set a property which is called "Allow Objects of This Type to be passed as Structs".
Then you have to create a variable using this type and there you go 🙂
hope this helps,
Norbert
09-16-2008 06:18 AM
Hi Norbert,
Do you mean define the data type in the test stand environment?
09-16-2008 11:00 AM
Yes, in anywhere in the typepalette (i would suggest using the SequenceFile).
hope this helps,
Norbert