Agilent Technologies 66lxxA manual These are the Bias, Supply Limit Conditions, To be Tested

Page 92

10! APPLICATION #6: OUTPUT SEQUENCING PACED BY THE COMPUTER

20! PROGRAM: APP-6

30

!

 

 

 

 

40

DIM Plus_5v$[50],Plus_12v$[50],Minus_12v$[50]

 

 

50

!

 

 

 

 

60

Plus_5v$=”4.75, 5, 5.25, 5, 5, 5, 5”

!

THESE ARE THE BIAS

70

Ptus_12v$="12, 12, 12, 11.4, 12.6, 12, 12”

!

SUPPLY LIMIT CONDITIONS

80

Minus_12v$="12, 12, 12, 12, 12, 11.4, 12.6”

!

TO BE TESTED

90

!

 

 

 

 

100

Num_test_steps=7

 

!

NUMBER OF BIAS SUPPLY LIMIT C0MBINATIONS

110

Dwell=.0I0

 

 

!

SECONDS OF DWELL TIME

120

!

 

 

 

 

130

ASSIGN @Slot0 TO

70500

! SELECT CODE 7, MAINFRAME ADDRESS 05, SLOT 00

140

ASSIGN @Slot1 TO

70501

! SELECT CODE 7, MAINFRAME ADDRESS 05, SLOT 01

150

ASSIGN @Slot2 TO

70502

! SELECT CODE 7, MAINFRAME ADDRESS 05, SLOT 02

160

!

 

 

 

 

170

! SET UP MODULE IN SLOT 0 AS +5 V BIAS SUPPLY

---------------------

180

!

 

 

 

 

190

OUTPUT

@Slot0;"*RST;*CLS;STATUS:PRESET"

!

RESET AND CLEAR MODULE

200

OUTPUT

@Slot0;”VOLT 0”

!

START AT 0 V

210

OUTPUT

@Slot0;”OUTPUT ON"

!

ENABLE OUTPUT

220

OUTPUT

@Slot0;”VOLTAGE:MODE LIST"

!

SET TO GET VOLTAGE FROM LIST

230

OUTPUT

@Slot0;”LIST:VOLTAGE ";Plus_5v$

!

DOWNLOAD VOLTAGE LIST POINTS

240

OUTPUT

@Slot0;”LIST:DWELL”;Dwell

!

DOWNLOAD I DWELL TIME (ASSUMES SAME FOR ALL POINTS)

250

OUTPUT

@Slot0;”LIST:STEP ONCE"

!

EXECUTE 1 LIST POINT PER TRIGGER

260

OIJTPUT

@Slot0;”TRIGGER:SOURCE BUS"

!

TRIGGER SOURCE IS GPIB 'BUS'

270

OUTPUT

@Slot0;”OUTPUT:TTLTRG:SOURCE BUS"!

GENERATE BACKPLANE TTL TRIGGER WHEN GPIB 'BUS' TRIGGER IS RECEIVED

280

OUTPUT

@Slot0;"OUTPUT:TTLTRG:STATE ON"

!

ENABLE TTL TRIGGER DRIVE

290

OUTPUT

@Slot0;”INITIATE"

!

ENABLE RESPONSE TO TRIGGER

300

!

 

 

 

 

310

! SET UP MODULE IN SLOT 1 AS +12 V BIAS SUPPLY

---------------------

320

!

 

 

 

 

330

OUTPUT

@Slot1;"*RST;*CLS;STATUS:PRESET"

!

RESET AND CLEAR MODULE

340

OUTPUT

@Slot1;"VOLT 0”

!

START AT 0 V

350

OUTPUT

@Slot1;"OUTPUT ON"

!

ENABLE OUTPUT

360

OUTPUT

@Slot1;"VOLT:MODE LIST"

!

SET TO GET VOLTAGE FROM LIST

370

OUTPUT

@Slot1;"LIST:VOLTAGE ";Plus_12v$

!

DOWNLOAD VOLTAGE LIST POINTS

380

OUTPUT

@Slot1;"LIST:DWELL”;Dwell

!

DOWNLOAD 1 DWELL TIME (ASSUMES SAME FOR ALL POINTS)

390

OUTPUT

@Slot1;"LIST:STEP ONCE"

!

EXECUTE 1 LIST POINT PER TRIGGER

400

OUTPUT

@Slot1;"TRIGGER:SOURCE TTLTRG"

!

TRIGGER SOURCE IS BACKPLANE TTL TRIGGER

410

OUTPUT

@Slot1;"INITIATE"

!

ENABLE RESPONSE TO TRIGGER

420

!

 

 

 

 

430

! SET UP MODULE IN SLOT 2 AS -12 V BIAS SUPPLY

