background image

Parameter

None.

Remarks

None.

Return Format

None.

Examples

:STATus:PRESet /*Sets the enable registers of the Questionable 

Status register to their power-on defaults.*/

4.10.5

:STATus:QUEStionable:ENABle

Syntax

:STATus:QUEStionable:ENABle

 <

enable value>

:STATus:QUEStionable:ENABle?

Description

Enables the bits in the enable register of the Questionable Status register.

Queries the enabled bits in the enable register of the Questionable Status register.

Parameter

Name

Type

Range

Default

<enable value> Integer

Refer to 

Remarks

-

Remarks

The <enable value> is a decimal value, which corresponds to the binary-
weighted sum of the bits to be enabled in the enable register of the
Questionable Status register.

Enable the bits in the enable register of the Questionable Status register and the
system will report the state of the corresponding bit to the Status Byte register.

When <enable value> is set to 0, executing this command will clear the enable
register of the Questionable Status register.

Return Format

The query returns a decimal value, which corresponds to the binary-weighted sum of
the bits to be enabled in the enable register of the Questionable Status register. For
example, the query might 17.

 Command System

72

Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.

Summary of Contents for DP900 Series

Page 1: ......

Page 2: ...ice RIGOL shall not be liable for either incidental or consequential losses in connection with the furnishing use or performance of this manual as well as any information contained Any part of this document is forbidden to be copied photocopied or rearranged without prior written approval of RIGOL Product Certification RIGOL guarantees that this product conforms to the national and industrial stan...

Page 3: ... 13 4 1 2 ANALyzer CURRent MEASure TYPE 14 4 1 3 ANALyzer CURRent THRE 14 4 1 4 ANALyzer SAVE ROUTe 15 4 1 5 ANALyzer SAVE STATe 16 4 1 6 ANALyzer STATe 17 4 1 7 ANALyzer TYPE 18 4 2 APPLy Commands 18 4 2 1 APPLy 19 4 3 IEEE488 2 Commands 20 4 3 1 CLS 20 4 3 2 ESR 21 4 3 3 ESE 22 4 3 4 IDN 23 4 3 5 OPC 23 4 3 6 OPT 24 4 3 7 PSC 25 4 3 8 RCL 26 4 3 9 RST 27 4 3 10 SAV 27 4 3 11 SRE 28 4 3 12 STB 29...

Page 4: ... 2 MEMory CDIRectory 40 4 7 3 MEMory DELete 40 4 7 4 MEMory DISK 41 4 7 5 MEMory LOAD 42 4 7 6 MEMory LOCK 42 4 7 7 MEMory MDIRectory 43 4 7 8 MEMory STORe 44 4 7 9 MEMory VALid 45 4 8 OUTPut Commands 45 4 8 1 OUTPut CVCC 46 4 8 2 OUTPut MODE 46 4 8 3 OUTPut OCP ALAR 47 4 8 4 OUTPut OCP QUES 48 4 8 5 OUTPut OCP CLEar 49 4 8 6 OUTPut OCP DELay 49 4 8 7 OUTPut OCP STATe 50 4 8 8 OUTPut OCP VALue 51 ...

Page 5: ...ce n VOLTage PROTection TRIPped 69 4 10 STATus Commands 69 4 10 1 STATus OPERation CONDition 70 4 10 2 STATus OPERation ENABle 70 4 10 3 STATus OPERation EVENt 71 4 10 4 STATus PRESet 71 4 10 5 STATus QUEStionable ENABle 72 4 10 6 STATus QUEStionable EVENt 73 4 10 7 STATus QUEStionable INSTrument ENABle 73 4 10 8 STATus QUEStionable INSTrument EVENt 74 4 10 9 STATus QUEStionable INSTrument ISUMmar...

Page 6: ... 4 11 12 SYSTem REMote 91 4 11 13 SYSTem RWLock 92 4 11 14 SYSTem SAVer 93 4 11 15 SYSTem SYNC STATe 93 4 11 16 SYSTem TMODe 94 4 11 17 SYSTem TLOCk 95 4 11 18 SYSTem VERSion 96 4 12 TIMEr Commands 96 4 12 1 TIMEr CYCLEs 96 4 12 2 TIMEr CHANNel 97 4 12 3 TIMEr ENDState 98 4 12 4 TIMEr GROUPs NUM 98 4 12 5 TIMEr GROUP INDEx 99 4 12 6 TIMEr GROUP PARAmeter 100 4 12 7 TIMEr GROUP DELete 101 4 12 8 TI...

Page 7: ...3 TRIGger Commands 114 4 13 1 TRIGger IN ENABle 115 4 13 2 TRIGger IN IMMEdiate 115 4 13 3 TRIGger IN RESPonse 116 4 13 4 TRIGger IN SOURce 117 4 13 5 TRIGger IN TYPE 117 4 13 6 TRIGger OUT POLArity 118 4 13 7 TRIGger OUT SOURce 119 4 13 8 TRIGger OUT ENABle 120 5 Programming Examples 121 5 1 Programming Preparations 121 5 2 LabVIEW Programming Example 121 5 3 Visual Basic Programming Example 126 ...

Page 8: ...and the decimal values corresponding to their binary weights 10 Table 3 4 Definitions of the bits in the standard event register and the decimal values corresponding to their binary weights 11 Table 3 5 Definitions of the bits in the status byte register and the decimal values corresponding to their binary weights 12 Table 4 9 Ranges and default values of voltage current corresponding to each chan...

Page 9: ...ront panel key is denoted by the menu key icon For example the indicates the Utility shortcut key 2 Menu The menu function key is denoted by the format of Menu Name Bold Character Shading in the manual For example System indicates the System menu option in the operation interface Tap System to access the System function menu 3 Operation Procedures The denotes the next step of the operation For exa...

Page 10: ...of Channels Output Voltage Current DP932A 3 32 V 3 A 32 V 3 A 6 V 3 A DP932U 3 32 V 3 A 32 V 3 A 6 V 3 A DP932E 3 30 V 3 A 30 V 3 A 6 V 3 A Document Overview 2 Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved ...

Page 11: ...by a space For example ANALyzer TYPE type ANALyzer TYPE ANALyzer is the root keyword of the command TYPE is the second level keyword The command line starts with a colon and different levels of keywords are also separated by colons type indicates a settable parameter The command ending with a quotation mark indicates querying a function The command keywords ANALyzer TYPE and the parameter type are...

Page 12: ... query returns COM or CURR 3 Integer Unless otherwise specified the parameter can be any integer NR1 format within the effective value range CAUTION Do not set the parameter to a decimal otherwise errors will occur For example TIMEr GROUP INDEx val TIMEr GROUP INDEx Wherein val can be set to an integer ranging from 1 to 512 The query returns an integer ranging from 1 to 512 4 Real The parameter ca...

