LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan question

Hello,

I came across the following Scan expression in an instrument driver. Can anybody explains its details?

if ((Scan(rdBuffer, "%s > %s[xt44]$s[t77]", ChanA, ChanB)) !=2) return Error;

Thanks
Rafi
0 Kudos
Message 1 of 2
(2,816 Views)
This statement scans a string dividing into 2 substrings, the first one from the beginning up to the first comma [,] found, the second one from that point up to the first "M" found.

In my opinion the $ sign is incorrect and should be a %.

The Scan instruction is quite complex to understand: the best is that you look into the on-line help >> Library Reference >> Formatting and I/O library where Scan function is described in full detail.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,812 Views)