04-15-2010 10:25 AM
I've used structs before with TestStand 3.5 quite successfully, but I am having some issues with TestStand 4.2.1.
If I run a simple test sequence using a predefined structure it runs OK. However TestStand 4.2.1. warns me that the parameters are incorrect. On selecting the validate button it's suggesting to replace the function declaration from.
void __declspec(dllexport) fcc_test4(BNMType *bnm);
to
void __declspec(dllexport) fcc_test4 (struct BNMType *bnm);
however, when I try to compile this in CVI 9.0 it returns the error 'Undefined size for parameter'. Any ideas? (The structure is defined in a separate header file) Is there a CVI option I'm missing, perhaps?
the same thing happens with the example of struct passing on the NI Website (addmittedly the example was for TestStand 2.0!)
Regards,
Brian
04-16-2010 04:17 AM
Eventually sussed this.
I'd used typdef struct {...} BNMType; instead of struct BNMType {...};
so ignore this post!