Agilent Technologies 86100D Manual do Utilizador Página 12

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 22
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 11
12
IF POS(Id$,”83480A”) THEN ! See if the Identity String contains “83480A”
RETURN “83480A” ! Exit here and return “83480A” if found
END IF
!
IF POS(Id$,”86100A”) THEN ! See if the Identity String contains “86100A”
RETURN “86100A” ! Exit here and return “86100A” if found
END IF
!
DISP “ERROR: Did not find ‘83480A’ or ‘86100A’ in function FNGet_model$!”
STOP ! Critical error - stop here
!
FNEND
Channel Autoscale
This example saves the trigger and horizontal settings prior to performing :AUToscale so they can be re-set.
SUB channel_autoscale_86100a(@Dca)
REAL Level,Delay,Scale
!
OUTPUT @Dca;”:TRIGger:LEVel?” ! Ask for trigger level
ENTER @Dca;Level
OUTPUT @Dca;”:TIMebase:DELay?;SCALe?” ! Ask for horizontal delay and scale
ENTER @Dca;Delay,Scale
OUTPUT @Dca;”:AUToscale” ! Perform Autoscale
OUTPUT @Dca;”:TRIGger:LEVel”,Level ! Re-set trigger level
OUTPUT @Dca;”:TIMebase:DELay”,Delay;”;SCALe”,Scale ! Re-set delay and scale
!
SUBEND
Setting the Trigger Level
This subprogram selects different mnemonics to set the trigger level for either DCA platform.
SUB Set_trigger_level( REAL Level, @Dca ) ! Pass in Trigger Level and I/O Path
DIM Trigger_source$[15]
!
IF FNGet_model$(@Dca)=”83480A” THEN
OUTPUT @Dca;”:SYST:LONG OFF;HEAD OFF”
OUTPUT @Dca;”:TRIG:SOUR?” ! Get the active source, should be “TRIG2” or “TRIG4”
ENTER @Dca;Trigger_source$
OUTPUT @Dca;”:TRIG:LEV “;Trigger_source$;”,”;Level
ELSE ! Must be “86100A”
OUTPUT @Dca;”:TRIG:LEV “;Level ! Easy as pie
END IF
SUBEND
Setting the Trigger Source
The following example shows how to implement a Trigger Setup routine that works for either the 86100A or 83480A. The
function could use the new 86100A syntax to program either the 83480A or 86100A. No error checking is performed, but
it would be simple to ensure the correct syntax is used for each model.
SUB Set_trigger_source( Trigger_source$, @Dca ) ! Pass in Trigger Source and I/O Path
! Use new 86100A mnemonics for Trigger_source$
! FPANel - Front Panel (86100A only)
! LMODule - Left Module (Used to be TRIGger2 for 83480A)
! RMODule - Right Module (Used to be TRIGger4 for 83480A)
! FRUN - Free Run (Used to be :TRIGger:SWEep FREerun for 83480A)
!
DIM Mnemonics$[255]
!
! Trim and truncate Trigger_source$
Vista de página 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 21 22

Comentários a estes Manuais

Sem comentários