Fluke PM6681R, PM6685R manual OUTPSCALscaling factor SYSTCOMMGPIBADDRAddress

Page 19

Bus Commands for the Benchtop User

 

I N P U T

A

 

I N P U T

B

 

I N P U T

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PM6680B

N P U T S

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I

 

 

 

 

 

 

 

 

9 0 V - 2 6 5 V

 

 

 

 

E L

 

O N 1 6 8 4I2E 1E E

4 8 8 / I E C

6 2 5 I N T E R F A C E

N

 

O F AF D D R SE HS S1 , A H 1 , T 5 , L 4 , S R 1 ,

 

 

 

 

A

 

A N A L O G

 

R L 1 , D C 1 , D T 1 , E 2

 

 

 

 

 

 

O U T P U T

 

 

 

 

 

O N

P R I M A R IYN SF IUDSEE

 

 

 

 

 

 

 

 

 

 

 

P

 

P M 9 6 2P1M 9 6 7P 8M 9 6 2 8 / 8 0

 

 

B A T T E R Y

1 . 6 A T

 

 

P M 9 6 2P4M 9 6 9P0M 9 6 9 7

 

 

 

O F F

 

 

 

 

 

R

 

P M 9 6 2P5M 9 6 9 1 _ _ _ _ _

 

 

 

 

 

 

 

 

 

 

P M 9 6 2 6

_ _ _ _ _ _ _

 

 

 

 

 

 

 

 

 

A

 

 

 

 

 

 

 

P R O B E

 

 

 

 

 

 

G A T E 1 0 M HR zE F E R EENXCTEC O M PT R I G

 

 

 

 

 

E

 

O P E N O U T

I N

A R M V I EG WNLDE V E L

 

M a d e in S w e d e n

 

 

 

 

 

 

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A B

A B

 

 

 

 

 

 

 

 

 

 

 

 

 

O U T O U T

 

 

 

 

 

 

 

H

G

D

E

 

 

E X T

R E F MNUOLTT

IPN LC ILE FRA N N O

T I N C L

:OUTP￿ONOFF

OUTP:SCAL￿<scaling factor>

:SYST:COMM:GPIB:ADDR￿<Address>

<Address> can be between 1 and 30

Input 4

:ROSC:SOUR￿INTEXT *

I N P U TI N P U T

AB

I N P U T

C

OP T I O N S

P M 9 6 2 1 P M 9 6 2 4

P M 9 6 2 5 P M 9 6 2 5 B

P R I M A R Y F U S E 1 . 6 A T

9 0 V - 2 6 5 V I N S I D E

 

5 M H zR U B I D I U M

A T O M I C

R E F E R E N C E

C L IOECEKE O4U8T8P/UI ET CS /61 20 5M HIzN T0E.R6 FV Ar mC sE I N 5 0

N

I

J

K

L

M

S H 1 , A H 1 , T 6 , L 4 , S R 1 ,

 

 

 

 

 

 

R L 1 , D C 1 , D T 1 , E 2

P R O B E

 

 

 

 

L R 3 9 4 8 4

C O M P V I EA WN A L O G

G AE TX ET R E F E R E N C E

A B G N D BA O U T O P E N A R M

 

I N

 

 

T R I G

 

 

 

 

 

 

L E V E L

 

 

 

 

 

 

F

H

E

D

G

 

PM6681R

* This command is from the SENSE subsystem

Error Code 2-7