Page 13: ... of ASCII characters For example MEMory DELete filename Wherein filename can be set to NEW RSF Command Abbreviation All the commands are case insensitive They can all be in upper case or in lower case If abbreviation is used you must input all the capital letters in the command For example STSTem BRIGhtness can be abbreviated as STST BRIG SCPI Introduction Copyright RIGOL TECHNOLOGIES CO LTD All r...

Page 14: ...the SCPI status system Event Register An event register is a read only register that reports defined status within the power supply Bits in an event register are latched Once an event bit is set subsequent state event state represented by this bit changes are ignored Bits in an event register are automatically cleared by a query of the event register such as ESR or STATus QUEStionable EVENt or by ...

Page 15: ...ponds to the binary weighted sum of the bits you wish to enable in the register Multiple Logical Output It is only applicable to multi channel models Take DP932A as an example The three logical outputs of the power supply include a channel questionable status register and three independent channel questionable status SUMMARY registers corresponding to the logical outputs of the three channels resp...

Page 16: ...ter The questionable status register provides information about questionable status of the power supply bit4 TEMPerature reports the over temperature state bit11 FAN reports the fan failure state and bit13 INSTrument summary summaries the questionable output state of any of the three output channels Sending STATus QUEStionable EVENt will read the register To use bit13 you must SCPI Status Register...

Page 17: ...ation of the channel questionable status register and channel questionable status SUMMARY register group 14 15 Not used 0 Always be 0 Channel Questionable Status Register The channel questionable status register provides information about questionable status of any of the three output channels bit1 INST1 event summary bit2 INST2 event summary and bit3 INST3 event summary report the information abo...

Page 18: ... the current becomes unregulated Sending STATus QUEStionable INSTrument ISUMmary n EVENt will read the channel questionable status SUMMARY register of the corresponding channel The definitions of the bits in the channel questionable status SUMMARY register and the decimal values corresponding to their binary weights are as shown in the table below Table 3 3 Definitions of the bits in the channel q...

Page 19: ...standard event register and the decimal values corresponding to their binary weights are as shown in the table below An error condition bit2 bit3 bit4 or bit5 of the standard event register will record one or more errors in the power supply s error queue You can send SYSTem ERRor NEXT to read the error queue Table 3 4 Definitions of the bits in the standard event register and the decimal values co...

Page 20: ...Bit The definitions of the bits in the status byte register and the decimal values corresponding to their binary weights are as shown in the table below Table 3 5 Definitions of the bits in the status byte register and the decimal values corresponding to their binary weights Bit Decimal Value Definition 0 1 Not used 0 Always be 0 2 ERR 4 One or more errors have been stored in the Error Queue 3 QUE...

Page 21: ...e The table below lists the default units of different parameters Type Default Unit Time s Voltage V Current A Power W 4 1 ANALyzer Commands ANALyzer commands are used to set the analyzer parameters execute analysis and query the analysis results 4 1 1 ANALyzer COMMon MEASure TYPE Syntax ANALyzer COMMon MEASure TYPE ch ch ch ANALyzer COMMon MEASure TYPE Description Sets or queries the analysis obj...

Page 22: ...MEASure TYPE Syntax ANALyzer CURRent MEASure TYPE ch ch ANALyzer CURRent MEASure TYPE Description Sets or queries the analysis object of the pulse current analysis Parameter Name Type Range Default ch Discrete CH1 CH2 Remarks None Return Format The query returns CH1 CH2 or CH1 CH2 Examples ANALyzer CURRent MEASure TYPE CH1 CH2 Sets the analysis object of pulse current analysis to CH1 and CH2 ANALy...

Page 23: ...ulse In the analysis process the analyzer records the number of pulses below the threshold and the most recent pulse width below this threshold Return Format The query returns the on off state of the upper or lower limit and the specific limit value for the selected channel For example the query may return 1 1 000 Examples ANALyzer CURRent THRE CH1 UP ON 1 Sets the positive pulse threshold to 1 A ...

Page 24: ...lename which cannot be omitted Return Format The query returns the path where the log file is currently saved for example C RA ROF Examples ANALyzer SAVE ROUTe C RA ROF Sets the current saved path of the log file to C RA ROF ANALyzer SAVE ROUTe Queries the path where the log file is currently saved The query returns C RA ROF 4 1 5 ANALyzer SAVE STATe Syntax ANALyzer SAVE STATe bool ANALyzer SAVE S...

Page 25: ...ATe 1 Turns on the logger ANALyzer SAVE STATe Queries the on off state of the logger The query returns 1 4 1 6 ANALyzer STATe Syntax ANALyzer STATe bool ANALyzer STATe Description Sets or queries the run stopped state of the analyzer Parameter Name Type Range Default bool Bool 0 1 ON OFF OFF Remarks None Return Format The query returns 0 or 1 Examples ANALyzer STATe ON Turns on the analyzer ANALyz...

Page 26: ...ulti channel models you can select the specified channel and set the voltage and current in a single command If the setting values are within the parameter ranges of the corresponding channel or range of the specified model the output voltage and current will change to the setting values immediately after this command is executed The range and default value of voltage current corresponding to each...

Page 27: ...iscrete CH1 CH2 CH3 volt Real Please refer to Table 4 9 Ranges and default values of voltage current corresponding to each channel of different models of DP900 series curr Real Please refer to Table 4 9 Ranges and default values of voltage current corresponding to each channel of different models of DP900 series option Discrete CURR VOLT app Discrete MINimum MAXimum DEF Remarks In the query comman...

Page 28: ...l Return Format The query returns a string If only source is specified the query returns the specified channel name rated voltage current the voltage setting value and current setting value For example the query might return CH1 32V 3A 5 000 1 000 When all parameters are omitted the query returns the voltage setting value and current setting value of the selected channel for example 5 000 1 000 Ex...

Page 29: ...bits in the standard event register and the decimal values corresponding to their binary weights For example if query error and execution error currently occur in the instrument the bit2 query error bit and bit4 execution error bit in the event register of the Standard Event register are set and this command returns 20 according to 22 24 20 The bits in the event register of the Standard Event regi...

Page 30: ...rresponding to their binary weights please refer to Definitions of the bits in the standard event register and the decimal values corresponding to their binary weights For example to enable bit2 query error and bit4 execution error in the enable register of the Standard Event register set enable value to 20 according to 22 24 20 Enable the bits in the enable register of the Standard Event register...

Page 31: ...ter The query returns 20 4 3 4 IDN Syntax IDN Description Queries the instrument s identification string Parameter None Remarks None Return Format The query returns the ID string in the format of Rigol Technologies model serial number software version model the model number serial number the serial number software version the software version 4 3 5 OPC Syntax OPC OPC Description Sets the bit0 OPC ...