----------------------

440

!

 

 

 

 

450

OUTPUT

@Slot2;"*RST;*CLS;STATUS:PRESET"

!

RESET AND CLEAR MODULE

460

OUTPUT

@Slot2;"VOLT 0

!

START AT 0 V

470

OUTPUT

@Slot2;"OUTPUT ON"

!

ENABLE OUTPUT

480

OUTPUT

@Slot2;"VOLT:MODE LIST"

!

SET TO GET VOLTAGE FROM LIST

490

OUTPUT

@Slot2;"LIST:VOLTAGE ";Minus_12v$

!

DOWNLOAD VOLTAGE LIST POINTS

500

OUTPUT

@Slot2;"LIST:DWELL”;Dwell

!

DOWNLOAD 1 DWELL TIME (ASSUMES SAME FOR ALL POINTS)

510

OUTPUT

@Slot2;"LIST:STEP ONCE"

!

EXECUTE 1 LIST POINT PER TRIGGER

520

OUTPUT

@Slot2;"TRIGGER:SOURCE TTLTRG"

!

TRIGGER SOURCE IS BACKPLANE TTL TRIGGER

530

OUTPUT

@Slot2;"INITIATE"

!

ENABLE RESPONSE TO TTL TRIGGER

540

!

 

 

 

 

550

! BEFORE TRIGGERING THE MODULES, DETERMINE IF THE MODULES ARE READY BY CHECKING FOR

560! 'WAITING FOR TRIGGER' (BIT 5 OF THE OPERATION STATUS REGISTER). IF THE LAST MODULE PROGRAMMED

570! IS READY THEN SO ARE THE OTHERS, SO JUST CHECK SLOT 2.

580!

590! YOU COULD ELIMINATE THIS STEP BY SIMPLY INSERTING A PAUSE IN THE PROGRAM. HOWEVER, BY

Application Programs 93

