LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ScanFile function in CVI 9.0.0

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.

 

 

Best Regards
Boris
0 Kudos
Message 1 of 2
(2,656 Views)

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,

James W.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,638 Views)