NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

struct passing with flexible dll adapter

Hi,

I wrote a function in a DLL that would take in a struct by reference. I followed the TestStand manual for using struct passing (ie. ensuring that the "Allow Objects of This Type to be Passed as Structs" be selected).

However, on exiting the function, the data assigned to the referenced variable inside the function are not being passed out to TestStand.

Am I missing something?
I have attached the function that I used. The function works, but again, I get nothing when I check the struct variable after executing the function.

Thank,
MS
0 Kudos
Message 1 of 2
(2,883 Views)
Nevermind. The problem was because of the order of the fields in the struct were not the same for the teststand struct and the application struct.
0 Kudos
Message 2 of 2
(2,883 Views)