Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

ScanFile with scanning string modifier %s[in]

$
0
0

For skipping over non-numeric characters by reading ASCII files I used to write, e.g.

ScanFile (fhandle, "%s[i8]>%f", &x);

This method works well with CVI 5.0 to 8.11 but no more with CVI 2009 and 2010.  I have modified my old code using other scanning string modifiers:  

ScanFile (fhandle, "%s>%s[dt#]%f", &x);    or  

ScanFile (fhandle, "%s>R1= %f", &x);

The first one does not work with a string like “R1=200”.  The second requires the exact string and is more inconvenient.  Although the modified code works well now with CVI 2009, I would like to know why the scanning string modifier [in] does not work with CVI 2009 and 2010. Is there something wrong in my code, is it a feature of the new versions of CVI or is it a bug? How about CVI 2013?    


Viewing all articles
Browse latest Browse all 5339

Trending Articles



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