Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Accessing double property

$
0
0

Hello,

 

I am creating a custom log file by reading all numeric values for all tests. The double values as reported by TestStand and viewable in built-in reports look like this:

9.255963134932e+061

 

Here's CVI code that I use to read them:

 

    sprintf(keyName,"Locals.ResultList[%d].Numeric",i);
       tsErrChk(TS_PropertyExists(seqContextCVI, &errorInfo,keyName, 0, &propertyExists));
       if(propertyExists){
           tsErrChk(TS_PropertyGetValNumber(seqContextCVI,&errorInfo,keyName,0,&numproperty));
           sprintf(szBuf,"%.5lf",numproperty);

        }

 

What I get in my report is this:

92559631349317830736831783200707727132248687965119994463780864.00000

 

Any ideas?

Thanks

CT


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>