Avoid unnecessary use of *RST.
Putting Multiple Commands on the Same Line ;
*OPC (operation complete) sets bit 0 in the standard event status register when
all operations are complete.
/*Set the analyzer to single sweep mode*/
viPrintf(viESA,"INIT:CONT 0\n"); //once no need too much *wai...
/*Trigger a sweep, wait for completion*/
viPrintf(viESA,"INIT:IMM;*WAI\n");
viPrintf(viESA,"CALC:MARK:MAX\n");
/*Trigger a sweep, wait for completion*/
viPrintf(viESA,"INIT:IMM;*WAI\n");
/*Query and ......
阅读全文