Page 32: ... register of the Standard Event register will be set If you send OPC after a command that loads a query response in the instrument s output buffer query data you can use the OPC bit to determine when the message is available Return Format The query returns 1 if all the previous commands have been executed Examples OPC Sets the bit0 OPC Operation Complete bit of the Standard Event register after th...

Page 33: ...ry function with the minimum dwell time of 100 ms available on DP932U only DP900 ARB 4 pin trigger in out function available on DP932U only DP900 DIGITALIO For example the query might return DP900 HIRES DP900 ARB indicating that the 2 options mentioned above have been installed Examples OPT Queries the installation status of the options The query returns DP900 HIRES DP900 ARB 4 3 7 PSC Syntax PSC ...

Page 34: ...xamples PSC 1 Enables the function of clearing the enable registers of the Status Byte and Standard Event registers at power on PSC Queries the on off state of the function of clearing the registers at power on The query returns 1 4 3 8 RCL Syntax RCL n Description Recalls a previously stored instrument state from the internal memory Parameter Name Type Range Default n Discrete 0 1 2 3 4 5 6 7 8 9...

Page 35: ...5 RSF stored in the internal memory 4 3 9 RST Syntax RST Description Restores the power supply to its factory default Parameter None Remarks Executing this command will immediately restore the power supply to its factory default without querying Return Format None 4 3 10 SAV Syntax SAV n Description Saves the current instrument state to the specified location in the internal memory with the specif...

Page 36: ...mory Return Format None Examples SAV 5 Saves the current instrument state to the internal memory with the filename RIGOL5 RSF 4 3 11 SRE Syntax SRE enable_value SRE Description Enables bits in the enable register of the Status Byte register Queries the enabled bits in the enable register of the Status Byte register Parameter Name Type Range Default enable_value Discrete Refer to Remarks Remarks Th...

Page 37: ...QUES and bit4 MAV in the enable register of the Status Byte register and enables the service request SRE Queries the enabled bits in the enable register of the Status Byte register The query returns 24 4 3 12 STB Syntax STB Description Queries the SUMMARY register of the Status Byte register Parameter None Remarks Executes this command and the query returns a decimal value corresponding to the bin...

Page 38: ...enerates an event trigger Parameter None Remarks This command is only applicable to the trigger system that has BUS software trigger as its trigger source When Bus software trigger is selected sending this command will trigger the power supply and generate a trigger after the specified delay time Return Format None Examples TRG Generates an event trigger 4 3 14 TST Syntax TST Description Queries t...

Page 39: ...us trigger namely software trigger is selected this command can ensure synchronization After the command is executed the instrument will wait for all the pending operations to complete before executing any other commands Return Format None Examples WAI Waits for all the pending operations to complete before executing any other commands 4 4 INSTrument Commands INSTrument commands are used to select...

Page 40: ...rn Format The query returns 1 2 or 3 representing CH1 CH2 and CH3 respectively Examples INST NSEL 2 Selects CH2 as the current channel INST NSEL Queries the channel currently selected The query returns 2 4 4 2 INSTrument SELect Syntax INSTrument SELect source INSTrument SELect Description Selects the channel to be programmed or queries the channel currently selected Parameter Name Type Range Defau...

Page 41: ...nnel currently selected Parameter Name Type Range Default source Discrete CH1 CH2 CH3 CH1 Remarks This command functions the same as INSTrument NSELect and INSTrument SELect Return Format The query returns the channel name and its rated voltage current For example the query may return CH1 32V 3A or CH2 32V 3A Examples INST CH2 Selects CH2 as the current channel INST Queries the channel currently s...

Page 42: ...k SERVICE CENTRE SERVICE License Activation to enter the software license registration interface In the software license registration interface input the correct key serial number tap Help About to obtain the serial number of the instrument and verification code Then click Generate to obtain the license file download link If you need to use the file please click the link to download the file to th...

Page 43: ...ter the software license registration interface In the software license registration interface input the correct key serial number tap Help About to obtain the serial number of the instrument and verification code Then click Generate to obtain the license file download link If you need to use the file please click the link to download the file to the root directory of the USB storage device You ca...

Page 44: ...send MEASure SCALar VOLTage DC MEASure SCALar CURRent DC and MEASure SCALar POWEr DC to query the voltage current and power measured at the output terminal of the specified channel respectively Return Format The query returns the voltage current and power separated by commas measured at the output terminal of the specified channel For example the query might return 2 0000 0 0500 0 100 Examples MEA...

Page 45: ...time Return Format The query returns the the current measured at the output terminal of the specified channel for example 0 0500 Examples MEAS CURR CH1 Queries the current measured at the output terminal of CH1 The query returns 0 0500 4 6 3 MEASure SCALar POWEr DC Syntax MEASure SCALar POWEr DC source Description Queries the power measured at the output terminal of the specified channel Parameter...

Page 46: ...tput terminal of the specified channel Parameter Name Type Range Default source Discrete CH1 CH2 CH3 ALL SERies PARallel Remarks SERies Queries the total voltage of the present series loop PARallel Queries the total voltage of the present parallel loop If source is omitted the command queries the voltage measured on the output terminal of the specified channel You can also send MEASure SCALar ALL ...

Page 47: ...P stores the screen capture image file 4 Log File ROF stores the waveform data collected in real time at the current sample rate when the Analyzer is running and the Logger is turned on 5 Calibration File CLF stores calibration parameters 4 7 1 MEMory CATalog Syntax MEMory CATalog Description Queries all the files and folders in the current path Parameter None Remarks C disk cannot store folders R...

Page 48: ...the folders such as D RIGOL in the external memory Return Format The query returns the current directory for example C Examples MEMory CDIRectory C Sets the current directory to C disk MEMory CDIRectory Queries the current directory The query returns C 4 7 3 MEMory DELete Syntax MEMory DELete filename Description Deletes the specified file and empty folders in the current directory Parameter Name ...

Page 49: ...mand is invalid if the file is locked MEMory LOCK Return Format None Examples MEM DEL NEW RSF Deletes the state file named NEW in the current directory 4 7 4 MEMory DISK Syntax MEMory DISK Description Queries the available external storage disk s Parameter None Remarks None Return Format The query returns the available disk s for example D E If there is no available external disk the query returns...

Page 50: ...ly when the file has been stored in the specified storage location You can also use RCL to read the specified state file stored in internal memory Return Format None Examples MEM LOAD NEW RSF Reads the file named NEW RSF in the current directory 4 7 6 MEMory LOCK Syntax MEMory LOCK filename bool MEMory LOCK filename Description Locks or unlocks the specified file stored in C disk or queries whethe...

