background image

 

 

SCPI  Command  Introduction 

 

Copyright© Itech Electronic

 Co., Ltd.

 

Chapter1  SCPI Command Introduction 

1.1 Overview 

SCPI  is  short  for  Standard  Commands  for  Programmable  Instruments  which 
defines a communication method of bus controller and instrument. It is based 
on ASCII and supply for testing and measuring instruments. SCPI command is 
based  on  hierarchical  architecture  which  also  known  as  tree  system.  In  this 
system, Relevant  Command  is  returned  to  a  common  node  or  root,  so  that  a 
subsystem is formed. 

A part of OUTPut subsystem is listed below: 

OUTPut: 

SYNC {OFF|0|ON|1} 

SYNC: 

MODE {NORMal|CARRier} 

POLarity {NORMal|INVerted}

 

OUTPut  is the root class keyword,  SYNC is the second keyword, MODE and 
POLarity  are  the  third  keyword.  Colon(:)  is  used  for  separating  the  command 
keyword and the next level keyword. 

1.2 Command Type of SCPI 

SCPI has two types of commands, common and subsystem.

 

  Common commands generally are not related to specific operation but to 

controlling overallinstrument functions, such as reset, status, and 
synchronization. All commoncommands consist of a three-letter mnemonic 
preceded by an asterisk: *RST *IDN? *SRE 8. 

  Subsystem commands perform specific instrument functions. They are 

organized into an inverted tree structure with the "root" at the top. The 
following figure shows a portion of a subsystem command tree, from which 
you access the commands located along the various paths. 

 

 

Multiple commands in a message 

Multiple  SCPI  commands  can  be  combined  and  sent  as  a  single 
message  with  one  message  terminator.  There  are  two  important 
considerations  when  sending  several  commands  within  a  single 

Содержание IT5102 Series

Страница 1: ...Internal Resistance Tester IT5102 Programming Guide Model IT5102 IT5102E Version 1 0...

Страница 2: ...in this document that conflict with these terms the warranty terms in the separate agreement shall prevail Technology Licenses The hardware and or software described herein are furnished under a lice...

Страница 3: ...as all the freights duties and other taxes shall be on the account of customer Limitation of Warranty This Warranty will be rendered invalid if the product is Damaged resulting from customer wired cir...

Страница 4: ...s should be capable of bearing maximum short circuit of electronic load without overheating If there are multiple loads each pair of the load power cord must be carry out the full rated short circuit...

Страница 5: ...h the WEEE Directive 2002 96 EC marking requirement This affix product label indicates that you must not discard the electrical electronic product in domestic household waste This symbol indicates the...

Страница 6: ...2010 EN 55011 2009 A1 2010 Group 1 Class A IEC 61000 4 2 2008 EN 61000 4 2 2009 IEC 61000 4 3 2006 A1 2007 A2 2010 EN 61000 4 3 2006 A1 2008 A2 2010 IEC 61000 4 4 2004 A1 2010 EN 61000 4 4 2004 A1 20...

Страница 7: ...rface 9 Chapter2 System Command 10 SYSTem VERSion 10 SYSTem ERRor 10 SYSTem CLEar 11 SYSTem LOCal 11 SYSTem REMote 11 SYSTem RWLock 12 Chapter3 Configuration Commands 13 CHANnel VOLTage GROUp ENABle N...

Страница 8: ...e the third keyword Colon is used for separating the command keyword and the next level keyword 1 2 Command Type of SCPI SCPI has two types of commands common and subsystem Common commands generally a...

Страница 9: ...different subsystems you need to be able to reset the header path to a null string within a message You do this by beginning the command with a colon which discards any previous header path For exampl...

Страница 10: ...ou are reading back a measurement array you must dimension the array according to the number of measurements that you have placed in the measurement buffer Read back all the results of a query before...

Страница 11: ...or four letters such as VOLT STAT and DEL Query Indicator Following a header with a question mark turns it into a query VOLTage VOLTage PROTection If a query contains a parameter place the query indic...

Страница 12: ...is the message sent by the instrument to the computer in response to a query command Sending a response message After sending a query command the response message is placed in the Output Queue When t...

