:py:mod:`lager_pcb.rigol_mso5000` ================================= .. py:module:: lager_pcb.rigol_mso5000 Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: lager_pcb.rigol_mso5000.MSO5000 Functions ~~~~~~~~~ .. autoapisummary:: lager_pcb.rigol_mso5000.validate_math_channel lager_pcb.rigol_mso5000.validate_channel Attributes ~~~~~~~~~~ .. autoapisummary:: lager_pcb.rigol_mso5000.LAGER_CURRENT_LIMIT lager_pcb.rigol_mso5000.PYVISA_TIMEOUT .. py:data:: LAGER_CURRENT_LIMIT :annotation: = 1 .. py:data:: PYVISA_TIMEOUT :annotation: = 5000 .. py:function:: validate_math_channel(f) .. py:function:: validate_channel(f) .. py:class:: MSO5000(instr) .. py:method:: check_instrument() .. py:method:: get_identification() Query the ID string of the instrument. .. py:method:: autoscale() .. py:method:: clear_screen() .. py:method:: run() .. py:method:: stop() .. py:method:: single() .. py:method:: trigger_force() .. py:method:: enable_cursor_measure_mode() .. py:method:: disable_cursor_measure_mode() .. py:method:: get_cursor_measure_mode_status() .. py:method:: set_cursor_mode(mode) .. py:method:: get_cursor_mode() .. py:method:: set_cursor_manual_type(cursor_type) .. py:method:: get_cursor_manual_type() .. py:method:: set_cursor_manual_source(source) .. py:method:: get_cursor_manual_source() .. py:method:: set_cursor_manual_unit(unit) .. py:method:: get_cursor_manual_unit() .. py:method:: set_cursor_manual_x_a(pos) .. py:method:: get_cursor_manual_x_a() .. py:method:: set_cursor_manual_x_b(pos) .. py:method:: get_cursor_manual_x_b() .. py:method:: set_cursor_manual_y_a(pos) .. py:method:: get_cursor_manual_y_a() .. py:method:: set_cursor_manual_y_b(pos) .. py:method:: get_cursor_manual_y_b() .. py:method:: get_cursor_manual_x_value_a() .. py:method:: get_cursor_manual_x_value_b() .. py:method:: get_cursor_manual_y_value_a() .. py:method:: get_cursor_manual_y_value_b() .. py:method:: get_cursor_manual_x_delta() .. py:method:: get_cursor_manual_y_delta() .. py:method:: get_cursor_manual_x_inverse_delta() .. py:method:: set_cursor_track_source_1(source) .. py:method:: get_cursor_track_source_1() .. py:method:: set_cursor_track_source_2(source) .. py:method:: get_cursor_track_source_2() .. py:method:: set_cursor_track_x_a(pos) .. py:method:: get_cursor_track_x_a() .. py:method:: set_cursor_track_x_b(pos) .. py:method:: get_cursor_track_x_b() .. py:method:: get_cursor_track_y_a() .. py:method:: get_cursor_track_y_b() .. py:method:: get_cursor_track_x_value_a() .. py:method:: get_cursor_track_y_value_a() .. py:method:: get_cursor_track_x_value_b() .. py:method:: get_cursor_track_y_value_b() .. py:method:: get_cursor_track_x_delta() .. py:method:: get_cursor_track_y_delta() .. py:method:: get_cursor_track_x_inverse_delta() .. py:method:: set_cursor_xy_x_a(pos) .. py:method:: get_cursor_xy_x_a() .. py:method:: set_cursor_xy_x_b(pos) .. py:method:: get_cursor_xy_x_b() .. py:method:: set_cursor_xy_y_a(pos) .. py:method:: get_cursor_xy_y_a() .. py:method:: set_cursor_xy_y_b(pos) .. py:method:: get_cursor_xy_y_b() .. py:method:: get_cursor_xy_x_value_a() .. py:method:: get_cursor_xy_y_value_a() .. py:method:: get_cursor_xy_x_value_b() .. py:method:: get_cursor_xy_y_value_b() .. py:method:: enable_channel(channel) .. py:method:: disable_channel(channel) .. py:method:: is_channel_enabled(channel) .. py:method:: set_channel_scale(channel, scale) .. py:method:: get_channel_scale(channel) .. py:method:: set_channel_probe_ratio(channel, atten) .. py:method:: get_channel_probe_ratio(channel) .. py:method:: set_channel_position(channel, offset) .. py:method:: get_channel_position(channel) .. py:method:: set_channel_offset(channel, offset) .. py:method:: get_channel_offset(channel) .. py:method:: set_trigger_type(trig) .. py:method:: get_trigger_type() .. py:method:: set_trigger_coupling(coupling) .. py:method:: get_trigger_coupling() .. py:method:: get_trigger_status() .. py:method:: set_trigger_mode(mode) .. py:method:: get_trigger_mode() .. py:method:: set_trigger_edge_source(source) .. py:method:: get_trigger_edge_source() .. py:method:: set_trigger_edge_slope(slope) .. py:method:: get_trigger_edge_slope() .. py:method:: set_trigger_edge_level(level) .. py:method:: get_trigger_edge_level() .. py:method:: set_trigger_slope_source(source) Set the channel source for the slope trigger .. py:method:: get_trigger_slope_source() Get the channel source for the slope trigger .. py:method:: set_trigger_slope_when(when) Set the trigger condition for the slope trigger .. py:method:: get_trigger_slope_when() Get the trigger condition for the slope trigger .. py:method:: set_trigger_slope_upper(value) Set the upper time limit value of the slope trigger .. py:method:: get_trigger_slope_upper() Get the upper time limit value of the slope trigger .. py:method:: set_trigger_slope_lower(value) Set the lower time limit value of the slope trigger .. py:method:: get_trigger_slope_lower() Get the lower time limit value of the slope trigger .. py:method:: set_trigger_slope_window(window) Set the vertical window type of the slope trigger .. py:method:: get_trigger_slope_window() Get the vertical window type of the slope trigger .. py:method:: set_trigger_slope_alevel(value) Set the upper voltage level of the slope trigger .. py:method:: get_trigger_slope_alevel() Get the upper voltage level of the slope trigger .. py:method:: set_trigger_slope_blevel(value) Set the lower voltage level of the slope trigger .. py:method:: get_trigger_slope_blevel() Get the lower voltage level of the slope trigger .. py:method:: set_trigger_pulse_source(source) Set the source for the pulse trigger .. py:method:: get_trigger_pulse_source() Get the source for the pulse trigger .. py:method:: set_trigger_pulse_when(when) Set the trigger condition for the pulse trigger .. py:method:: get_trigger_pulse_when() Get the trigger condition for the pulse trigger .. py:method:: set_trigger_pulse_upper(value) Set the upper limit of the pulse trigger .. py:method:: get_trigger_pulse_upper() Get the upper limit of the pulse trigge .. py:method:: set_trigger_pulse_lower(value) Set the lower limit of the pulse trigger .. py:method:: get_trigger_pulse_lower() Get the lower limit of the pulse trigger .. py:method:: set_trigger_pulse_level(value) Set the voltage level of the pulse trigger .. py:method:: get_trigger_pulse_level() Get the voltage level of the pulse trigger .. py:method:: set_timebase_scale(scale) .. py:method:: get_timebase_scale() .. py:method:: clear_measurement(measurement) .. py:method:: set_measurement_source(source) .. py:method:: get_measurement_source() .. py:method:: get_measure_item(item, channel=None) .. py:method:: save_image(filename=None) .. py:method:: get_image(filename=None) .. py:method:: save_waveform(filename=None, timeout_ms=5000) .. py:method:: enable_math_channel(math_chan) .. py:method:: disable_math_channel(math_chan) .. py:method:: set_math_operator(math_chan, operator) .. py:method:: get_math_operator(math_chan) .. py:method:: set_math_source_one(math_chan, source) .. py:method:: set_math_source_two(math_chan, source) .. py:method:: set_math_logic_source_one(math_chan, source) .. py:method:: set_math_logic_source_two(math_chan, source) .. py:method:: get_math_sources(math_chan) .. py:method:: get_math_logic_sources(math_chan) .. py:method:: set_math_scale(math_chan, scale) .. py:method:: get_math_scale(math_chan) .. py:method:: set_math_offset(math_chan, offset) .. py:method:: get_math_offset(math_chan) .. py:method:: invert_math_channel(math_chan, state=True) .. py:method:: reset_math_channel(math_chan) .. py:method:: enable_la() Enable the logic analyzer .. py:method:: disable_la() Disable the logic analyzer .. py:method:: is_la_enabled() Check if the logic analyzer is enabled .. py:method:: get_la_active_channel() Queries the active logic analyzer channel .. py:method:: set_la_active_channel(logic_chan) Sets the active logic analyzer channel .. py:method:: disable_la_active_channels() .. py:method:: la_sort(direction) Sort the channels top to bottom from D0-D15 (False) or D15-D0 (True) .. py:method:: la_delete_group(group) Delete channel group .. py:method:: enable_la_channel(logic_chan) Enable logic analyzer channel .. py:method:: disable_la_channel(logic_chan) Disable logic analyzer channel .. py:method:: is_la_channel_enabled(logic_chan) Check if logic analzyer channel is enabled .. py:method:: set_la_display_size(size) Set logic analzyer display size .. py:method:: get_la_display_size() Get logic analyzer display size .. py:method:: set_la_display_position(logic_chan, pos) Set the posision of the specified channel on screen .. py:method:: get_la_display_position(logic_chan) Query the position of the specified channel on screen .. py:method:: set_la_label(logic_chan, label) Set a text label for the specified channel .. py:method:: get_la_label(logic_chan) Get the text label for the specified channel .. py:method:: enable_la_pod_display(pod) Enable a logic analyzer pod (D0-D7 or D8-15) .. py:method:: disable_la_pod_display(pod) Disable a logic analyzer pod (D0-D7 or D8-15) .. py:method:: is_la_pod_displayed(pod) Query if a logic analyzer pod is displayed .. py:method:: enable_la_display(logic_group) Turn on a specific LA channel, group, or pod .. py:method:: disable_la_display(logic_group) Turn off a specific LA channel, group, or pod .. py:method:: set_la_threshold(pod, threshold) Set threshold voltage for a logic analyzer pod .. py:method:: get_la_threshold(pod) Get threshold voltage for a logic analyzer pod .. py:method:: set_enabled_channel_size(size) Set the screen size of the currently-enabled channel .. py:method:: get_enabled_channel_size() Get the screen size of the currently-enabled channel .. py:method:: add_channels_to_group(group, channels) Adds one or more channels to a logic analyzer group .. py:method:: set_bus_type(channel, bus) .. py:method:: get_bus_type(channel) .. py:method:: enable_bus_display(channel) .. py:method:: disable_bus_display(channel) .. py:method:: get_bus_display_status(channel) .. py:method:: set_bus_format(channel, data_format) .. py:method:: get_bus_format(channel) .. py:method:: enable_bus_event_table(channel) .. py:method:: disable_bus_event_table(channel) .. py:method:: get_bus_event_table_status(channel) .. py:method:: set_bus_table_format(channel, data_format) .. py:method:: get_bus_table_format(channel) .. py:method:: set_bus_table_view(channel, view_type) .. py:method:: get_bus_table_view(channel) .. py:method:: enable_bus_label(channel) .. py:method:: disable_bus_label(channel) .. py:method:: get_bus_label_status(channel) .. py:method:: get_bus_table_data(channel) .. py:method:: save_bus_data(channel, filename) .. py:method:: set_bus_position(channel, position) .. py:method:: get_bus_position(channel) .. py:method:: set_bus_threshold(channel, bus_type, threshold) .. py:method:: set_bus_uart_tx_source(channel, source) .. py:method:: get_bus_uart_tx_source(channel) .. py:method:: set_bus_uart_rx_source(channel, source) .. py:method:: get_bus_uart_rx_source(channel) .. py:method:: set_bus_uart_polarity(channel, polarity) .. py:method:: get_bus_uart_polarity(channel) .. py:method:: set_bus_uart_endianness(channel, endianness) .. py:method:: get_bus_uart_endianness(channel) .. py:method:: set_bus_uart_baud(channel, baud) .. py:method:: get_bus_uart_baud(channel) .. py:method:: set_bus_uart_data_bits(channel, data_bits) .. py:method:: get_bus_uart_data_bits(channel) .. py:method:: set_bus_uart_stop_bits(channel, stop_bits) .. py:method:: get_bus_uart_stop_bits(channel) .. py:method:: set_bus_uart_parity(channel, parity) .. py:method:: get_bus_uart_parity(channel) .. py:method:: enable_bus_uart_packet_end(channel) .. py:method:: disable_bus_uart_packet_end(channel) .. py:method:: get_bus_uart_packet_end_status(channel) .. py:method:: set_bus_uart_packet_end(channel, end_type) .. py:method:: get_bus_uart_packet_end(channel) .. py:method:: set_bus_i2c_scl_source(channel, source) .. py:method:: get_bus_i2c_scl_source(channel) .. py:method:: set_bus_i2c_sda_source(channel, source) .. py:method:: get_bus_i2c_sda_source(channel) .. py:method:: set_bus_i2c_addr_mode(channel, addr_mode) .. py:method:: get_bus_i2c_addr_mode(channel) .. py:method:: set_bus_spi_scl_source(channel, source) .. py:method:: get_bus_spi_scl_source(channel) .. py:method:: set_bus_spi_scl_slope(channel, slope) .. py:method:: get_bus_spi_scl_slope(channel) .. py:method:: set_bus_spi_miso_source(channel, source) .. py:method:: get_bus_spi_miso_source(channel) .. py:method:: set_bus_spi_miso_polarity(channel, polarity) .. py:method:: get_bus_spi_miso_polarity(channel) .. py:method:: set_bus_spi_mosi_source(channel, source) .. py:method:: get_bus_spi_mosi_source(channel) .. py:method:: set_bus_spi_mosi_polarity(channel, polarity) .. py:method:: get_bus_spi_mosi_polarity(channel) .. py:method:: set_bus_spi_data_bits(channel, data_bits) .. py:method:: get_bus_spi_data_bits(channel) .. py:method:: set_bus_spi_data_endianness(channel, endianness) .. py:method:: get_bus_spi_data_endianness(channel) .. py:method:: set_bus_spi_mode(channel, mode) .. py:method:: get_bus_spi_mode(channel) .. py:method:: set_bus_spi_timeout(channel, timeout) .. py:method:: get_bus_spi_timeout(channel) .. py:method:: set_bus_spi_ss_source(channel, source) .. py:method:: get_bus_spi_ss_source(channel) .. py:method:: set_bus_spi_ss_polarity(channel, polarity) .. py:method:: get_bus_spi_ss_polarity(channel) .. py:method:: set_bus_can_source(channel, source) .. py:method:: get_bus_can_source(channel) .. py:method:: set_bus_can_signal_type(channel, signal_type) .. py:method:: get_bus_can_signal_type(channel) .. py:method:: set_bus_can_baud(channel, baud) .. py:method:: get_bus_can_baud(channel) .. py:method:: set_bus_can_sample_point_percentage(channel, sp_percent) .. py:method:: get_bus_can_sample_point_percentage(channel) .. py:method:: set_bus_flex_source(channel, source) .. py:method:: get_bus_flex_source(channel) .. py:method:: set_bus_flex_signal_type(channel, signal_type) .. py:method:: get_bus_flex_signal_type(channel) .. py:method:: set_bus_flex_baud(channel, baud) .. py:method:: get_bus_flex_baud(channel) .. py:method:: set_bus_flex_sample_point_percentage(channel, sp_percent) .. py:method:: get_bus_flex_sample_point_percentage(channel)