Page 51: ...RSF ON Locks the file named NEW RSF in C disk MEM LOCK NEW RSF Queries whether the file named NEW RSF in C disk is locked The query returns 1 4 7 7 MEMory MDIRectory Syntax MEMory MDIRectory folder_name Description Creates a new folder in the current directory Parameter Name Type Range Default folder_name ASCII string Refer to Remarks Remarks folder_name is the name of the new folder which can con...

Page 52: ...ension of RSF RTF It can contain 125 characters in maximum The name can consist of Chinese characters English letters as well as numbers one Chinese character takes two bytes The command overwrites the previously stored file if any in the current directory If the file stored in the specified location is locked MEMory LOCK this command is invalid not overwrite the original file directly The storage...

Page 53: ... 1 4 8 OUTPut Commands OUTPut commands are used to enable or disable channel output OVP OCP function track function query the channel output mode as well as set and query the related information of overvoltage overcurrent protection The range and default value of overvoltage overcurrent protection corresponding to each channel of different models are shown in the table below Table 4 33 Range and d...

Page 54: ...age CV constant current CC and unregulated UR In CV mode the output voltage equals to the voltage setting value and the output current is determined by the load whereas in CC mode the output current equals to the current setting value and the output voltage is determined by the load UR mode is the unregulated mode between CV and CC mode If source is omitted the command queries the output mode of t...

Page 55: ...R mode is the unregulated mode between CV mode and CC mode If source is omitted the command queries the output mode of the current channel Return Format The query returns CV CC or UR Examples OUTP MODE CH1 Queries the current output mode of CH1 The query returns CV 4 8 3 OUTPut OCP ALAR Syntax OUTPut OCP ALAR source Description Queries whether an overcurrent protection OCP event occurred on the sp...

Page 56: ...ection OCP event occurred on the specified channel Parameter Name Type Range Default source Discrete CH1 CH2 CH3 Remarks Overcurrent protection OCP indicates that the output is disabled automatically when the actual output current reaches the OCP level You can send OUTPut OCP CLEar to clear the OCP event that occurred on the specified channel If source is omitted the command queries the output mod...

Page 57: ...CURRent PROTection CLEar to clear an OCP event that occurred on the specified channel and enable the channel output You can send OUTPut OCP ALAR or OUTPut OCP QUES to query whether an OCP event has occurred on the specified channel Return Format None Examples OUTP OCP QUES CH1 Queries whether an OCP event occurred on CH1 The query returns YES OUTP OCP CLE CH1 Clears an OCP event that occurred on C...

Page 58: ...ets the OCP delay to 200 ms for CH1 OUTPut OCP DELay CH1 Queries the OCP delay for CH1 The query returns 200ms 4 8 7 OUTPut OCP STATe Syntax OUTPut OCP STATe source bool OUTPut OCP STATe source Description Sets or queries the on off state of the overcurrent protection OCP function for the specified channel Parameter Name Type Range Default source Discrete CH1 CH2 CH3 bool Bool 0 1 ON OFF 0 Remarks...

Page 59: ...meter Name Type Range Default source Discrete CH1 CH2 CH3 value Real Please refer to Table 4 33 Range and default value of overvoltage overcurrent protection lim Discrete MINimum MAXimum Remarks When OCP is enabled the output is disabled automatically if the actual output current reaches the OCP level currently set You can send OUTPut OCP QUES or OUTPut OCP ALAR to query whether an OCP event occur...

Page 60: ...rce Discrete CH1 CH2 CH3 Remarks The overvoltage protection OVP function disables the output automatically when the actual output voltage reaches the OVP level If source is omitted the command queries whether an OVP event occurred on the current channel You can send OUTPut OVP CLEar to clear the OVP event that occurred on the specified channel Return Format The query returns 1 or 0 Examples OUTP O...

Page 61: ...ified channel Return Format The query returns 1 or 0 Examples OUTP OVP QUES CH1 Queries whether an OVP event occurred on CH1 4 8 11 OUTPut OVP CLEar Syntax OUTPut OVP CLEar source Description Clears an overvoltage protection OVP event occurred on the specified channel Parameter Name Type Range Default source Discrete CH1 CH2 CH3 Remarks Before executing the command make sure to remove the conditio...

Page 62: ...rce bool OUTPut OVP STATe source Description Sets or queries the on off state of the overvoltage protection OVP function of the specified channel Parameter Name Type Range Default source Discrete CH1 CH2 CH3 bool Bool 0 1 ON OFF 0 Remarks When OVP is enabled the output is disabled automatically if the output voltage reaches the OVP level OUTPut OVP VALue currently set You can send OUTPut OVP QUES ...

Page 63: ...e output is disabled automatically if the output voltage reaches the OVP level currently set You can send OUTPut OVP QUES or OUTPut OVP ALAR to query whether an OVP event occurred on the specified channel If source is omitted the command sets or queries the OVP level of the current channel You can select MINimum to set the minimum OVP level or MAXimum to set the maximum OVP level You can also send...

Page 64: ... connected in series internal Return Format The query returns the connection mode for example SERIES Examples OUTPut PAIR SERies Connects CH1 and CH2 in series internal OUTPut PAIR Queries the connection mode The query returns SERIES 4 8 15 OUTPut STATe Syntax OUTPut STATe source bool OUTPut STATe source Description Sets or queries the on off state for the specified channel Parameter Name Type Ran...

Page 65: ...Put TRACk STATe Description Sets or queries the on off state of tracking function Parameter Name Type Range Default bool Bool 0 1 ON OFF 0 Remarks For the two channels CH1 and CH2 that support this mode changes made on one channel voltage current setting value OVP OCP level and on off status are applied to the other channel By default the tracking function is disabled It is usually used to provide...

Page 66: ... CURRent LEVel IMMediate AMPLitude lim Description Sets or queries the current of the specified channel Parameter Name Type Range Default n Integer 1 2 3 current Real 0 to the maximum current value of the specified channel 0 1 A lim Discrete MINimum MAXimum DEFault amp Discrete UP DOWN Remarks If SOURce n or n is omitted the command sets the corresponding parameter of the channel currently selecte...

Page 67: ...TEP INCRement numeric value def SOURce n CURRent LEVel IMMediate STEP INCRement def Description Sets or queries the step size of current for the specified channel Parameter Name Type Range Default n Integer 1 2 3 numeric value Real 0 to the maximum current value of the specified channel Refer to Remarks def Discrete DEFault Remarks If SOURce n or n is omitted the command sets the corresponding par...

