PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

get container in code module

I created a container in TestStand (C structure), I need to get this container from a CVI module to send it via TCP/IP to my UUT.

At the moment I get the object, check for sub properties, iterate through the sub properties and storing these values in CVI data types.

Is there an other method(s)?
0 Kudos
Message 1 of 2
(3,060 Views)
Steven,

Sorry about the delay in answering; this question was posted in the PXI category instead of the TestStand category, so it took a little longer to come across it.

In regards to your question, iterating through the sub properties is probably the best way to get the data. The other alternative is to pass the container as a structure to your code module. Another alternative would be to pass each individual element of the container, either directly to the code module or by using the API. Each method still requires you to "touch" each sub-element to get the data.

There is an example of struct passing that ships with TestStand. You can find it in \Examples\Struct Passing. There is an example in LabVIEW and one in C (although its written i
n the VC++ Development environment instead of CVI, it should still be helpful to look at).

I hope that helps you!

Regards,
Shannon R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,060 Views)