Agilent Technologies 86082A User Manual page 251

Wavelength domain component analyzer
Table of Contents

Advertisement

Remote Operation
Example Programs
}
//-- Clear STB register.
status = viPrintf(Inst,"*CLS\n");
//Add code to check status for an error
//-- Format data as REAL32 (binary)
status = viPrintf(Inst,"FORM:DATA REAL,32\n");
//Add code to check status for an error
StartTime = timeGetTime();
//-- Find out how many points are in the trace
//-- Download the trace
//-- Calculate elapsed time
EndTime = timeGetTime();
ElapsedTime = (EndTime - StartTime);
//-- Close inst session
viClose(Inst);
//-- Close the session to the VISA Resource Manager
viClose(DefRM);
5-76
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
status = viReadSTB(Inst,&STB);
//Add code to check status for an error
Sleep(10);
//Give instrument a chance to work
//-- Send query to get the number of points
status = viPrintf(Inst,"SENS:SWE:POIN? TRA\n");
//Add code to check status for an error
//-- Read back the number of points
status = viScanf(Inst,"%t",PointsStr);
//Add code to check status for an error
//-- Send query to download the trace
status = viPrintf(Inst,"TRAC? TRA\n");
//Add code to check status for an error
//-- Read trace from buffer
status = viScanf(Inst,"%9601zb",fData);
//Add code to check status for an error

Advertisement

Table of Contents
loading

Table of Contents