Agilent Technologies 6631B Example 2. IBM Controller Using National Interface, Call IBCLRPS%

Page 96

D - Example Programs

Example 2. IBM Controller Using National Interface

990’---------------------- Merge DECL.BAS here ------------------------

1000 ’DC Source Variable = PS% ; Stand-Alone Address = 706 1005 CODES$=SPACE$(50):MODE$=SPACE$(5):OEVENT$=SPACE$(20)

1010 D$=SPACE$(60):OUTPUT$=SPACE$(40):BDNAME$="PS%"

1015 DIM OUTPUT(2)

1020 ’

1025 ’Set up dc source interface for DOS driver

1030 CALL IBFIND(BDNAME$,PS%)

1035 IF PS%

1040 CALL IBCLR(PS%)

1045 ’

1050 ’Program dc source to CV mode with following voltage and current 1055 CODES$ = "VOLTAGE MAX;CURRENT MAX" :GOSUB 2000

1060 ’

1065 ’Query dc source outputs and print to screen

1070

CODES$ = "MEASURE:VOLTAGE?;CURRENT?"

:GOSUB 2000 :GOSUB 3000

1075

VOUT = OUTPUT(1)

 

 

 

 

 

1080

IOUT = OUTPUT(2)

 

 

 

 

 

1085

PRINT"The programmed levels are "VOUT" Volts and "IOUT" Amps"

1090

 

 

 

 

 

1095

’Program triggered current level to value insufficient to maintain

1100

’supply within its CV operating characteristic

1105

CODES$ = "CURR:TRIG MIN"

:GOSUB 2000

 

 

1110

 

 

 

 

 

1115

’Set operation status mask to detect mode change from CV to CC

1120

CODES$ = "STAT:OPER:ENAB 1024;PTR 1024"

 

:GOSUB 2000

1125

 

 

 

 

 

1130

’Enable Status Byte OPER summary bit

 

 

1135

CODES$ = "*SRE 128"

:GOSUB 2000

 

 

1140

 

 

 

 

 

1145

’Arm trigger circuit and send trigger to dc source

1150

CODES$ = "INITIATE:SEQUENCE1;TRIGGER"

 

:GOSUB 2000

1160

’Wait for supply

to respond to trigger

 

 

1165

FOR I= 1 to 100

:NEXT I

 

 

 

1170

 

 

 

 

 

1175

’Poll for interrupt caused by change to CC mode and print to screen

1180

SPOL%=0

 

 

 

 

 

1185

CALL IBRSP(PS%,SPOL%)

 

 

 

 

1190

IF (SPOL% AND 128) = 128 THEN POLL = 1

 

’Set interrupt flag on

OPER bit

 

 

 

 

 

1195

IF POLL <> 1 THEN GOTO 1230

 

 

’No interrupt to

service

 

 

 

 

 

1200

"CODES$ = "STAT:OPER:EVEN?"

:GOSUB 2000

’Query status oper

register

 

 

 

 

 

1205

CALL IBRD(PS%,OEVENT$)

 

 

 

’Read back event bit

1210

IF IBSTA%

 

 

 

 

 

1215

OEVENT=VAL(OEVENT$)

 

 

 

 

1220

IF (OEVENT AND 1024) = 1024 THEN PRINT "Supply switched to CC mode."

96

