Agilent Technologies 66lxxA manual ‘ Conversion to Send Real Numbers Over the BUS, CMD$ = Listvolt

Page 99

1340

CMD$ = "VOLT+ STR$( VSTART )

‘ START RAMP AT VSTART. USE NUMBER TO STRING

1350

L = LEN( CMD$ )

‘ CONVERSION TO SEND REAL NUMBERS OVER THE BUS

1360

CALL IOOUTPUTS( SLOTO, CMD$, L )

‘ AS PART OF THE COMMAND STRING.

1370

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1380

 

1390

CMD$ = "CURR .1”

 

1400

L = LEN( CMD$ )

 

1410

CALL IOOUTPUTS( SLOTO, CMD$, L )

 

1420

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1430

 

1440

CMD$ = "OUTPUT ON"

‘ ENABLE OUTPUT

1450

L = LEN( CMD$ )

 

1460

CALL IOOUTPUTS( SLOTO, CMD$, L )

 

1470

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1480

 

1490

CMD$ = "VOLT:MODE LIST"

‘ SET TO GET VOLTAGE FROM LIST

1500

L = LEN( CMD$ )

 

1510

CALL IOOUTPUTS( SLOTO, CMD$, L )

 

1520

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1530

 

1540

‘ SENDING THE VOLTAGE DATA POINTS REQUIRES TWO STEPS USING THE GPIB COMMAND LIBRARY. THE INSTRUCTION CONTAINS BOTH

1550

‘ STRING DATA AND A REAL ARRAY. FIRST, SEND THE STRING DATA COMMAND HEADER "LIST:VOLT" TO THE MODULE USING lOOUTPUTS.

1560

‘ THEN, SEND THE REAL ARRAY USING IOOUTPUTA. HOWEVER, YOU MUST INHIBIT THE EOI AND END-OF-LINE TERMINATOR AFTER THE

1570

‘ IOOUTPUTS COMMAND OR THE MODULE WILL STOP TAKING DATA. THEN RE-ENABLE THEM TO TERMINATE THE IOOUTPUTA.

1580

 

1590

EOI.STATE = 0

‘ TURN OFF EOI

1600

CALL IOEOI( INTERFACE, EOI.STATE )

 

1610

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1620

 

1630

END.OF.LINE = 0

‘ TURN OFF END-OF-LINE TERMINATION

1640

CALL IOEOL( INTERFACE, CR.LF$, END.OF.LINE )

 

1650

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1660

 

1670

CMD$ = "LIST:VOLT

 

1680

L = LEN( CMD$ )

 

1690

CALL IOOUTPUTS( SLOTO, CMD$, L )

‘ SEND THE VOLTAGE HEADER (STRING) ...

1700

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1710

 

1720

EOI.STATE = 1

‘ TURN ON EOI

1730

CALL IOEOI( INTERFACE, EOI.STATE )

 

1740

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1750

 

1760

END.OF.LINE = LEN (CR.LF$ )

‘ TURN ON END-OF-LINE TERMINATION

1770

CALL IOEOL( INTERFACE, CR.LF$ , END.OF.LINE )

 

1780

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1790

 

1800

CALL IOOUTPUTA( SLOTO, VSTEP(1), NUM.POINTS ) ‘ DOWNLOAD THE VOLTAGE POINTS (ARRAY)

1810

IF PCIB.ERR<>0 THEN ERROR PCIS.BASERR

 

1820

 

1830

CMD$ = "LIST:DWELL “ + STR$( DWELL )

‘ DOWNLOAD 1 DWELL TIME. USE NUMBER TO STRING

1840

L = LEN( CMD$ )

‘ CONVERSION TO SEND REAL NUMBERS OVER THE BUS

1850

CALL IOOUTPUTS( SLOTO, CMD$, L )

‘ AS PART OF THE COMMAND STRING.

1860

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1870

 

1880

CMD$ = "LIST:STEP AUTO"

DWELL-PACED LIST

1890

L = LEN( CMD$ )

 

1900

CALL IOOUTPUTS( SLOTO, CMD$, L )

 

1910

IF PCIB.ERR<>0 THEN ERROR PCIB.BASERR

 

1920

 

1930

CMD$ = "INITIATE"

‘ ENABLE TRIGGER TO START LIST

100 Application Programs

