10-12-2008 11:54 PM
when get result from instrument,I find RS give us two function,
one:
if ((status = viRead (instrSession, buf, 50, &retCnt)) < 0)
return status;
if (Scan(buf, "%s>f%",MaxBurstPower) != 1)
return MB8820B_status;
return MB8820B_status;
}
Two:
if (strcmp (rdBuf, "NAN") != 0)
sscanf (rdBuf, "%lf", MaxBurstPower);
anyone can tell me the difference between them,if use scan() get result from instrument,the up way is right?
Solved! Go to Solution.
10-13-2008 06:39 AM
10-13-2008 08:11 PM