Contents |
Notes |
| [LongName] | |
| Example dual channel power meter driver | Up to 5 lines |
| {Data} | |
| IEEE | RS232 | Either IEEE or RS232, not both |
| Terminator specification | CR, LF, CRLF, CR/LF etc |
| probe1=Forward | Optional |
| probe2=Reverse | Optional |
| .setup | |
| (Command) (Delay in ms) | Unlimited number of lines |
| .read | |
| (Command) (Delay in ms) | Up to 5 lines, always returns dBm |
| .frequency | Optional |
| (Command) (Units) (Format) (Delay in ms) | Optional - Up to 5 lines |
| .zero | Optional |
| (Command) | Optional - Up to 5 lines |
| END |
An example file using a dual channel power meter is shown below - for clarity the section headers have been emboldened and special placeholders shown in colour:
| [LongName] Rohde & Schwarz NRVD dual-channel (both channels) Version: 1.01 11th June 2000 {Data} IEEE CR/LF probe1=Forward probe2=Reverse .setup (*RST) (0/500) (SYST:LANG "SCPI") (0/100) (OUTP:ROSZ OFF) (0/100) (DISP1:ANN:BARG:AUTO) (0/100) (DISP2:ANN:BARG:AUTO) (0/100) (SENS1:AMPL:UNIT DBM) (0/100) (SENS2:AMPL:UNIT DBM) (0/100) (DISP1:ANN:AMPL:RES "MEDIUM") (0/100) (DISP2:ANN:AMPL:RES "MEDIUM") (0/100) (DISP1:ANN:FREQ ON) (0/100) (DISP2:ANN:FREQ ON) (0/100) (DISP:ANN:AMPL DUAL) (0/100) (SENS1:AMPL:RANG:AUTO ON) (0/100) (SENS2:AMPL:RANG:AUTO ON) (0/100) (CALC1:FILT:AUTO ON) (0/100) (CALC2:FILT:AUTO ON) (0/100) (SENS1:AMPL:ATT 0) (0/100) (SENS2:AMPL:ATT 0) (0/100) (SENS1:CORR:FREF:STAT ON) (0/100) (SENS2:CORR:FREF:STAT ON) (0/100) (*TRG) (0/100) .read (*TRG /) (0/350) (\;) (;\) .zero (INP:NSEL 1) (0/100) (CORR:ZERO:INIT) (0/7500) (INP:NSEL 2) (0/100) (CORR:ZERO:INIT) (0/7500) .frequency (SENS1:CORR:FREF /HZ) (Hz) (I) (0/1000) (SENS2:CORR:FREF /HZ) (Hz) (I) (0/1000) END |
Note: The .read section has two placeholders following the instrument delay operands. These are for the two fields of the return data [ ( \ ; ) and ( ; \ ) ] to enable the Probe #1 and Probe #2 data to be read on the same command line. In this example the data is provided by the instrument in the form:
-34.76 ; -56.33 <cr><lf>
where the two power readings are separated by a semicolon.
This facility can only be used for those test methods which are able to use two power meter readings to provide Forward and Reverse power values to CIS9942.