14
A Customized VUPper Measurement
This example uses the built-in :MEASure:VTOP and :MEASure:VBASe commands to determine VUPper. VUPper is
defined as the voltage value at the upper threshold of the waveform. For example, if the thresholds are set to 20% and
80%, then the VUPper value is the voltage at 80% of the maximum voltage on the rising or falling edge of the waveform.
DEF FNVUpper(@Dca)
INTEGER Upper_threshold
REAL Vtop,Vbase
!
! First, set the thresholds.
!
LET Upper_threshold=0.8 ! 80% for upper threshold
!
! Then, get VBASe (0%) and VTOP (100%)
!
OUTPUT @Dca;”:MEASure:VTOP?;VBASe?”
ENTER @Dca;Vtop,Vbase
RETURN Vbase+Upper_threshold*(Vtop-Vbase)
FNEND
An Efficient Histogram Mean Measurement
write “:HEEN?;:OPEE?” // Query and...
read heen, opee // Store HEEN, OPEE
write “:HEEN 1;:OPEE 512” // Make HER active, OPER mask = Histogram
write “*SRE?” // Query and...
read sre // Store SRE
write “*SRE 128” // SRE mask = OPER
write “:HIST:RUNT?” // Query and...
read runtil // Store RUNTil parms
write “:HIST:RUNT WAV,”, n // Upload new RUNTil parms
write “*CLS;:CDIS;:RUN;” // Clear reg’s, database, run
wait .05 // Wait for gpib to catchup?
wait for spoll mask 0x40 // Wait for histogram completion
write “:MEAS:HIST:MEAN?” // Query and...
read mean // Store mean
write “:HEEN “, heen // Re-store HEEN
write “:OPEE “, opee // Re-store OPEE
write “*SRE “, sre // Re-store SRE
write “:HIST:RUNT “, runtil // Re-store RUNTil parms
Tips and Tidbits
1. 83480A allowed multiple sources using color grade display. So does Sierra, but only one source is allowed in “eye mode”.
2. 83480A returns 0,”No Error” in response to “:SYST:ERR? STR”. 86100A returns 0,No Error (missing quotes).
3. Even though 86100A is in Eye/Grey Scale mode, remote measurements can still use “CGRade” as a source.
4. The Service Request Enable (SRE) Register is reset to +32 after power down/power up for both 83480A and 86100A.
This register is an 8-bit register that can only be set to +191. That is, “*SRE 255;*SRE?” returns +191. The bit that is
missing is #6, RQS/MSS, value 64.
5. The Event Status Enable (ESE) Register is reset to +255 after power down/power up for the 83480A, but it is reset to
+0 by the 86100A.
6. The Trigger Event Register (TER) query returns 0 after power down/power up for the 83480A on the first query, but
changes to 1 on subsequent queries if triggering. It is returns 1 by the 86100A if triggering.
7. The Trigger Event Enable Register (TEER) query returns -1 on the 83480A. It is not supported on the 86100A.
8. The User Event Enable (UEE) Register returns -1 after PD/PU for the 83480A, but the 86100A returns +0.
9. The Local Event Register (LER) returns +1 on the first query after PD/PU on the 83480A. The 86100A returns 0.
Evidently the 83480A considered PD/PU a valid Remote-to-Local transition, the 86100A does not.
Kommentare zu diesen Handbüchern