NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DSFDS

    I have a question on Teststand API function for CVI. We know in order to get the integer value from Teststand, we can use the function of "TS_PropertyGetValInteger". However, if an integer value needs to be put into Teststand variable,we have to use
tsErrChk(TS_PropertySetValNumber (g_seqContextCVI, &errorInfo,ts_temp, 0, (double) ts_val1)).
What I prefer to see is to have a "TS_PropertyGetValInteger". Unfortunately,there's no such a function currently, even in LabWindows8.0.
 
 
Thanks!
Jacky
0 Kudos
Message 1 of 3
(4,831 Views)

Hi Jacky,

Its got nothing to do with the Labwindows, its what TestStand adds as support files to use with LabWindows to provide the API interface.

There's nothing stopping you add your own functions as you would do with any driver /api interface.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(4,828 Views)

All numbers in TestStand are represented as 64-bit signed floating point numbers (double).  Although your code may be easier to read with a wrapper function for integers, it isn't neccesary for sending the data to TestStand.

 

Allen P.

NI

0 Kudos
Message 3 of 3
(4,813 Views)