Page 68: ...step size set in this command Return Format The query returns the step size for example 0 100 Examples CURR STEP 0 1 Sets the step size to 0 1 A for the selected channel CURR STEP Queries the step size for the selected channel The query returns 0 100 4 9 3 SOURce n CURRent PROTection CLEar Syntax SOURce n CURRent PROTection CLEar Description Clears an OCP event that occurred on the specified chann...

Page 69: ...command clears an OCP event occurred on the current channel You can send OUTPut OCP CLEar command to clear an OCP event that occurred on the specified channel Return Format None Examples CURR PROT TRIP Queries whether an OCP event occurred on the current channel The query returns 1 CURR PROT CLE Clears an OCP event that occurred on the current channel CURR PROT TRIP Queries whether an OCP event oc...

Page 70: ... the channel currently selected You can also send OUTPut OCP VALue to set the OCP level for the specified channel Return Format The query returns the OCP level for example 2 000 Examples CURR PROT 2 Sets the OCP level to 2 A for the current channel CURR PROT Queries the OCP level for the current channel The query returns 2 000 4 9 5 SOURce n CURRent PROTection STATe Syntax SOURce n CURRent PROTect...

Page 71: ...OT STAT Queries the on off state of the OCP function for the current channel The query returns 1 4 9 6 SOURce n CURRent PROTection TRIPped Syntax SOURce n CURRent PROTection TRIPped Description Queries whether an overcurrent protection OCP event occurred on the specified channel Parameter Name Type Range Default n Integer 1 2 3 Remarks The overcurrent protection OCP function disables the output au...

Page 72: ...ion lim Discrete MINimum MAXimum DEFault amp Discrete UP DOWN Remarks If SOURce n or n is omitted the command sets the corresponding parameter for the channel currently selected When voltage is selected the command directly sets the voltage for the specified channel When MINimum MAXimum or DEFault is selected the command sets the minimum maximum or default voltage value within the available range ...

Page 73: ...ies the step size of voltage for the specified channel Parameter Name Type Range Default n Integer 1 2 3 voltage Real 0 to the maximum voltage value of the specified channel Please refer to Remarks def Discrete DEFault Remarks If SOURce n is omitted the command sets the corresponding parameter of the channel currently selected voltage is the step size specified DEFault is the default value The def...

Page 74: ...eturns 0 100 4 9 9 SOURce n VOLTage PROTection CLEar Syntax SOURce n VOLTage PROTection CLEar Description Clears an OVP event that occurred on the specified channel and enables the output of the corresponding channel Parameter Name Type Range Default n Integer 1 2 3 Remarks You can send SOURce n VOLTage PROTection TRIPped to query whether an OVP event occurred on the specified channel Before execu...

Page 75: ...Rce n VOLTage PROTection LEVel Syntax SOURce n VOLTage PROTection LEVel voltage lim SOURce n VOLTage PROTection LEVel lim Description Sets or queries the overvoltage protection OVP level of the specified channel Parameter Name Type Range Default n Integer 1 2 3 voltage Real Please refer to Table 4 33 Range and default value of overvoltage overcurrent protection lim Discrete MINimum MAXimum Remarks...

Page 76: ...rameter Name Type Range Default n Integer 1 2 3 bool Bool 0 1 ON OFF 0 Remarks When OVP SOURce n VOLTage PROTection STATe is enabled the output is disabled automatically if the actual output voltage reaches the OVP level currently set You can send SOURce n VOLTage PROTection TRIPped to query whether an OVP event occurred on the specified channel If SOURce n or n is omitted the command sets the cor...

Page 77: ... output voltage reaches the OVP level If SOURce n or n is omitted the command queries whether an OVP event occurred on the current channel You can also send OUTPut OVP ALAR or OUTPut OVP QUES to query whether an OVP event has occurred on the specified channel You can send SOURce n VOLTage PROTection CLEar to clear an OVP event that occurred on the specified channel Return Format The query returns ...

Page 78: ... register The query returns 0 4 10 2 STATus OPERation ENABle Syntax STATus OPERation ENABle value STATus OPERation ENABle Description Enables the bits in the enable register of the Operation Status register Queries the enabled bits in the enable register of the Operation Status register Parameter Name Type Range Default value Integer Refer to Remarks Remarks The value is a decimal value which corr...

Page 79: ...on Queries the value of the event register of the Operation Status register Parameter None Remarks Executes this command and the query returns a decimal value corresponding to the binary weighted sum of all bits set in the register and clear the status of the register Return Format The query returns a decimal value which corresponds to the binary weighted sum of the bits in the register For exampl...

Page 80: ... value is a decimal value which corresponds to the binary weighted sum of the bits to be enabled in the enable register of the Questionable Status register Enable the bits in the enable register of the Questionable Status register and the system will report the state of the corresponding bit to the Status Byte register When enable value is set to 0 executing this command will clear the enable regi...

Page 81: ...nable Status register are latched and reading the register will clear it You can also send CLS to clear the register Return Format The query returns a decimal value which corresponds to the binary weighted sum of the bits set in the event register of the Questionable Status register For example the query may return 17 Examples STAT QUES Queries the enable register of the Questionable Status regist...

Page 82: ...might return 14 Examples STAT QUES INST ENAB 14 Enables bit1 bit2 and bit3 INST n event summary channel n event summary bit n 1 2 or 3 in the enable register of the Questionable Status register STAT QUES INST ENAB Queries the enabled bits in the enable register of the Questionable Status register The query returns 14 4 10 8 STATus QUEStionable INSTrument EVENt Syntax STATus QUEStionable INSTrument...

Page 83: ...ption Sets or queries the output mode for the specified channel Parameter Name Type Range Default n Integer 1 2 3 Remarks If n is omitted the command queries the output mode of the current channel Execute the command and the query returns 0 1 2 or 3 as shown in the table below Returned Value Description 0 The output is off 1 The output is in CC constant current mode 2 The output is in CV constant ...

Page 84: ...onable Status SUMMARY register The enable value is a decimal value which corresponds to the binary weighted sum of the bits to be enabled in the enable register of the channel Questionable Status SUMMARY register Enable the bits in the enable register of the specified channel Questionable Status SUMMARY register and the system will report the state of the corresponding bit to the channel Questiona...

Page 85: ...mitted the command queries the enable register of the current channel Questionable Status SUMMARY register Executes this command and the query returns a decimal value corresponding to the binary weighted sum of all bits set in the register and clear the status of the register This event register latches all bits Reading the register clears it You can also send CLS to clear the register Return Form...

Page 86: ...e Description Issues a single beep immediately Parameter None Remarks None Return Format None Examples None 4 11 2 SYSTem BEEPer STATe Syntax SYSTem BEEPer STATe bool SYSTem BEEPer STATe Description Sets or queries the on off state of the beeper Parameter Name Type Range Default bool Bool ON OFF 1 0 OFF 0 Command System 78 Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved ...

