01-13-2013 03:03 AM
Hello,
I use ScaFile function to read binary file that exists floating points array. My file have a 1601 points (double).
The function works properly in CVI 8.5.1. When I upgrade to new version CVI 9.0.0, the function return wrong index number.
I use ScanFile(FileHandle,"%*f[i*]>%*f",2,479,2,&value); According this format I expect to receive the 479 index point in a file.
Despite this, I get an index 0.
I check this function in few different indexes, and every time i receive the point in index=0.
Is it possible that I wrote (in format value in the function )is not true?
Best Regards,
Boris.
01-14-2013 03:53 PM
Hi Boris,
It looks like the function may have changed slightly from 8.5 to CVI 9.0
If you look at the documentation on the ScanFile function, found here:
http://zone.ni.com/reference/en-XX/help/370051M-01/cvi/libref/cviscanfile/
it looks like some of the formatting for the string formatting parameter and the target parameter have changed compared to what you are using. I would recommend looking over the documentation as it does not appear to have chanved since CVI 9.0 but is the format we are using now for this particular method.
Regards,