How to Use the TestStand API to Get Numeric Values and Place the Value Directly into Integer Type Variables?
Overview
You can use an accessor function to get the TestStand numeric variable as an integer data type.
Overview
int TS_PropertyGetValInteger (CAObjHandle object, ERRORINFO *errorInfo, char *lookupString, long options, int *value){
- int error = 0;
double doubleValue;
errChk( TS_PropertyGetValNumber (object, errorInfo, lookupString, options, &doubleValue));
*value = doubleValue;
Error:
- return error;
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