Page 87: ...ax SYSTem BRIGhtness brightness lim SYSTem BRIGhtness lim Description Sets or queries the brightness of the LCD screen Parameter Name Type Range Default brightness Integer 1 to 100 50 factory lim Discrete MINimum MAXimum Remarks MINimum and MAXimum indicate the minimum and maximum brightness value available respectively Return Format The query returns an integer for example 60 Examples SYST BRIG 6...

Page 88: ... set 4 11 4 2 SYSTem COMMunicate LAN AUTOip STATe Syntax SYSTem COMMunicate LAN AUTOip STATe bool SYSTem COMMunicate LAN AUTOip STATe Description Sets or queries the on off state of Auto IP Parameter Name Type Range Default bool Bool 0 1 ON OFF ON 1 Remarks Before using the LAN interface please use the network cable to connect the instrument to your PC or to the network of the PC The instrument pr...

Page 89: ...nding the command execute SYSTem COMMunicate LAN APPLy to apply the network parameters currently set Return Format The query returns 1 or 0 Examples SYST COMM LAN AUTO ON Enables the Auto IP mode SYST COMM LAN AUTO Queries the on off state of Auto IP The query returns 1 4 11 4 3 SYSTem COMMunicate LAN DHCP STATe Syntax SYSTem COMMunicate LAN DHCP STATe bool SYSTem COMMunicate LAN DHCP STATe Descri...

Page 90: ...AN DNS Syntax SYSTem COMMunicate LAN DNS dns SYSTem COMMunicate LAN DNS Description Sets or queries the Domain Name Service DNS address Parameter Name Type Range Default dns ASCII string Refer to Remarks Remarks The command is valid only when Manual IP is enabled SYSTem COMMunicate LAN MANualip STATe The format of dns is nnn nnn nnn nnn wherein the first nnn ranges from 1 to 223 except 127 and the...

Page 91: ...when Manual IP is enabled SYSTem COMMunicate LAN MANualip STATe The format of ip is nnn nnn nnn nnn wherein the first nnn ranges from 1 to 223 except 127 and the other three range from 0 to 255 It is recommended that you acquire a valid address from your network administrator After sending the command execute SYSTem COMMunicate LAN APPLy to apply the network parameters currently set Return Format ...

Page 92: ... and the other three range from 0 to 255 It is recommended that you acquire a valid gateway address from your network administrator After sending the command you must execute SYSTem COMMunicate LAN APPLy to apply the network parameters currently set Return Format The query returns the default gateway for example 172 16 3 1 Examples SYST COMM LAN GATE 172 16 3 1 Sets the default gateway to 172 16 3...

Page 93: ...ry returns the MAC address for example 00 2A A0 AA E0 56 Examples None 4 11 4 8 SYSTem COMMunicate LAN MANualip STATe Syntax SYSTem COMMunicate LAN MANualip STATe bool SYSTem COMMunicate LAN MANualip STATe Description Sets or queries the on off state of Manual IP Parameter Name Type Range Default bool Bool 0 1 ON OFF 0 Remarks In Manual IP mode you can define the network parameters such as the IP ...

Page 94: ...Tem COMMunicate LAN SMASk Syntax SYSTem COMMunicate LAN SMASk submask SYSTem COMMunicate LAN SMASk Description Sets or queries the subnet mask Parameter Name Type Range Default submask ASCII string Refer to Remarks Remarks The command is valid only when Manual IP is enabled SYSTem COMMunicate LAN MANualip STATe The format of submask is nnn nnn nnn nnn wherein the nnn ranges from 0 to 255 It is rec...

Page 95: ...e The touch screen and all front panel keys are disabled except for the front panel output on off keys and key At this point you can press the output on off key only to disable channel output RWLock Remote lock mode The touch screen and all front panel keys are disabled except for the front panel output on off keys At this point you can press the output on off key only to disable channel output Yo...

Page 96: ...t in first out FIFO order The error queue is cleared when power has been off or after CLS has been executed The RST command does not clear the error queue Return Format The query returns the name and content of the error message for example 113 Undefined header keyword cannot be found If no error has occurred the query returns 0 No error Examples None 4 11 7 SYSTem KLOCk STATe Syntax SYSTem KLOCk ...

Page 97: ...ON Enables the remote lock SYST KLOC STAT Queries the on off state of remote lock The query returns 1 4 11 8 SYSTem LANGuage TYPE Syntax SYSTem LANGuage TYPE type SYSTem LANGuage TYPE Description Sets or queries the system language Parameter Name Type Range Default type Discrete EN CH DE ES FR Remarks None Return Format The query returns ENGLISH CHINESE GERMAN SPANISH or FRENCH Examples SYST LANG ...

Page 98: ...ou can press the output on off key only to disable channel output The command returns the power supply from remote control to local operation mode At this point all the front panel keys can be used You can send SYSTem REMote to return the power supply from local mode to remote mode Return Format None Examples None 4 11 10 SYSTem POWEron Syntax SYSTem POWEron poweron SYSTem POWEron Description Sets...

Page 99: ...tem configuration before the last power off at power on SYST POWE Queries the instrument configuration to be used at power on The query returns LAST 4 11 11 SYSTem PRINt Syntax SYSTem PRINt Description Queries the byte stream of the current screen image Parameter None Remarks None Return Format The query returns the hexadecimal string of the screen image in bitmap bmp format Examples None 4 11 12 ...

Page 100: ...ey of each channel power switch key and You can send SYSTem LOCal return the power supply from remote mode to local mode Return Format None Examples None 4 11 13 SYSTem RWLock Syntax SYSTem RWLock STATe bool Description Enables or disables remote lock Parameter Name Type Range Default bool Bool 1 0 ON OFF 0 OFF Remarks When the instrument operates in remote lock mode all the keys on the front pane...

Page 101: ...14 SYSTem SAVer Syntax SYSTem SAVer bool SYSTem SAVer Description Sets or queries the on off state of the screen saver function Parameter Name Type Range Default bool Bool 1 0 ON OFF 1 Remarks None Return Format The query returns 1 or 0 Examples SYST SAV ON Enables the screen saver function SYST SAV Queries the on off state of the screen saver function The query returns 1 4 11 15 SYSTem SYNC STATe...

Page 102: ... SYST SYNC ON Enables the on off sync function SYST SYNC Queries the state of the on off sync function The query returns 1 4 11 16 SYSTem TMODe Syntax SYSTem TMODe trackmode SYSTem TMODe Description Sets or queries the on off state of tracking function Parameter Name Type Range Default trackmode Discrete SYNC INDE INDE Remarks The tracking function is available for the specified channels CH1 and C...