Image 96
Contents Programming Guide Safety Guidelines Printing HistoryTable of Contents Language Dictionary Internally Triggered MeasurementsOutput Commands Error Messages Scpi Conformance InformationCompatibility Language Example ProgramsAbout this Guide Documentation SummaryExternal References Gpib ReferencesScpi References VXIplug&play Power Products Instrument Drivers Downloading and Installing the DriverSupported Applications System RequirementsAccessing Online Help Gpib Capabilities of the DC SourceRS-232 Capabilities of the DC Source Gpib AddressRS-232 Flow Control RS-232 Programming ExampleBaud Rate RS-232 Troubleshooting Introduction to ScpiConventions Used in This Guide Boldface fontTypes of Scpi Commands Multiple Commands in a MessageIncluding Common Commands Using QueriesTypes of Scpi Messages Moving Among SubsystemsQuery Indicator Message UnitHeaders Message Unit SeparatorScpi Data Formats Numerical Data FormatsSuffixes and Multipliers Response Data TypesScpi Command Completion Using Device ClearPage Power-on Initialization IntroductionProgramming the Output Enabling the OutputOutput Voltage Output CurrentMaximum Voltage Maximum CurrentSetting the Voltage or Current Trigger Levels Triggering Output ChangesScpi Triggering Nomenclature Output Trigger System ModelInitiating the Output Trigger System Generating TriggersMaking Measurements Voltage and Current MeasurementsDC Measurements RMS Measurements Agilent 66312A, 66332A Only Current RangesInternally Triggered Measurements Measurement Trigger System ModelSequence Form Alias SEQuence2 ACQuire Generating Measurement Triggers Agilent 66312A, 66332A Only BUSTrigger Commands Used to Measure Output Pulses Measuring Output Pulses Agilent 66312A, 66332A Only Current DetectorPulse Measurement Queries Controlling Measurement Samples Varying the Voltage or Current Sampling RateMultiple Measurements Agilent 66312A, 66332A Only Pulse Measurement Example Agilent 66312A, 66332A only Pre-event and Post-event TriggeringOption Base Power-On Conditions Programming the Status RegistersOperation Status Group Questionable Status Group Standard Event Status GroupStatus Byte Register Determining the Cause of a Service Interrupt Servicing Operation Status and Questionable Status EventsMSS Bit RQS BitInhibit/Fault Indicator Monitoring Both Phases of a Status TransitionDiscrete Fault Indicator DFI Remote Inhibit RIUsing the Inhibit/Fault Port as a Digital I/O Bit WeightDFI Programming Example PinPage Subsystem Commands Language DictionarySubsystem Commands Syntax DFI ALCSubsystem Commands Syntax Common Commands Common Commands SyntaxProgramming Parameters Output Programming ParametersCalibration Commands CALibrateCURRentCALibrateCURRentNEGative CALibrateCURRentMEASureLOWRangeCALibratePASSword Command Syntax CALibrateSAVE Parameters None ExamplesCALibrateDATA CALibrateLEVelCALibrateSTATe CALibrateVOLTageCALibrateVOLTagePROTection Query Syntax CALibrateSTATe?Measurement Commands MEASureARRayCURRent? FETChARRayCURRent?MEASureARRayVOLTage? FETChARRayVOLTage? Query SyntaxMEASureCURRent? FETChCURRent? MEASureCURRentACDC? FETChCURRentACDC?MEASureCURRentHIGH? FETChCURRentHIGH? FETChCURRent? applies to Agilent 66312A, 66332A OnlyMEASureCURRentLOW? FETChCURRentLOW? MEASureCURRentMAXimum? FETChCURRent MAXimum?MEASureCURRentMINimum? FETChCURRentMINimum? MEASureVOLTage? FETChVOLTage? MEASureVOLTageACDC? FETChVOLTageACDC?MEASureVOLTageHIGH? FETChVOLTageHIGH? FETChVOLTage? applies to Agilent 66312A, 66332A OnlyMEASureVOLTageLOW? FETChVOLTageLOW? MEASureVOLTageMAXimum? FETChVOLTageMAXimum?MEASureVOLTageMINimum? FETChVOLTageMINimum? SENSeCURRentRANGe SENSeCURRentDETectorUnit a amperes *RST Value MAX high range Returned Parameters NR3SENSeFUNCtion SENSeSWEepOFFSetPOINtsSENSeSWEepPOINts SENSeSWEepTINTervalSENSeWINDow HANNingRECTangular Returned Parameters CRDOutput Commands OUTPutOUTPutDFI OUTPutDFISOURceOUTPutPROTectionDELay OUTPutPONSTATeOUTPutPROTectionCLEar OUTPutRELay OUTPutRELayPOLarityOUTPutRIMODE Query Syntax OUTPputRELayPOLarity?Default Suffix SOURceCURRentSOURceCURRentTRIGger SOURceCURRentPROTectionSTATeSOURceDIGitalDATA SOURceDIGitalFUNCtionSOURceVOLTage Query Syntax SOURceDIGitalDATA?SOURceVOLTageALCBANDwidth? SOURceVOLTageALCBWIDth? SOURceVOLTageTRIGgerSOURceVOLTagePROTection Agilent 66332A, 6631B, 6632B, 6633B and 6634B OnlyStatus Commands STATusPRESetSTATusOPERation? STATusOPERationCONDition?STATusOPERationENABle Query Syntax STATusOPERationENABle?Parameters Preset Value STATusOPERationNTR STATusOPERationPTRSTATusQUEStionableENABle STATusQUEStionable?STATusQUEStionableCONDition? Command Syntax *CLS Parameters None STATusQUEStionableNTR STATusQUEStionablePTRCLS STATQUESNTR?STATQUESPTR?Bit Configuration of Standard Event Status Enable Register ESEESR? OPCPSC SREPSC on ExampleBit Configuration of Status Byte Register STB?WAI NR1 register binary valueSystem Commands DISPlayDISPlayMODE DISPlayTEXTSYSTemERRor? SYSTemLANGuageSYSTemVERSion? Parameters none Returned Parameters NR2SYSTemLOCal SYSTemREMoteSYSTemRWLock IDN?Command Syntax RCL NRf Parameters Example OPT?RCL RSTRST Settings Command Syntax SAV NRf Parameters ExampleSAV TST?Trigger Commands ABORtINITiateSEQuence INITiateNAME INITiateCONTinuousSEQuence1 INITiateCONTinuousNAMETRIGger TRIGgerSOURceTRIGgerSEQuence2 TRIGgerACQuire Abor Currtrig Init *TRG VolttrigTRIGgerSEQuence2COUNtCURRent TRIGgerACQuireCOUNtCURRent TRIGgerSEQuence2COUNtVOLTage TRIGgerACQuireCOUNtVOLTageParameters RST Value Examples TRIGSEQ2COUNCURR 5 TrigacqcouncurrTRIGSEQ2HYSTVOLT TRIGSEQ2LEVCURR TRIGSEQ2HYSTCURR TRIGSEQ2LEVVOLTTRIGgerSEQuence2LEVelCURRent TRIGgerACQuireLEVelCURRent TRIGgerSEQuence2LEVelVOLTage TRIGgerACQuireLEVelVOLTageTRIGSEQ2LEVVOLT TRIGSEQ2HYSTCURR TRIGSEQ2LEVCURR TRIGSEQ2HYSTVOLTTRIGgerSEQuence2SLOPeCURRent TRIGgerACQuireSLOPeCURRent TRIGgerSEQuence2SLOPeVOLTage TRIGgerACQuireSLOPeVOLTageTRIGSEQ2SLOPVOLT Parameters None Related Commands TRIGgerSEQuence2SOURce TRIGgerACQuireSOURceTRIGgerSEQuence1DEFine TRIGgerSEQuence2DEFine TRGPage Scpi Confirmed Commands Non-SCPI CommandsScpi Version Page Table B-1. COMPatibility Power-on Settings Command Command SettingTable B-2. COMPatibility Commands Compatibility ERR? FAULT? ID? IOUT?Similar Scpi Command ASTS? CLRCompatibility Command Table B-2. COMPatibility Commands Description Similar ScpiTable B-2. COMPatibility Commands Compatibility Description CommandThese commands determine the conditions that will set bits ErrorNorm Fast INH ERR UNR +CC RQS ERR RDYFAU Page Error Number List Bit Set Error Number Error Code Error TypeTable C-1. Error Numbers Error Number Page Assigning the Gpib Address in Programs Types of DOS DriversAgilent 82335A Driver National Instruments Gpib DriverError Handling Basic ControllersExample Programs D Example 2. IBM Controller Using National Interface Call IBCLRPS%CODES$=*CLS Example 3. Controller Using Basic Option BaseIndex Index 100101 Scpi102 Manual Updates
Related manuals
Manual 82 pages 25.5 Kb Manual 83 pages 60.43 Kb