Image 19
Contents Timer/Counter/ Analyzers Pendulum Instruments AB Sweden Table of Contents Arming Subsystem Configure FunctionDiagnostics Subsystem AbortOutput Subsystem Sense Command SubsystemCommon Commands Memory SubsystemIndex Getting Started Index SectionsManual Conventions Syntax Specification FormMnemonic Conventions Setting the Gpib Address Setting Up InstrumentExample Language What can I do with the Bus? Power-onTesting the Bus Interface FunctionsParallel Poll, PP0 Service Request, SR1Listener Function, L4 Remote/Local, RL1Bus Commands for the Benchtop User INP2ATT110 Error CodeINPATT110 INPLEVlevelSystpres or *RST These commands are from the Sense subsystemACQHOFFTIMEtime ACQAPERtime FUNCfunctionchannel,channelSAVmemory location*RCLmemory location Calcavertypemaxminsdevmean Selects statistical functionMemory location can be any No. between 0 FUNCTOT1,2 All commands on this page are from the Sense subsystemOUTPSCALscaling factor SYSTCOMMGPIBADDRAddress This command is from the Sense subsystemDefault settings after *RST Default settings after *RSTIntroduction to Scpi Compatibility What is SCPI?What is SCPI? Reason for ScpiGpib Management and Maintenance of ProgramsMessage Exchange Control protocol How does Scpi Work in the Instrument?How does Scpi Work in the Instrument? Order of Execution Deferred CommandsSequential and Overlapped Commands Protocol RequirementsDefinitions Remote Local ProtocolProgram and Response Messages Program and Response MessagesSyntax and Style Syntax of Program MessagesPage Syntax of Response Messages Notation Habit in Command SyntaxResponses SEND→ Inputfilteron Moving down the Command TreeCommand Tree ExampleKeywords ParametersNumeric Data Boolean Data#218INPIMP50SENS10 Expression DataSummary Other Data Types SEND→ Systtouton or SYSTTOUT1Data Types within Macros Define Macro CommandMacros Macro NamesDeleting Macros How to Execute a MacroEnabling and Disabling Macros Retrieve a Macro GMC? Get Macro Contents QueryLMC? Learn Macro Query Introduction Status Reporting SystemStatus Reporting System Standardized Error Numbers Error ReportingDetecting Errors in the Queue Read the Error/Event QueueDevice-specific Error Execution ErrorQuery Error Message Exchange Initialization Initialization and ResettingReset Strategy Bus Initialization*CLS Command *RST CommandProgramming Examples Introduction IntroductionGW-Basic for National Instruments PC-IIA Setting up the interfaceLimit Testing 50 ‘ 90 ‘ 100 ‘ 110 ‘ -- Enable arming, etc180 ‘ Armdelay = Frequency ProfilingPRINT#1, STR$ARMDELAY, LEFT$MSG$, INSTRMSG$, CHR$10 270 WRT$ = Armdel + STR$ARMDELAY Call IBWRTCNT%, WRT$Call IBRDCNT%, MSG$ Call Ibwait CNT%, Mask Fast Sampling600 ‘ Close 620 END 510 MSG$ = SPACE$255Status Reporting 130 ‘ -- SET Event Status Enable180 ‘ -- SET Service Request Enable 260 ‘ -- Enter Command String and Send to Counter520 ‘ -- Check Event Status BIT 650 ‘ -- Read Error Messages410 ‘ -- Check Message Available BIT While SPR% LfposCall Ibrd CNT%, MSG$ Print Maximum = LEFT$MSG$, IBCNT% StatisticsPrint Waiting for Measurement to GET Ready 330 WRT$ = Calcavertype MAX CALCIMM? Call Ibwrt CNT%, WRT$540 WRT$ = Calcavertype Sdev CALCIMM? Call Ibwrt CNT%, WRT$ Call Ibrd CNT%, MSG$ Print Minimum = LEFT$MSG$, IBCNT%470 WRT$ = Calcavertype Mean CALCIMM? Call Ibwrt CNT%, WRT$ Call Ibrd CNT%, MSG$ Print Mean = LEFT$MSG$, IBCNT%‘C’ for National Instruments PC-IIA ‘C’ for National Instruments14 ‘C’ for National Instruments PC-IIA, Limit Testing ‘C’ for National Instruments PC-IIA, Real Data Format Real Data FormatFile 16 ‘C’ for National Instruments PC-IIA, Frequency ProfilingOfp Capture Profile 17 ‘C’ for National Instruments PC-IIA, Frequency Profiling18 ‘C’ for National Instruments PC-IIA, Fast Sampling ‘C’ for National Instruments PC-IIA, Fast Sampliing 20 ‘C’ for National Instruments PC-IIA, Statistics ‘C’ for National Instruments PC-IIA, Statistics This side is intentionally left blank 22 ‘C’ for National Instruments PC-IIAInstrument Model Function Instrument Examples Type CALCulate Measurement Function BlockINPut SENSeOrder of Execution Other SubsystemsMEASurement Function CONFigure READ?MEASurement Function MEASure?Versatility of Measurement Com- mands CONFigure INITiateFETCh?READ? Using the Subsystems Introduction Calculate Subsystem MathematicsStatistics Limit MonitoringPM6681 PM6680B, PM6685Calibration Subsystem Configure Function Configure FunctionFormat Subsystem Time Stamp Readout FormatInput Subsystems PM6685PM6680B/PM6681 2Summary of PM6680B / PM6681 input amplifier settingsSEND→ MEASureFREQ?20MHz,1 CONFigure READ?MEASure? SEND→ MEASureFREQ?SEND→ READ? CONFigureINITiateFETCh?Versatility of measurement com Mands Output Subsystem Scaling FactorSame exponent, opposite sign ResolutionSense Command Subsystem SwitchboxPrescaling Status Subsystem Using the RegistersStatus Reporting Model Status Structure7654 3210 Using the Status Byte Clearing/Setting all bitsUsing the Queues Status of the Error Message Queue EAVErate SRQ Selecting Summary Message to GenIc e Status Event Registers Setting up the Counter to Report StatusReading and Clearing Status Status ByteCheck & Action Why Two Types of Registers?Set up Status Condition RegistersG i s t e r Standard Status RegistersG ic a A t u s B y t eSummary, Standard Event Status Reporting Standard Event Status RegisterSCPI-defined Status Registers Summary, Operation Status Operation Status GroupReporting Summary Questionable Questionable Data/SignalData/Signal Status Reporting Status GroupDevice-defined Status Structure Error QueuePreset the Status Reporting Structure Power-on Status ClearSummary, Device-defined Status Reporting Instrument Action ARM-TRIG Trigger ConfigurationTrigger/Arming Subsystem Structure of an Event-detection Layer Structure of the Idle and Initiated StatesForward Traversing an Event-detection Layer Backward Traversing an Event-detection Layer TRG Trigger CommandWhen to use *TRG and GET TriggeringE n t d e t e c t i o n l oa ny e er a c h a r m E n t d e t e c t i o n l a y e rHow to Measure Fast Stop Controller SynchronizationMeasurement Cycle Synchronization StartSubsystem Rough TriggerDescription Some Basic Commands MEASMEM1? MEASMEM?1 RCL 1READ? CommandMEASFREQ? Data FormatARMSTARTLAY2SOURceBUS Individually Synchronized MeasurementsInitcont and GET Basic Measurement MethodInit + GET + FETCHARRay? General Speed ImprovementsBlock Synchronized Measurements READARRay?Automatic Interpolator Calibration PM6680B/85 Time Measurement ResolutionDisplay Control Gpib Data FormatReal Time Calculation MeasureMents/second Block MeasurementsSupervising a Process Supervising a ProcessObvious Method Optimal MethodTransfer to Controller Ascii Data Format Real Data Format Speed SummarySpeed Summary Dead Time Between Measurements IncludingE e d D i v i d u a l l y s y n c . m e a s PM6680B PM6681 PM6685 Block Synchronized MeasurementsSpeed Improvement Actions Dead Time Between MeasurementsSpeed Calculating the MeasurementFreq Timesaving Com Time Gain in ms Sacrifice MandsSingle Speed Switch Command for PM6681 Single Speed Switch Command for PM6680B/85Error Messages Command Errors Read the Error/Event QueueError Code 0 to SEND→ SYSTemERRor? READ← -100, Command ErrorError Code -105 to -120 Ular error message is used when the counter cannot Error Code -121 toMore specific error Detect a more specific errorError Code -151 to -170 Error Code -171 to Error Code -200 to -221 Tect the more specific errors described for errors Error Code -222 toExecution errors Error message is used when the counter cannot deError Code -241 to -272 Header syntax Error Code -273 toMacro label was already defined see Error Code -300 to -350 Query errors Error Code -400 toUnsupported single Shot command Error Code 1100 to -1139Unsupported enu Merated command Unsupported auto CommandSome PC controller cards has been known to do Error Code 1150 toReset during bus Output Read, but the waiting was broken by the operatorParser error Generic error in the parser Error Code 1214 to -1240This page is intentionally left blank Command Reference Command Reference Abort Aborts all previous measurements if *WAI is not used ABORtAbort Measurement PM6680B/81/85Arming Subsystem Send ARMCOUN100 ARM COUNtNo. of Measurements on each Bus arm «Numeric valueMINMAX» PM6680B/81/85External Events before Start Arming ARM DELayDelay after External Start Arming ARM ECOuntBus Arming On/Off ARM LAYer2ARM LAYer2 SOURce Bus Arming OverrideExternal Arming Start Source ARM SLOPeARM SOURce External Arming Start SlopeExternal Events before Stop Arming ARM Stop DELayDelay after External Stop Arming ARM Stop ECOuntExternal Stop Arming Source ARM Stop SLOPeARM Stop SOURce External Stop Arming SlopeThis page is intentionally left blank Calculate Subsystem Sample Size for Statistics Enable StatisticsCALCulate AVERage COUNt CALCulate AVERage STATeSend Calcmathstat Oncalcmath X 10.7E6INIT *OPC CALCulate AVERage TypeStatistical Type Fetch calculated dataRecalculate Data Enable Monitoring of Parameter LimitsCALCulate IMMediate CALCulate LIMitSet Low Limit CALCulate LIMit FAIL?CALCulate LIMit LOWer Limit FailCheck Against Lower Limit Set Upper LimitCALCulate LIMit LOWer STATe CALCulate LIMit UPPerCheck Against Upper Limit CALCulate LIMit UPPer STATeSendcalcmath X 10.7E6MATHSTATE ONREAD? CALCulate MathSelect Mathematical Expression ExpressionNo calculation Enable MathematicsThis example switches on mathematics CALCulate Math STATeSend Calcstat Enable CalculationSwitches on Post Processing CALCulate STATeCalibration Subsystem Boolean Once ‘How to Measure Fast’CALibration INTerpolator Auto Calibration of InterpolatorSet up Instrument for Measurement Configure FunctionSend CONFFREQRAT@3,@1 CONFigure Measuring FunctionConfigure the counter for a single measurement Parameters,channelsSend READARR? CONFigure ARRay Measuring FunctionConfigure the counter for an array of measurements Send Confarrper 7,5E-3,1E-6,@4This page is intentionally left blank Diagnostics Subsystem This string calibrates both input a and input B DIAGnosticCALibrationINPut12HYSTeresisInput comparator hysteresis calibration Send Diagcalinphyst OnceDisplay Subsystem Display State DISPlay ENABleWhere Boolean = 1 / on 0 / OFF See also , ‘How to Measure Fast’Fetch Function Fetch One Result FETCh?Fetch an Array of Results FETCh ARRay?«fetch array sizeMAX» Returned format data,data Format Subsystem Response Data Type FORMatData Type for Status Messages FORMat FIXedFORMat SREGister Response Data FormatTimestamping On/Off TimestampingOn/Off FORMat TINFormationInitiate Subsystem Continuously Initiated INITiateINITiate CONTinuous Initiate MeasurementInput B Not PM6685 Input SubsystemsINPut«12» COUPling INPut«12» ATTenuationAC/DC Coupling Sensitivity INPut FILTerINPut HYSTeresis Low Pass FilterSend Inphystauto OFF INPut HYSTeresis AutoAuto Sensitivity «BooleanONCE»Fixed Trigger Level INPut«12» IMPedanceINPut«12» LEVel Input ImpedanceSend Inplev 3.75LEVAUTO INPut LEVelWaveform compensation «Decimal dataMAXMIN» PM6685Send INP2LEVAUTO on INPut LEVel AutoAutotrigger Send Inplevauto OFFAutotrigger INPutAUTO? INPut2COMMon INPut«124» SLOPeTrigger Slope This page is intentionally left blank Measurement Function Set up the Instrument, Perform Measurement, and Read DataRISETIME? Tion, @1@3@4@5@6 Send MEASFREQ? @3 Read 1.78112526833E+009 MEASure Measuring Function?Make one measurement Parameters ,channels PM6680B/81/85Ten measuring results will be returned MEASure ARRay Measuring Function?Make an array of measurements Send MEASARRFREQ?Memory Recall, Measure and Fetch Result Data Format CommandMEASureMEMoryN? MEASureMEMory?Read +5.097555E-001 MEASure«DCYCle/PDUTycycle»Positive Duty Cycle Send MEASPDUT?This example measures the frequency at input C Expected value,resolution ,@«1234567» PM6680B/81/85MEASure FREQuency? FrequencyMEASure FREQuency BURSt? Expected value,resolution ,@«1234567»Burst Carrier Frequency Pulse Repetition Frequency MEASure FREQuency PRF?Exp. val.,res.,@«1234567» PM6680B/81/85 Send MEASFREQRAT? @1,@3 Read 2.345625764333E+000 MEASure FREQuency RATio?Fall-time Frequency RatioNegative Peak Voltage MEASure Volt MAXimum?MEASure Volt MINimum? Positive Peak VoltagePositive Pulse Width MEASure NWIDth?MEASure PWIDth? Negative Pulse WidthNegative duty cycle Duty Factor MEASure«PDUTycycle/ DCYCle»?MEASure«NDUTycycle»? Positive duty cycle Duty FactorPeriod MEASure PHASe?Phase MEASure PERiod?Rise-time MEASure Volt PTPeak?MEASure Rise TIME? Peak-to-Peak VoltageTime-Interval MEASure TINTerval?@«124»,@«124» Totalize X gated by Y, accumulated MEASure TOTalize ACCumulated?Time for gate open,@«12456» ,@«12456» PM6680B PM6681 Send CONFTOTINPSLOPe neg PM6680B/81/85CONFigure TOTalize CONTinuousTotalize Manually @«1246»,@«1246»Totalize X start/stop by Y MEASure TOTalize GATed?MEASure TOTalize SSTop? Totalize X gated by YSend MEASTOTTIM? 1,@1,@1 Totalize X-Y During a Preset TimeMEASure TOTalize TIMed? Time for gate open ,@«124»,@«124»This page is intentionally left blank Memory Subsystem Related Common CommandsMemory Free for results MEMory DELete MACRoMEMory Free SENSe? Delete one MacroNumber of states available Memory Free for MacrosMemory States Bytes available, Bytes usedThis page is intentionally left blank Output Subsystem Scaling Factor, Analog Output Enable Analog OutOUTPut OUTPut SCALePerform Measurement and Read Data Read FunctionSend Conffreqinpfilt ONREAD? Read one ResultSend Armcoun 10READARR? READARRay?Read an array of results «array size for FETChMAX»This page is intentionally left blank Sense Subsystem command tree for PM6680B and PM6681 Sense Command SubsystemSense Subsystem command tree for PM6685 Decimal value 10 ms ACQuisition APERtureSet the Measurement Time «Decimal value MINMAX»Hold Off, set event counter ACQuisition HoffACQuisition Hoff ECOunt Hold Off On/OffHold Off Time ACQuisition Hoff ModeHold Off Mode ACQuisition Hoff TimeACQuisition RESolution Average Samples AVERage COUNt«Decimal dataMIN MAX» High Speed Voltage Measurements AVERage STATeFREQuency RANGe LOWer Average or Single?Input channels PM6685 FUNCtionSelect Measuring Function Functions and channels in PM6685Input channels PM6680B and PM6681 Functions and channels in PM6680B and PM6681Buffer INTernal FORMatInternal Format Number of ResultsSelect Reference Oscillator SDELayBURST/PRF Synchronization Delay ROSCillator SOURceGated Voltage Measurement TOTalize GateVOLTageGATedSTATe Gate On/OffThis page is intentionally left blank Status Subsystem Related Common CommandsSTATus DREGister0? STATus DREGister0 ENABleEnable Device Status Reporting Bit No Weight ConditionRead Operation Status Condition Register STATus OPERation CONDition?288 STATus OPERation ENABleEnable Operation Status Reporting Send StatoperenabSTATusOPERation? STATusPRESet valuesRead Operation Status, Event STATus QUEStionable CONDition? Read Questionable Data/Signal Condition RegisterSTATus QUEStionable? STATus QUEStionable ENABleEnable Questionable Data/Signal Status Reporting Read Questionable Data/Signal Event RegisterThis page is intentionally left blank System Subsystem Related common commandSend Systcommgpibaddr SYSTem ERRor?SYSTem COMMunicate Gpib ADDRess Set Gpib AddressSee also Default settings on SYSTem PRESetPreset Signal DetectionRead On-time Read or Send SettingsSYSTem SET SYSTem Time ELAPsed?SYSTem Tout Time Timeout On/OffTimeout, Set SYSTem ToutSystem Version SYSTem UNPRotectSYSTem VERSion? UnprotectTest Subsystem Select Self-tests Select Check signalTESTCHECk Test SELectTrigger Subsystem No. of Triggerings on each Ext Arm start TRIGgerCOUNtSend Trigcoun Common Commands Send *CLS Clear Status CommandSend Autofilt OFF Define MacroSend AMPLITUDE? Read +3.46125461E-001+3.64852399E-001SEND*EMC Enable MacrosEnables macro expansion and execution Decimal data PM6680B/81/85Event Status Enable Register 1 = enable Standard Event Status EnableOperation Complete Send *GMC? ‘AMPLITUDE?’ Event Status RegisterGet Macro Definition Macro label PM6680B/81/85READAUTOFILT,AMPLITUDE? Identification queryLearn Macro MainOperation Complete Learn Device SetupSend INIT*OPC Bus option,Prescaler option Operation Complete QueryOption Identification Example 6 is ChapterRemoves all macro definitions Power-on Status ClearThis example enables automatic power-on clearing Purge MacrosRecall Protected User Data‘Macro name’ is the name of the macro you want to delete ResetThis command removes an individual MACRo PM6680B/81/85 Default settings onDecimal data = a number between 1 SaveSend *SAV Service Request Enable Register 1 = enable Service Request EnableRead +3.2770536E+004 Status Byte QueryARMSTARtLAYer2IMM *WAIFETCh? Send ARMSTARTLAY2SOURCE BUS Send Initcont onSENDMEASFREQ? *WAIMEASPDUT? Integer = PM6680B Error PM6681, PM6685 Er RorSelf Test Wait-to-continueIndex Average or Single? · · · · · · · · · · · · · AddressAuto Auto calibration on/off· · · · · · · · · · · 9-24AverageCalculate Command Error CMEBurst BusARMSEQuence1LAYer1ECOunt CONFigureTOTalizeACCumulatedSTATusOPERationCONDition? SENSeFREQuencyRANGeLOWerSTATusQUEStionableCONDition? Display DelayDevice dependent Error DDE Device Status RegisterFail Limit · · · · · · · · · · · · · · · · · · · · · · · EventsExecution External Events before Start ArmingInitiated state · · · · · · · · · · · · · · · · · 6-28Input Hysteresis · · · · · · · · · · · · · · · · · · · ·Measuring Lower LimitOperation Status MonitorResult PulseQUE · · · · · · · · · · · · · · · · · 9-130 9-131Query ResponseSpeed SettingsSet Stop arming · · · · · · · · · · · · · · · · · 9-11SourceTime TestTime out For measurement TIO · · · · · · · 6-24Timebase Upper Limit See Also Command *TRG