Page 103: ...S or INDEPENDENT Examples SYST TMOD SYNC Enables the track mode SYST TMOD Queries the on off status of the track mode The query returns SYNCHRONOUS 4 11 17 SYSTem TLOCk Syntax SYSTem TLOCk bool SYSTem TLOCk Description Locks or unlocks the touch screen queries whether the touch screen is locked Parameter Name Type Range Default bool Bool 1 0 ON OFF 0 Remarks The touch screen cannot be used Return ...

Page 104: ...return 1999 0 Examples SYST VERS Queries the present SCPI version of the system The query returns 1999 0 4 12 TIMEr Commands TIMEr commands are used to set the parameters and on off state of the arbitrary waveform generator 4 12 1 TIMEr CYCLEs Syntax TIMEr CYCLEs cycle value TIMEr CYCLEs Description Sets or queries the repetition cycle for the channel currently selected Parameter Name Type Range D...

Page 105: ...function when the total number of groups is complete At this point the state of the power supply is decided by the setting in TIMEr ENDState Return Format The query returns I or N value for example N 20 Examples TIME CYCLE N 20 Sets the repetition cycle to 20 TIME CYCLE Queries the repetition cycle The query returns N 20 4 12 2 TIMEr CHANNel Syntax TIMEr CHANNel ch TIMEr CHANNel Description Sets o...

Page 106: ... down output automatically once output is completed LAST the instrument stays in the output state of the last group after the output is completed The total number of groups in timing output the number of output groups the number of cycles wherein you can send TIMEr GROUPs NUM to query the number of output groups and send TIMEr CYCLEs to set the number of cycles Return Format The query returns OFF ...

Page 107: ... Format The query returns an integer between 1 and 512 for example 25 Examples TIME GROUP NUM Queries the number of output groups The query returns 25 4 12 5 TIMEr GROUP INDEx Syntax TIMEr GROUP INDEx val TIMEr GROUP INDEx Description Sets or queries the index number of the group currently edited in the Arb editor Parameter Name Type Range Default val Integer 1 to 512 Remarks If there is no data i...

Page 108: ...ge of the current channel time Real Up to 3600 s groupcount Integer 1 to 512 1 Remarks volt curr and time are the voltage current and time of the group and their units are V A and s respectively groupcount is the number of the group of parameters to be queried and the command queries from the index number set in TIMEr GROUP INDEx The output stops with insufficient data Return Format The query retu...

Page 109: ... 1 1 Sets the parameters of the group currently edited to 0 5 V 1 A and 1 s TIMEr GROUP INDEx 2 Sets the index number of the group currently edited to 2 TIME GROUP PARA 5 5 2 1 Sets the parameters of the group currently edited to 5 5 V 2 A and 1 s TIMEr GROUP INDEx 1 Sets the index number of the group currently edited to 1 TIME GROUP PARA 2 Queries two groups of parameters starting from group 1 Th...

Page 110: ...f groups and repetition cycle currently set when the waveform output is enabled SINGle The instrument will output a single set of data in order each time the waveform output is enabled Return Format The query returns CONTINUE or SINGLE Examples TIMEr RUN SINGle Sets the run type to single TIMEr RUN Queries the run type The query returns SINGle 4 12 9 TIMEr STATe Syntax TIMEr STATe bool TIMEr STATe...

Page 111: ...IG is set to BUS you also need to send TRG to enable the output When the run mode TIMEr RUN is set to Single SINGle turning on the selected channel and the generator TIME ON the instrument will output a single group of data in order each time TIME ON is sent If the trigger source TIMEr TRIG is set to BUS the instrument will output a single group of data each time TRG is sent While the generator is...

Page 112: ...arameters set cannot reach the minimum due to the characteristic of the exponential function itself The range of the parameters created is related to the fall index currently set The larger the fall index is the wider the range of the parameters will be Return Format The query returns an integer between 0 and 10 for example 5 Examples TIME TEMP FALLR 5 Sets the fall index of ExpFall to 5 TIME TEMP...

Page 113: ...n is not available for DP932E This command is not available for Stair Up Stair Dn Stair UpDn and Pulse Return Format The query returns a real number for example 15 0 Examples TIME TEMP INTE 15 Sets the Time Interval to 15 s TIME TEMP INTE Queries the Time Interval currently set The query returns 15 0 4 12 13 TIMEr TEMPlet INVErt Syntax TIMEr TEMPlet INVErt bool TIMEr TEMPlet INVErt Description Set...

Page 114: ...ption Sets or queries the maximum voltage or current value of the selected template Parameter Name Type Range Default value Real Voltage or current range of the channel currently selected 1V 1A Remarks When the object TIMEr TEMPlet OBJect is set to Voltage V this command sets the maximum voltage value when the object is set to Current C this command sets the maximum current value When the selected...

Page 115: ... the object TIMEr TEMPlet OBJect is set to Voltage V this command sets the minimum voltage value when the object is set to Current C this command sets the minimum current value When the selected template is Pulse this command sets or queries the low level MINimum and MAXimum indicate the minimum and maximum current voltage available Return Format The query returns the minimum voltage or current va...

Page 116: ...y Setting obj to C indicates selecting current to edit value is used to set the constant voltage value and its range is the voltage range of the selected channel At this point you can send TIMEr TEMPlet MAXValue and TIMEr TEMPlet MINValue to set the maximum and minimum values of current respectively Return Format The query returns the editing object currently selected and the corresponding current...

Page 117: ...00 s The option is not available for DP932E By default the period of Pulse is 2 s and the period of other waveforms is 50 s The total number of points within a period of the selected template is determined by the period of the waveform and time interval TIMEr TEMPlet INTErval The number of points within a period period time interval Return Format The query returns a real number ranging from 0 1 to...

Page 118: ...ameters will be created using the template then the number of output groups will change to P automatically Return Format The query returns an integer between 1 and 512 for example 80 Examples TIME TEMP POINT 80 Sets the total number of points to 80 TIME TEMP POINT Queries the total number of points currently set The query returns 80 4 12 19 TIMEr TEMPlet RISERate Syntax TIMEr TEMPlet RISERate valu...

Page 119: ...ISER 5 Sets the rise index of ExpRise to 5 TIME TEMP RISER Queries the rise index of ExpRise currently set The query returns 5 4 12 20 TIMEr TEMPlet SELect Syntax TIMEr TEMPlet SELect temp TIMEr TEMPlet SELect Description Sets or queries template type Parameter Name Type Range Default temp Discrete SINE PULSE RAMP UP DN UPDN RISE FALL SINE Remarks None Return Format The query returns SINE PULSE RA...

