:py:mod:`lager_pcb.rigol_dp800` =============================== .. py:module:: lager_pcb.rigol_dp800 Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: lager_pcb.rigol_dp800.DP800 Attributes ~~~~~~~~~~ .. autoapisummary:: lager_pcb.rigol_dp800.LAGER_CURRENT_LIMIT lager_pcb.rigol_dp800.IP_ADDR .. py:data:: LAGER_CURRENT_LIMIT :annotation: = 1 .. py:class:: DP800(instr) .. py:method:: check_instrument() .. py:method:: get_identification() Query the ID string of the instrument. .. py:method:: set_lager_safety() .. py:method:: __str__() Return str(self). .. py:method:: _interpret_channel(channel) Wrapper to allow specifying channels by their name (str) or by their number (int) .. py:method:: _interpret_source(source) Wrapper to allow specifying sources by their name (str) or by their number (int) .. py:method:: run_analyzer() When receiving this command, the instrument executes the analysis operation according to the current setting. .. py:method:: get_analyzer_current_time() Query the current time of the analyzer. .. py:method:: set_analyzer_current_time(time=1) Set the current time of the analyzer. .. py:method:: get_analyzer_end_time() Query the end time of the analyzer. .. py:method:: set_analyzer_end_time(time=2) Set the end time of the analyzer. .. py:method:: get_analyzer_file() Query the record file currently opened. .. py:method:: set_analyzer_file(location) Open the specified record file in memory. .. py:method:: get_analyzer_unit() Query the analysis object of the analyzer. .. py:method:: set_analyzer_unit(unit='V') Set the analysis object of the analyzer to voltage, current or power. .. py:method:: get_analyzer_result() Query the analysis results, including the number of groups, median, mode, average, variance, range, minimum, maximum and mean deviation .. py:method:: set_analyzer_start_time(time=1) Set the start time of the analyzer. .. py:method:: get_analyzer_start_time() Query the start time of the analyzer. .. py:method:: get_analyzer_value(time=1) Query the voltage, current and power at the specified time in the record file opened. .. py:method:: get_channel(channel=1) Query the voltage/current of the specified channel. .. py:method:: set_channel(voltage, current, channel=1) Select the specified channel as the current channel and set the voltage/current of this channel. .. py:method:: get_channel_limits(channel=1) Query the upper limits of the specified channel. .. py:method:: get_delay_cycles() Query the number of cycles of the delayer. .. py:method:: set_delay_cycles(cycles=1) Set the number of cycles of the delayer .. py:method:: get_delay_end_state() Query the end state of the delayer. .. py:method:: set_delay_end_state(state='OFF') Set the end state of the delayer. .. py:method:: get_delay_groups() Query the number of output groups of the delayer. .. py:method:: set_delay_groups(groups=1) Set the number of output groups of the delayer. .. py:method:: get_delay_parameters(group=0, num_groups=1) Query the delayer parameters of the specified groups. .. py:method:: set_delay_parameters(group=0, state='OFF', delay=1) Set the delayer parameters of the specified group. .. py:method:: delay_is_enabled() Query the state of the delay output function of the current channel. .. py:method:: enable_delay() Enable the state of the delay output function of the current channel. .. py:method:: disable_delay() Disable the state of the delay output function of the current channel. .. py:method:: get_delay_generation_pattern() Query the pattern used when generating state automatically. .. py:method:: set_delay_generation_pattern(pattern='01') Select the pattern used when generating state automatically. .. py:method:: get_delay_stop_condition() Query the stop condition of the delayer. .. py:method:: set_delay_stop_condition(condition='NONE', value=0) Set the stop condition of the delayer. .. py:method:: get_delay_generation_time() Query the method used to generate time automatically as well as the corresponding parameters. .. py:method:: set_delay_generation_time(mode='FIX', timebase=None, step=None) Set the method used to generate time automatically and the corresponding parameters. .. py:method:: get_display_mode() Query the current display mode. .. py:method:: set_display_mode(mode='NORM') Set the current display mode. .. py:method:: enable_screen_display() Turn on the screen display. .. py:method:: disable_screen_display() Turn off the screen display. .. py:method:: screen_display_is_enabled() Query the current screen display state. .. py:method:: clear_display_text() Clear the characters displayed on the screen. .. py:method:: get_display_text() Query the string currently displayed on the screen. .. py:method:: set_display_text(text, x=5, y=110) Display the specified string from the specified coordinate on the screen. .. py:method:: clear_status() Clear all the event registers in the register set and clear the error queue. .. py:method:: get_event_status_enable() Query the enable register for the standard event status register set. .. py:method:: set_event_status_enable(data=0) Set the enable register for the standard event status register set. .. py:method:: get_event_status() Query and clear the event register for the standard event status register. .. py:method:: get_identification() Query the ID string of the instrument. .. py:method:: get_vendor() .. py:method:: get_product() .. py:method:: get_serial_number() .. py:method:: get_firmware() .. py:method:: is_busy() The *OPC? command is used to query whether the current operation is finished. The *OPC command is used to set the Operation Complete bit (bit 0) in the standard event status register to 1 after the current operation is finished. .. py:method:: reset() Restore the instrument to the default state. .. py:method:: get_service_request_enable() Query the enable register for the status byte register set. .. py:method:: set_service_request_enable(data=0) Set the enable register for the status byte register set. .. py:method:: get_status_byte() Query the event regester for the status byte register. The value of the status byte register is set to 0 after this command is executed. .. py:method:: self_test_is_passing() Perform a self-test and then returns the self-test results. .. py:method:: wait() Wait for the operation to finish. .. py:method:: initialize_trigger() Initialize the trigger system. .. py:method:: get_coupling_channels() Query the current trigger coupling channels. .. py:method:: set_coupling_channels(channels) Select the trigger coupling channels. .. py:method:: get_selected_channel() Query the channel currently selected. .. py:method:: select_channel(channel) Select the current channel. .. py:method:: install_option(license) Install the options. .. py:method:: measure(channel) Query the voltage, current and power measured on the output terminal of the specified channel. .. py:method:: measure_current(channel) Query the current measured on the output terminal of the specified channel. .. py:method:: measure_power(channel) Query the power measured on the output terminal of the specified channel. .. py:method:: measure_voltage(channel) Query the voltage measured on the output terminal of the specified channel. .. py:method:: get_current_monitor_condition() Query the current monitor condition of the monitor (the current channel). .. py:method:: set_current_monitor_condition(condition='NONE', logic='NONE') Set the current monitor condition of the monitor (the current channel). .. py:method:: get_power_monitor_condition() Query the power monitor condition of the monitor (the current channel). .. py:method:: set_power_monitor_condition(condition='NONE', logic='NONE') Set the power monitor condition of the monitor (the current channel). .. py:method:: enable_monitor() Enable the monitor (the current channel). .. py:method:: disable_monitor() Disable the monitor (the current channel). .. py:method:: monitor_is_enabled() Query the state of the monitor (the current channel) .. py:method:: get_monitor_stop_mode() Query the stop mode of the monitor (the current channel). .. py:method:: enable_monitor_outoff() Enable the "OutpOff" mode of the monitor (the current channel). .. py:method:: disable_monitor_outoff() Disable the "OutpOff" mode of the monitor (the current channel). .. py:method:: enable_monitor_warning() Enable the "Warning" mode of the monitor (the current channel). .. py:method:: disable_monitor_warning() Disable the "Warning" mode of the monitor (the current channel). .. py:method:: enable_monitor_beeper() Enable the "Beeper" mode of the monitor (the current channel). .. py:method:: disable_monitor_beeper() Disable the "Beeper" mode of the monitor (the current channel). .. py:method:: get_voltage_monitor_condition() Query the voltage monitor condition of the monitor (the current channel). .. py:method:: set_voltage_monitor_condition(condition='NONE', logic='NONE') Set the voltage monitor condition of the monitor (the current channel). .. py:method:: get_output_mode(channel=None) Query the current output mode of the specified channel. .. py:method:: overcurrent_protection_is_tripped(channel=None) Query whether OCP occurred on the specified channel. .. py:method:: clear_overcurrent_protection_trip(channel=None) Clear the label of the overcurrent protection occurred on the specified channel. .. py:method:: enable_overcurrent_protection(channel=None) Enable the overcurrent protection (OCP) function of the specified channel. .. py:method:: disable_overcurrent_protection(channel=None) Disable the overcurrent protection (OCP) function of the specified channel. .. py:method:: overcurrent_protection_is_enabled(channel=None) Query the status of the overcurrent protection (OCP) function of the specified channel. .. py:method:: get_overcurrent_protection_value(channel=None) Query the overcurrent protection value of the specified channel. .. py:method:: set_overcurrent_protection_value(value, channel=None) Set the overcurrent protection value of the specified channel. .. py:method:: overvoltage_protection_is_tripped(channel=None) Query whether OVP occurred on the specified channel. .. py:method:: clear_overvoltage_protection_trip(channel=None) Clear the label of the overvoltage protection occurred on the specified channel. .. py:method:: enable_overvoltage_protection(channel=None) Enable the overvoltage protection (OVP) function of the specified channel. .. py:method:: disable_overvoltage_protection(channel=None) Disable the overvoltage protection (OVP) function of the specified channel. .. py:method:: overvoltage_protection_is_enabled(channel=None) Query the status of the overvoltage protection (OVP) function of the specified channel. .. py:method:: get_overvoltage_protection_value(channel=None) Query the overvoltage protection value of the specified channel. .. py:method:: set_overvoltage_protection_value(value, channel=None) Set the overvoltage protection value of the specified channel. .. py:method:: get_output_range() Query the range currently selected of the channel. .. py:method:: set_output_range(range='P20V') Select the current range of the channel. .. py:method:: enable_sense(channel=None) Enable the Sense function of the channel. .. py:method:: disable_sense(channel=None) Disable the Sense function of the channel. .. py:method:: sense_is_enabled(channel=None) Query the status of the Sense function of the channel. .. py:method:: enable_output(channel=None) Enable the output of the specified channel. .. py:method:: disable_output(channel=None) Disable the output of the specified channel. .. py:method:: output_is_enabled(channel=None) Query the status of the specified channel. .. py:method:: num_channels() .. py:method:: enable_tracking(channel=None) Enable the track function of the specified channel. .. py:method:: disable_tracking(channel=None) Disable the track function of the specified channel. .. py:method:: tracking_is_enabled(channel=None) Query the status of the track function of the specified channel. .. py:method:: get_record_destination() Query the storage directory of the record file. .. py:method:: set_record_destination(file_name='RIGOL.ROF', location=10) Store the record file to the specified storage location in the internal memory with the specified filename. .. py:method:: set_record_destination_external(file_path) Store the record file to the specified storage directory in the external memory. .. py:method:: get_record_period() Query the current record period of the recorder. .. py:method:: set_record_period(period=1) Query the current record period of the recorder. .. py:method:: enable_record() Enable the recorder. .. py:method:: disable_record() Disable the recorder. .. py:method:: record_is_enabled() Query the status of the recorder. .. py:method:: get_channel_current(source=None) Query the current of the specified channel. .. py:method:: set_channel_current(value, source=None) Set the current of the specified channel. .. py:method:: get_channel_voltage(source=None) Query the voltage of the specified channel. .. py:method:: set_channel_voltage(value, source=None) Set the voltage of the specified channel. .. py:method:: get_channel_current_increment(source=None) Query the step of the current change of the specified channel. .. py:method:: set_channel_current_increment(value, source=None) Set the step of the current change of the specified channel. .. py:method:: get_channel_current_trigger(source=None) Query the trigger current of the specified channel. .. py:method:: set_channel_current_trigger(value, source=None) Set the trigger current of the specified channel. .. py:method:: beep() Send this command and the beeper immediately sounds. .. py:method:: enable_beeper() Enable the beeper. .. py:method:: disable_beeper() Disable the beeper. .. py:method:: beeper_is_enabled() Query the status of the beeper. .. py:method:: get_brightness() Query the brightness of the screen. .. py:method:: set_brightness(brightness=50) Set the brightness of the screen. .. py:method:: get_gpib_address() Query the current GPIB address. .. py:method:: set_gpib_address(address=2) Set the current GPIB address. .. py:method:: apply_lan_settings() Apply the network parameters currently set. .. py:method:: enable_auto_ip() Enable the auto IP configuration mode. .. py:method:: disable_auto_ip() Disable the auto IP configuration mode. .. py:method:: auto_ip_is_enabled() Query the status of the auto IP configuration mode. .. py:method:: enable_dhcp() Enable the DHCP configuration mode. .. py:method:: disable_dhcp() Disable the DHCP configuration mode. .. py:method:: dhcp_is_enabled() Query the status of the DHCP configuration mode. .. py:method:: get_dns() Query the current DNS address. .. py:method:: set_dns(address) Set the current DNS address. .. py:method:: get_gateway() Query the current default gateway. .. py:method:: set_gateway(gateway) Set the current default gateway. .. py:method:: get_ip_address() Query the current IP address. .. py:method:: set_ip_address(address) Set the IP address. .. py:method:: get_mac_address() Query the MAC address. .. py:method:: enable_manual_ip() Enable the manual IP configuration mode. .. py:method:: disable_manual_ip() Disable the manual IP configuration mode. .. py:method:: manual_ip_is_enabled() Query the status of the manual IP configuration mode. .. py:method:: get_subnet_mask() Query the current subnet mask. .. py:method:: set_subnet_mask(mask) Set the subnet mask. .. py:method:: get_baud() Query the baud rate of the RS232 interface. .. py:method:: set_baud(rate) Set the baud rate of the RS232 interface and the unit is Baud. .. py:method:: get_data_bit() Query the data bit of the RS232 interface. .. py:method:: set_data_bit(data=8) Set the data bit of the RS232 interface. .. py:method:: enable_hardware_flow_control() Enable the hardware flow control. .. py:method:: disable_hardware_flow_control() Disable the hardware flow control. .. py:method:: hardware_flow_control_is_enabled() Query the status of the hardware flow control. .. py:method:: get_parity_mode() Query the current parity mode. .. py:method:: set_parity_mode(mode='NONE') Set the parity mode. .. py:method:: get_stop_bit() Query the current stop bit. .. py:method:: set_stop_bit(data=1) Set the stop bit. .. py:method:: get_contrast() Query the contrast of the screen. .. py:method:: set_contrast(contrast=25) Set the contrast of the screen. .. py:method:: get_error() Query and clear the error messages in the error queue. .. py:method:: enable_remote_lock() Enable the remote lock. .. py:method:: disable_remote_lock() Disable the remote lock. .. py:method:: remote_lock_is_enabled() Query the status of the remote lock. .. py:method:: get_language() Query the current system language type. .. py:method:: set_language(language='EN') Set the system language. .. py:method:: lock_keyboard() Lock the front panel. .. py:method:: unlock_keyboard() Unlock the front panel. .. py:method:: keyboard_is_locked() Query whether the front panel is locked. .. py:method:: enable_sync() Turn on the on/off sync function. .. py:method:: disable_sync() Turn off the on/off sync function. .. py:method:: sync_is_enabled() Query whether the on/off sync function is turned on. .. py:method:: enable_overtemperature_protection() Enable the over-temperature protection (OTP) function. .. py:method:: disable_overtemperature_protection() Disable the over-temperature protection (OTP) function. .. py:method:: overtemperature_protection_is_enabled() Query the status of the over-temperature protection function. .. py:method:: enable_recall() The instrument uses the system configuration (including all the system parameters and states except the channel output on/off states) before the last power-off at power-on. .. py:method:: disable_recall() The instrument uses the factory default values at power-on (except those parameters that will not be affected by reset. .. py:method:: recall_is_enabled() Query the status of the power-on mode. .. py:method:: get_luminosity() Query the RGB brightness of the screen. .. py:method:: set_luminosity(luminosity=50) Set the RGB brightness of the screen. .. py:method:: enable_screen_saver() Enable the screen saver function. .. py:method:: disable_screen_saver() Disable the screen saver function. .. py:method:: screen_saver_is_enabled() Query the status of the screen saver function. .. py:method:: top_board_is_passing() Query the self-test results of TopBoard. .. py:method:: bottom_board_is_passing() Query the self-test results of BottomBoard. .. py:method:: fan_is_passing() Query the self-test results of the fan. .. py:method:: get_temperature() Query the self-test result of the temperature. .. py:method:: get_track_mode() Query the current track mode. .. py:method:: set_track_mode(mode='SYNC') Set the track mode. .. py:method:: get_system_version() Query the SCPI version number of the system .. py:method:: get_timer_cycles() Query the current number of cycles of the timer. .. py:method:: set_timer_cycles(cycles='I') Set the number of cycles of the timer. .. py:method:: get_timer_end_state() Query the current end state of the timer. .. py:method:: set_timer_end_state(state='OFF') Set the end state of the timer. .. py:method:: get_timer_groups() Query the current number of output groups of the timer. .. py:method:: set_timer_groups(num_groups=1) Set the number of output groups of the timer. .. py:method:: get_timer_parameters(group=None, num_groups=1) Query the timer parameters of the specified groups. .. py:method:: set_timer_parameters(group, voltage, current=1, delay=1) Set the timer parameters of the specified group. .. py:method:: enable_timer() Enable the timing output function. .. py:method:: disable_timer() Disable the timing output function. .. py:method:: timer_is_enabled() Query the status of the timing output function. .. py:method:: reconstruct_timer() Send this command and the instrument will create the timer parameters according to the templet currently selected and the parameters set. .. py:method:: get_timer_exp_fall_rate() Query the fall index of ExpFall. .. py:method:: set_timer_exp_fall_rate(rate=0) Set the fall index of ExpFall. .. py:method:: get_timer_interval() Query the current time interval. .. py:method:: set_timer_interval(interval=1) Set the time interval. .. py:method:: enable_timer_invert() Enable the invert function of the templet currently selected. .. py:method:: disable_timer_invert() Disable the invert function of the templet currently selected. .. py:method:: timer_is_inverted() Query whether the invert function of the templet currently selected is enabled. .. py:method:: get_timer_max_value() Query the maximum voltage or current of the templet currently selected. .. py:method:: set_timer_max_value(value) Set the maximum voltage or current of the templet currently selected. .. py:method:: get_timer_min_value() Query the minimum voltage or current of the templet currently selected. .. py:method:: set_timer_min_value(value=0) Set the minimum voltage or current of the templet currently selected. .. py:method:: get_timer_unit() Query the editing object of the templet currently selected as well as the corresponding current or voltage. .. py:method:: set_timer_unit(unit='V', value=0) Select the editing object of the templet and set the current or voltage. .. py:method:: get_timer_pulse_period() Query the period of Pulse. .. py:method:: set_timer_pulse_period(value=10) Set the period of Pulse. .. py:method:: get_timer_points() Query the total number of points .. py:method:: set_timer_points(value=10) Set the total number of points. .. py:method:: get_timer_exp_rise_rate() Query the rise index of ExpRise. .. py:method:: set_timer_exp_rise_rate(rate=0) Set the rise index of ExpRise. .. py:method:: get_timer_template() Query the templet type currently selected .. py:method:: set_timer_template(mode='SINE') Select the desired templet type. .. py:method:: get_timer_ramp_symmetry() Query the symmetry of RAMP. .. py:method:: set_timer_ramp_symmetry(symmetry=50) Set the symmetry of RAMP. .. py:method:: get_timer_pulse_width() Query the positive pulse width of Pulse. .. py:method:: set_timer_pulse_width(width=5) Set the positive pulse width of Pulse. .. py:method:: get_trigger_source_type() Query the trigger source type currently selected. .. py:method:: set_trigger_source_type(mode='BUS') Select the trigger source type .. py:method:: set_trigger_current(current=0.1, channel=1) Set the trigger current of the specified channel. .. py:method:: enable_trigger_input(data_line=None) Enable the trigger input function of the specified data line. .. py:method:: disable_trigger_input(data_line=None) Disable the trigger input function of the specified data line. .. py:method:: trigger_input_is_enabled(data_line='D0') Query the status of the trigger input function of the specified data line. .. py:method:: trigger() Initialize the trigger system. .. py:method:: get_trigger_response(data_line=None) Query the output response of the trigger input of the specified data line .. py:method:: set_trigger_response(mode='OFF', data_line=None) Set the output response of the trigger input of the specified data line. .. py:method:: get_trigger_sensitivity(data_line=None) Query the trigger sensitivity of the trigger input of the specified data line. .. py:method:: set_trigger_sensitivity(sensitivity='LOW', data_line=None) Set the trigger sensitivity of the trigger input of the specified data line. .. py:method:: get_trigger_input_source(data_line=None) Query the source under control of the trigger input of the specified data line. .. py:method:: set_trigger_input_source(channel=1, data_line=None) Set the source under control of the trigger input of the specified data line. .. py:method:: get_trigger_type(data_line=None) Query the trigger type of the trigger input of the specified data line. .. py:method:: set_trigger_type(mode='RISE', data_line=None) Set the trigger type of the trigger input of the specified data line. .. py:method:: set_trigger_voltage(voltage=0, channel=1) Set the trigger voltage of the specified channel. .. py:method:: get_trigger_condition(data_line=None) Query the trigger condition of the trigger output of the specified data line. .. py:method:: set_trigger_condition(condition='OUTOFF', value=0, data_line=None) Set the trigger condition of the trigger output of the specified data line. .. py:method:: get_trigger_duty_cycle(data_line=None) Query the duty cycle of the square waveform of the trigger output on the specified data line. .. py:method:: set_trigger_duty_cycle(duty_cycle=50, data_line=None) Set the duty cycle of the square waveform of the trigger output on the specified data line. .. py:method:: enable_trigger_output(data_line=None) Enable the trigger output function of the specified data line. .. py:method:: disable_trigger_output(data_line=None) Disable the trigger output function of the specified data line. .. py:method:: trigger_output_is_enabled(data_line='D0') Query the status of the trigger output function of the specified data line. .. py:method:: get_trigger_period(data_line=None) Query the period of the square waveform of the trigger output on the specified data line. .. py:method:: set_trigger_period(period=1, data_line=None) Set the period of the square waveform of the trigger output on the specified data line. .. py:method:: get_trigger_polarity(data_line=None) Query the polarity of the trigger output signal of the specified data line. .. py:method:: set_trigger_polarity(polarity='POSI', data_line=None) Set the polarity of the trigger output signal of the specified data line. .. py:method:: get_trigger_signal(data_line=None) Query the type of the trigger output signal of the specified data line. .. py:method:: set_trigger_signal(signal='LEVEL', data_line=None) Set the type of the trigger output signal of the specified data line. .. py:method:: get_trigger_output_source(data_line=None) Query the control source of the trigger output of the specified data line. .. py:method:: set_trigger_output_source(channel=1, data_line=None) Set the control source of the trigger output of the specified data line. .. py:method:: get_trigger_delay() Query the current trigger delay. .. py:method:: set_trigger_delay(delay=0) Set the trigger delay. .. py:method:: get_trigger_source() Query the trigger source currently selected. .. py:method:: set_trigger_source(source='BUS') Select the trigger source. .. py:method:: get_state() .. py:data:: IP_ADDR :annotation: = 192.168.8.136