Страница 13: ...ommand strings For example VPP VRMS DBM indicates that you may assign APP VRMS or DBM in the above commands Vertical stripes are not sent along with command strings Angle brackets in the second exampl...

Страница 14: ...a command requires several Parameter then a comma must be used to separate adjacent Parameter Space You must use blank characters TAB or Space to separate Parameter with key words of commands Generic...

Страница 15: ...ically round the input parameter to acceptable values The following commands require numerical Parameter of frequency value SOURce 1 2 FREQuency CENTer Frequency MINimum MAXimum NR1 represents an inte...

Страница 16: ...wing command DISPlay TEXT quoted string For example the following commands display message of WAITING without quotation marks on the front panel of the instrument DISP TEXT WAITING Single quotation ma...

Страница 17: ...n ERROR lighted in the front panel when a fault or sevral faults are occurred The maximum 20 items message can be saved in instrument once the command is sent one piece of error message is read 1 Sequ...

Страница 18: ...ameters None Example SYST CLE Returned Parameters None Related command CLS SYSTem LOCal This command is used to switch the instrument to local control mode control from panel In this mode all of keys...

Страница 19: ...ple SYST REM SYSTem RWLock This command is transmit through RS232 interface the same function as SYSTem REMote but the difference is this command can lock LOCAL button as well When this command is exe...

Страница 20: ...e measurement function of the corresponding channel 1 represents the disabling and 0 represents the disabling Command syntax VOLTage GROUp ENABle NR1 NR2 Parameter NR1 Group 0 16 NR2 enable or disable...

Страница 21: ...ommand selects channel seting the parameter after select the channel number Command syntax CHANnel SET NRf Parameters 1 136 IT5102E 1 272 IT5102 Example CHAN SET 1 Query Syntax CHANnel SET Return Para...

Страница 22: ...nnel 0 disable 1 enable Command syntax CHANnel RESistance STATe bool Parameters 0 1 ON OFF Default Value ON Example CHAN RES 0 Query Syntax CHANnel RESistance STATe Return Parameters Channel number wh...

Страница 23: ...Voltage Value Relevant Command CHAN SET CHANnel MEASure RESistance This command is used to query the internal resistance measurement value of present channel Command syntax MEASure RESistance Paramet...

Страница 24: ...None CHANnel QUEStionable NUMber This command is used to query the counts of channels Command syntax CHANnel QUEStionable NUMber Parameters None Example CHAN QUES NUM Return Parameters NRf Relevant Co...

Страница 25: ...tes low range and 0 indicates high range Command syntax CHANnel VOLTage RANGe STATe bool Parameters 0 1 ON OFF Default Value ON Example VOLT RANG 0 Query Syntax VOLTage RANGe STATe Return Parameters 0...

Страница 26: ...tion frequency for measurement 0 indicates 500HZ and 1 indicates 1000HZ Command syntax CHANnel FREQuency STATe bool Parameters 0 1 or ON OFF Default Value ON Example FREQuency 0 Query Syntax FREQuency...

Страница 27: ...Syntax PANEl STATe Return Parameters 0 1 Relevant Command PANE CHANnel FILTer STATe This command enbles the filter function or disables the filter function Command syntax CHANnel FILTer STATe bool Par...

Страница 28: ...dard event enable register Setting parameter can determine which bit of standard event register is 1 and the byte will enable ESB of status byte register is 1 Command syntax ESE NR1 Parameters 0 255 E...

Страница 29: ...meters None Return Parameters AARD Example ITECH IT5102 KN34243232 01 00 RST This command reset the power supply to default settings Command syntax RST Parameters None SRE n This command can set the p...

Страница 30: ...ue of bit6 in status byte register will be clean Query Syntax STB Parameters None Return Parameters NR1 Relevant Command CLS ESE ESR WAI This command instructs the internal resistance tester not to pr...

Страница 31: ...roducts If you have any doubt about this product please contact us as follow 1 Please refer to the CD ROM of related user s manual in package 2 Visit ITECH website www itechate com 3 Select the most c...

Отзывы: