![]() | Download Help (Windows Only) |
You can pass variables and properties you create with named data types to function parameters that accept structures. When you create or edit a data type, you specify whether the type can be a structure argument and how the type represents itself in memory when you pass it to a structure parameter.
If you build a LabWindows/CVI module DLL with the Add NI Type Information resource to DLL option enabled, you can use the Create/Update Custom Data Type button on the LabWindows/CVI Module Tab to access the Create/Update Custom Data Type from Struct Dialog to create the TestStand container type.
![]() |
Notes
|
When you select the C Struct category for a parameter, the C/C++ DLL Adapter displays the Type and Pass controls. The Type control specifies the TestStand named data type the adapter uses to determine how to pack the structure elements in memory. The Pass control specifies whether TestStand passes the value of the argument you specify in the Value Expression control or passes a pointer to the argument. If you select By Pointer (*) or By Reference (&), the adapter passes a pointer to the argument value. If you choose to pass a pointer, the argument you specify in the Value Expression control must be the name of a variable or property.
Helpful
Not Helpful