LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use "SetValNumberByOffset" for array in CVI?

How can I use the this function to set the array elements in TestStand from CVI?
Hiren Patel
0 Kudos
Message 1 of 2
(3,088 Views)
Hi,

The function you can use in CVI for this is TS_PropertySetValNumberByOffset. You will pass it 5 parameters.

The first is the object handle to be change.
The second is the error info.
The third is the array offset.
The fourth is the options argument.
The fifth is the value to be set.

So an example would look like:
TS_PropertySetValNumberByOffset (&propObjHandle, NULL, 5, 0, 27);

You can always get more information about this function and each parameter by checking the function panel for the properties in the in TestStand API Instrument Drivers.
This would set the 6th element of the property object propObjHandle, and set it to 27.

Hope this helps!

Allen P.
National Instruments
Message 2 of 2
(3,088 Views)