Image 99
Contents Programming Guide Agilent Part No Microfiche Part No Update AprilSafety Guidelines Contents Abor Status Reporting Error Messages Synchronizing Power Module Output ChangesExternal References IntroductionAbout This Guide Documentation SummarySupported Applications VXIplug&play Power Products Instrument DriversDownloading and Installing the Driver Accessing Online HelpIntroduction To Scpi Gpib Capabilities Of The Power ModuleIntroduction To Programming Module Gpib AddressRST *IDN? *SRE Voltlev 8.0 Prot 8.8 CURR? Volt LEV Prot CurrOutpprotdel Effect of Optional Headers Traversing the Command TreeVolttrig 7.5INIT*TRG Outp OFF*RCL 2OUTP on Outputprotectionclear STATUSOPERATIONCONDITION?OUTPUTPROTECTIONCLEARSTATUSOPERATIONCONDITION? Voltagelevel 7PROTECTION 8CURRENTLEVEL 3MODE ListSuffixes and Multipliers Class Unit Unit with Multiplier SymbolNumerical Data Formats Talking Formats Listening FormatsAssign @PM3TO System ConsiderationsAgilent Basic Controllers Error HandlingUsing the National Instruments Gpib Interface Sending the Command Volt 5 in C Sending the Command Volt 5 in BasicReceiving Module Data with Basic Receiving Data from the ModuleReceiving Module Data with C Introduction Language DictionaryDescription Description Of Common CommandsCLS Meaning and TypeESR? Bit Configuration of Standard Event Status Enable RegisterESE ESEIDN? OPCOPC? PSC OPT?RCL RCLRST SAV SRESRE Bit Configuration of Status Byte Register STB?TRG Abor Description of Subsystem CommandsTST? WAICalauto Subsystem Tree Diagram Calibration SubsystemCalpass Calauto 1 Calauto OnceCalcurr CalcurrlevCalvoltlev CalsaveCalstat CalvoltCurrmode CalvoltprotCurr Curr 500 MA CurrlevCurrtrig 1200 MA Currlevtrig CurrprotstatCurrprotstat OFF CurrtrigListcurr Init Initcont 1 Initcont onListcoun Listcoun Listcoun INFListstep LISTCURRPOIN?Listdwel LISTDWELPOIN?MEASCURR? MEASVOLT? ListvoltListvolt 2.0,2.5,3.0 Listvolt MAX,2.5,MIN LISTVOLTPOIN?Outpprot Outp Outpstat ON,NORELAYNorm Outpprotcle Outpprotdel 75E-1Outprel OutprelpolOutpttltsour Link OutpttltOutpttlt 1 Outpttlt OFF OutpttltlinkStatoperenab STATOPER?STATOPEREVEN? STATOPERCOND?Statpres Stat Oper NTR 32 Stat Oper PTRStat Ques COND? STATQUES?STATQUESEVEN? STATQUESCOND?Trig SYSTERR?SYSTVERS? Trigger SubsystemTriglink Trig Trig IMMTrigdel Trigdel .25 Trigdel MAXVoltmode List Voltmode FIX VoltVoltlev VoltmodeVOLTSENSSOUR? VolttrigVolttrig 1200 MV Voltlevtrig Link Parameter List Power Module Programming ParametersOperation Status Group Power Module Status StructureStatus Register Bit Configuration Status ReportingBit Signal Bit Configurations of Status Registers Meaning Status Questionable Commands QueryQuestionable Status Group Standard Event Status Group Power Module Status ModelStatus Byte Register Output QueueLocation Of Event Handles Examples Initial Conditions At Power OnStatoperptr 1024NTR Statoperenab 1024*SRE Statoperptr 5376ENABStatquesptr 18ENAB STATOPEREVEN?QUESEVEN?Synchronizing Power Module Output Changes Trigger SubsystemModel of Fixed-Mode Trigger Operation Delaying State Idle StateInitiated State Output Change State Model of List Mode Trigger OperationINITiateCONTinuous Command Trigger Status and Event SignalsOutpttltsour List Subsystem Triggering a List Listvolt 3.0,3.25,3.5,3.75 Listdwel 10,10,25,40Automatically Repeating a List Listcurr 2,3,12,15Timing diagrams of Liststep Operation DFI Discrete Fault Indicator Subsystem Scpi Command CompletionRI Remote Inhibit Subsystem Standard Event Status Register Error Bits Error MessagesPower Module Hardware Error Messages System Error Messages222 -223 -241 -310 -330 -350 -400 -410 -420 -430 Scpi Version Scpi Confirmed CommandsScpi Approved Commands Scpi Conformance InformationNon-SCPI Commands Application Programs Application 1. Sequencing Multiple Modules During Power Up Variations On This Implementation Figure B1-1. Block Diagram of Application #1Figure B1-2. Timing Diagram of Application #1 Enable Response to Trigger Reset and Clear ModuleEnable Backplane TTL Trigger Drive Enable OutputImplementation Details How The MPS Implements The Solution MPS Set Up Figure B2-1. Block Diagram of Application #2 Start AT 15 When a CV-TO-CC Transition OccursEnable TTL Trigger Drive Enable Response to TTL TriggerApplication 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 Seconds Option BaseStart Voltage for Ramp Stop Voltage for RampFigure B4-1. Voltage Waveform for Application #4 Application 4. Providing Time-Varying VoltagesModule set up Variations On This Implementation Enables Detection on Positive TRANSITION, I.E Enable OCPNo Delay Before Protection Occurs Enable Detection of OC ConditionApplication 5. Providing Time-Varying Current Limiting Figure B5-1. Typical DUT Current vs. Time Implementation Details How The MPS Implements The Sequence SET to GET Current from List GO to 12 V When TriggeredCurrent Limit Data Dwell Time DataNominal 12 Application 6. Output Sequencing Paced by the ComputerMPS Set Up Figure B6-1. Block Diagram of Application #6 Number of Bias Supply Limit C0MBINATIONS These are the BiasSupply Limit Conditions To be TestedReturn Overview Of Application Advantages/Benefits Of The MPS Solution Figure B7-1. Block Diagram of Application #7 Enable Intr Identify Handler Subroutine When the Module Indicates SIC Step CompletedWhen IT Completes the LIST. OPC Generates SRO Enable SRQ InterruptSupplemental Information CMD$ = Voltmode List ‘ SET to GET Voltage from List CMD$ = Output on ‘ Enable OutputCMD$ = Initiate ‘ Enable Trigger to Start List ‘ Conversion to Send Real Numbers Over the BUSWend Call Iooutputs SLOTO, CMDS, LWaiting for Trigger BIT 5 of the Operation Status Register CONDITION.DATA =‘ INSTRUMENT.NAME$ = Sloto ‘ Disable Auto Serial PollIf IBSTA% 0 then Goto ‘ AS Part of the Command String ‘ Program N3.BAS‘ General Error Handler If IBSTA% 0 then Goto Selected AS a Trigger SourceStop Dwell = ramptime Application #3 Controlling Voltage Ramp UP AT Turn onTo 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 United States Latin America Agilent Sales and Support OfficesManual Updates