6613C, 66312A, 6631B, 6611C, 6614C specifications

Agilent Technologies, a leader in electronic test and measurement solutions, offers a range of power supplies designed to meet various application needs. Notable models include the 6632B, 6634B, 66332A, 6633B, and 6612C. Each of these units provides unique features and technologies that cater to researchers, engineers, and technicians in the industry.

The Agilent 6632B is a single-output DC power supply that delivers up to 30V and 3A. It is known for its excellent load regulation and low noise, making it ideal for sensitive electronic testing. The model includes built-in voltage and current measurement capabilities, allowing users to monitor output conditions in real time. The 6632B is commonly used in laboratory environments, educational institutions, and manufacturing lines.

Moving to the 6634B, this model offers dual-output capabilities with a maximum output of 30V and 6A. This versatility enables simultaneous powering of two different devices or circuit sections. It also features parallel and series operation options, allowing users to create a custom power supply configuration for specific applications. With a programmable interface, the 6634B simplifies test automation, ensuring efficiency in extensive testing scenarios.

The Agilent 66332A stands out with its precision and high performance. This power supply provides three outputs—two programmable and one fixed—yielding flexible power configurations. Its intuitive user interface allows easy adjustment of voltage and current settings. The device is equipped with extensive protection features to safeguard both the power supply and the connected load against faults. It is an excellent choice for complex testing setups that require reliable power.

The 6633B model offers a high-performance power supply with dual outputs, similar to the 6634B but with enhanced specifications. It can provide up to 40V and 2A per channel, delivering precision for demanding applications. This model is particularly suited for industries focused on high-reliability applications, such as telecommunications and aerospace.

Lastly, the Agilent 6612C is a compact and lightweight power supply providing single-output up to 60V and 2A. This model is designed for simplicity and ease of use, making it an excellent choice for portable applications. The 6612C’s unique characteristics include a compact design and user-friendly controls, which facilitate operation in field settings.

In summary, Agilent Technologies’ power supply models—6632B, 6634B, 66332A, 6633B, and 6612C—offer an array of features that cater to a wide range of testing and research needs, ensuring reliable power delivery in various contexts.