Image 92
Contents Agilent Part No Microfiche Part No Update April Programming GuideSafety Guidelines Contents Abor Status Reporting Synchronizing Power Module Output Changes Error MessagesIntroduction About This GuideDocumentation Summary External ReferencesVXIplug&play Power Products Instrument Drivers Downloading and Installing the DriverAccessing Online Help Supported ApplicationsGpib Capabilities Of The Power Module Introduction To ProgrammingModule Gpib Address Introduction To ScpiRST *IDN? *SRE Volt LEV Prot Curr Voltlev 8.0 Prot 8.8 CURR?Outpprotdel Traversing the Command Tree Effect of Optional HeadersOutputprotectionclear STATUSOPERATIONCONDITION? OUTPUTPROTECTIONCLEARSTATUSOPERATIONCONDITION?Voltagelevel 7PROTECTION 8CURRENTLEVEL 3MODE List Volttrig 7.5INIT*TRG Outp OFF*RCL 2OUTP onSymbol Numerical Data Formats Talking FormatsListening Formats Suffixes and Multipliers Class Unit Unit with MultiplierSystem Considerations Assign @PM3TOError Handling Agilent Basic ControllersUsing the National Instruments Gpib Interface Sending the Command Volt 5 in Basic Sending the Command Volt 5 in CReceiving Data from the Module Receiving Module Data with BasicReceiving Module Data with C Language Dictionary IntroductionDescription Of Common Commands CLSMeaning and Type DescriptionBit Configuration of Standard Event Status Enable Register ESEESE ESR?OPC? IDN?OPC OPT? PSCRST RCLRCL SRE SAVSRE TRG Bit Configuration of Status Byte RegisterSTB? Description of Subsystem Commands TST?WAI AborSubsystem Tree Diagram Calibration Subsystem CalautoCalauto 1 Calauto Once CalcurrCalcurrlev CalpassCalsave CalstatCalvolt CalvoltlevCalvoltprot CurrCurr 500 MA Currlev CurrmodeCurrprotstat Currprotstat OFFCurrtrig Currtrig 1200 MA CurrlevtrigInit Initcont 1 Initcont on ListcounListcoun Listcoun INF ListcurrLISTCURRPOIN? ListdwelLISTDWELPOIN? ListstepListvolt Listvolt 2.0,2.5,3.0 Listvolt MAX,2.5,MINLISTVOLTPOIN? MEASCURR? MEASVOLT?Outp Outpstat ON,NORELAY OutpprotOutpprotcle Outpprotdel 75E-1 OutprelOutprelpol NormOutpttlt Outpttlt 1 Outpttlt OFFOutpttltlink Outpttltsour LinkSTATOPER? STATOPEREVEN?STATOPERCOND? StatoperenabStat Oper NTR 32 Stat Oper PTR StatpresSTATQUES? STATQUESEVEN?STATQUESCOND? Stat Ques COND?SYSTERR? SYSTVERS?Trigger Subsystem TrigTrig Trig IMM TrigdelTrigdel .25 Trigdel MAX TriglinkVolt VoltlevVoltmode Voltmode List Voltmode FIXVolttrig 1200 MV Voltlevtrig VOLTSENSSOUR?Volttrig Power Module Programming Parameters Link Parameter ListPower Module Status Structure Status Register Bit ConfigurationStatus Reporting Operation Status GroupQuestionable Status Group Bit Signal Bit Configurations of Status Registers MeaningStatus Questionable Commands Query Power Module Status Model Standard Event Status GroupLocation Of Event Handles Status Byte RegisterOutput Queue Initial Conditions At Power On ExamplesStatoperptr 5376ENAB Statquesptr 18ENABSTATOPEREVEN?QUESEVEN? Statoperptr 1024NTR Statoperenab 1024*SREModel of Fixed-Mode Trigger Operation Synchronizing Power Module Output ChangesTrigger Subsystem Initiated State Delaying StateIdle State Model of List Mode Trigger Operation INITiateCONTinuous CommandTrigger Status and Event Signals Output Change StateOutpttltsour List Subsystem Listvolt 3.0,3.25,3.5,3.75 Listdwel 10,10,25,40 Automatically Repeating a ListListcurr 2,3,12,15 Triggering a ListTiming diagrams of Liststep Operation RI Remote Inhibit Subsystem DFI Discrete Fault Indicator SubsystemScpi Command Completion Error Messages Power Module Hardware Error MessagesSystem Error Messages Standard Event Status Register Error Bits222 -223 -241 -310 -330 -350 -400 -410 -420 -430 Scpi Confirmed Commands Scpi Approved CommandsScpi Conformance Information Scpi VersionNon-SCPI Commands Application Programs Application 1. Sequencing Multiple Modules During Power Up Figure B1-1. Block Diagram of Application #1 Variations On This ImplementationFigure B1-2. Timing Diagram of Application #1 Reset and Clear Module Enable Backplane TTL Trigger DriveEnable Output Enable Response to TriggerImplementation Details How The MPS Implements The Solution MPS Set Up Figure B2-1. Block Diagram of Application #2 When a CV-TO-CC Transition Occurs Enable TTL Trigger DriveEnable Response to TTL Trigger Start AT 15Application 3. Controlling Output Voltage Ramp Up at Turn On Figure B3-1. Simulating a Slow Voltage Ramp Generating the Desired Voltage Ramp for Application #3 Option Base Start Voltage for RampStop Voltage for Ramp SecondsApplication 4. Providing Time-Varying Voltages Figure B4-1. Voltage Waveform for Application #4Module set up Variations On This Implementation Enable OCP No Delay Before Protection OccursEnable Detection of OC Condition Enables Detection on Positive TRANSITION, I.EApplication 5. Providing Time-Varying Current Limiting Figure B5-1. Typical DUT Current vs. Time Implementation Details How The MPS Implements The Sequence GO to 12 V When Triggered Current Limit DataDwell Time Data SET to GET Current from ListApplication 6. Output Sequencing Paced by the Computer Nominal 12MPS Set Up Figure B6-1. Block Diagram of Application #6 These are the Bias Supply Limit ConditionsTo be Tested Number of Bias Supply Limit C0MBINATIONSReturn Overview Of Application Advantages/Benefits Of The MPS Solution Figure B7-1. Block Diagram of Application #7 When the Module Indicates SIC Step Completed When IT Completes the LIST. OPC Generates SROEnable SRQ Interrupt Enable Intr Identify Handler SubroutineSupplemental Information CMD$ = Output on ‘ Enable Output CMD$ = Initiate ‘ Enable Trigger to Start List‘ Conversion to Send Real Numbers Over the BUS CMD$ = Voltmode List ‘ SET to GET Voltage from ListCall Iooutputs SLOTO, CMDS, L Waiting for Trigger BIT 5 of the Operation Status RegisterCONDITION.DATA = Wend‘ Disable Auto Serial Poll If IBSTA% 0 then Goto ‘ AS Part of the Command String‘ Program N3.BAS ‘ INSTRUMENT.NAME$ = SlotoStop ‘ General Error HandlerIf IBSTA% 0 then Goto Selected AS a Trigger Source Application #3 Controlling Voltage Ramp UP AT Turn on Dwell = ramptimeTo terminate the iooutputa Int error Char *badstring If error != EOl enabled for both read and write Strcatvlist, vpoint This is a generalized error checking routine Index IndexIndex Index Index Agilent Sales and Support Offices United States Latin AmericaManual Updates