From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

struct

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

 

0 Kudos
Message 1 of 2
(2,547 Views)

Eventually sussed this.

 

I'd used typdef struct {...} BNMType;  instead of struct BNMType {...};

 

so ignore this post!

0 Kudos
Message 2 of 2
(2,527 Views)