Page 120: ...urn Format The query returns the symmetry for example 60 Examples TIME TEMP SYMM 60 Sets the Symmetry to 60 TIME TEMP SYMM Queries the Symmetry The query returns 60 4 12 22 TIMEr TEMPlet WIDTh Syntax TIMEr TEMPlet WIDTh value TIMEr TEMPlet WIDTh Description Sets or queries the Positive Pulse Width of Pulse Parameter Name Type Range Default value Real Up to 3600 s 1 s Remarks Pulse width refers to ...

Page 121: ...Up StairDn or StairUpDn Parameter Name Type Range Default val Integer 3 to 99999 25 Remarks To create a StairUp StairDn or StairUpDn waveform with a complete cycle val should be smaller than the number of the group of parameters TIMEr TEMPlet POINTs Return Format The query returns the number of steps between the maximum and minimum for the waveform for example 30 Examples TIME TEMP SEL UP Selects ...

Page 122: ...US selects a remote command as a trigger source The instrument waits for the trigger signal after the generator TIMEr STATe is turned on After the selected channel is turned on the instrument will output waveforms based on the set run mode TIMEr RUN when TRG is received Return Format The query returns MANUAL or BUS Examples TIMEr TRIG BUS Sets the Trigger Source to BUS TIMEr TRIG Queries the Trigg...

Page 123: ...rce under control TRIGger IN SOURce will turn on off the output or toggle the output state according to the setting in TRIGger IN RESPonse Return Format The query returns 1 or 0 Examples TRIG IN D1 ON Enables the trigger input function for D1 TRIG IN D1 Queries the on off state of the trigger input function for D1 The query returns 1 4 13 2 TRIGger IN IMMEdiate Syntax TRIGger IN IMMEdiate Descript...

Page 124: ...er IN TYPE is met OutOff OFF Turns off the output of the channel currently selected as the source under control when the trigger condition TRIGger IN TYPE is met OutFlip ALTER Toggles the channel output state when the trigger condition TRIGger IN TYPE is met That is turns off the channel when the current channel is on or turns on the channel when the current channel is off Return Format The query ...

Page 125: ...rmat The query returns the name of the source under control If the source under control contains multiple channels the channels are separated by commas For example the query might return CH1 or CH1 CH2 Examples TRIG IN SOUR D1 CH1 CH2 Sets the source under control of D1 trigger input to CH1 and CH2 TRIG IN SOUR D1 Queries the source under control of D1 trigger input The query returns CH1 CH2 4 13 ...

Page 126: ...E D1 FALL Sets the trigger type of D1 trigger input to the falling edge TRIG IN TYPE D1 Queries the trigger type of D1 trigger input The query returns FALL 4 13 6 TRIGger OUT POLArity Syntax TRIGger OUT POLArity d pol TRIGger OUT POLArity d Description Sets or queries the output response of the trigger output for the specified data line Parameter Name Type Range Default d Discrete D1 D2 D3 D4 D1 p...

Page 127: ...ption Sets or queries the control source of the trigger output function of the specified data line Parameter Name Type Range Default d Discrete D1 D2 D3 D4 D1 source Discrete CH1 CH2 CH3 CH1 Remarks You can select any one of CH1 CH2 and CH3 as the control source of trigger output Return Format The query returns the name of the control source selected for example CH1 Examples TRIG OUT SOUR D1 CH1 S...

Page 128: ...ter the trigger output function is enabled the specified data line outputs high low level signal according to the settings in TRIGger OUT POLArity when the specified control source TRIGger OUT SOURce is turned on Return Format The query returns 0 or 1 Examples TRIG OUT D1 ON Enables the trigger output function of D1 TRIG OUT D1 Queries the on off state of the D1 trigger output function The query r...

Page 129: ...l the instrument communicates with the PC via the USB interface Connect the USB Device interface on the rear panel of the instrument to the PC by using the USB cable After the instrument is properly connected to the PC power on the instrument to start it The following parts will make a detailed introduction about the programming examples in LabVIEW Visual Basic and Visual C 5 2 LabVIEW Programming...

Page 130: ... Diagram in the Window menu to create event structure 4 Add events including connecting instrument write operation read operation and exit Programming Examples 122 Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved ...

Page 131: ...a Connect the instrument including error processing b Write operation including error judgment Programming Examples Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved 123 ...

Page 132: ...c Read operation including error processing Programming Examples 124 Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved ...

Page 133: ...d Exit Programming Examples Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved 125 ...

Page 134: ...ming Example Program used in this example Visual Basic 6 0 Function realized in this example turn on the power supply s three channels with their color displayed Enter the Visual Basic 6 0 programming environment and perform the following procedures 1 Build a standard application program project Standard EXE and name it Demo 2 Click Project Add Module to open the Add Module dialog box In the dialo...

Page 135: ... the dialog box click on the General tab and select Form1 from the drop down button under Startup Object 5 Double click CH1 to enter the programming environment Add the following codes to control CH1 CH3 The codes of CH1 are as shown below the codes of the other channels are similar Dim defrm As Long Dim vi As Long Dim strRes As String 200 Dim list As Long Dim nmatches As Long Dim matches As Strin...

Page 136: ... above CH1 turns yellow b Click CH2 to turn on CH2 and the label above CH2 turns blue c Click CH3 to turn on CH3 and the label above CH3 turns rosy The results are as shown in the figure below 5 4 VisualC Programming Example Program used in this example Visual C 6 0 Function realized in this example search for the instrument address connect to the instrument send commands and read return values En...

Page 137: ... Options dialog box Then click the Directories tab Select Include files from the drop down list under Show directories for Double click the empty space under Directories to enter the specified path of Include files C Program Files IVI Foundation VISA WinNT include Click OK to close the dialog box Select Library files from the drop down list under Show directories for Double click the empty space u...

Page 138: ...The layout interface for adding controls is as follows 6 Modify the control attributes a Name Text as Command b Open the Data item in the Com box attribute and input the following command manually IDN c Open the General item in the Edit Box attribute and select Disabled d Name Button as Send and Read Programming Examples 130 Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved ...

Page 139: ...enter the programming environment Declare the include visa h of the VISA library in the header file and then add the following codes ViSession defaultRM vi char buf 256 0 CString s strTemp char stringTemp ViChar buffer VI_FIND_BUFLEN ViRsrc matches buffer Programming Examples Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved 131 ...

Page 140: ...gTemp char LPCTSTR strTemp viPrintf vi stringTemp Read the results viScanf vi t n buf Display the results UpdateData TRUE m_receive buf UpdateData FALSE viClose vi viClose defaultRM 9 Save compile and run the project to obtain a single exe file When the instrument is correctly connected to the PC enter a command for example IDN and click Send and Read to execute the command Then the reading result...

Page 141: ......

Reviews: