def session_properties(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): osc_pin1 = scope.pins_to_sessions(tsm, pins, sites) osc_pin1.ssc.get_session_properties()
def measure_results(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): osc_pin1 = scope.pins_to_sessions(tsm, pins, sites) osc_pin1.ssc.fetch_measurement( niscope.ScalarMeasurement.VOLTAGE_PEAK_TO_PEAK)
def acquisition(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): osc_pin1 = scope.pins_to_sessions(tsm, pins, sites) osc_pin1.ssc.initiate()
def control(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): osc_pin1 = scope.pins_to_sessions(tsm, pins, sites) osc_pin1.ssc.commit() osc_pin1.ssc.abort()
def fetch_waveform(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): scope_tsm = scope.pins_to_sessions(tsm, pins, sites) print(scope_tsm.ssc.fetch_waveform(1)) print(scope_tsm.ssc.fetch_multirecord_waveform(1)) scope_tsm.ssc.abort()
def initialize_sessions(tsm: SMContext): # ctypes.windll.user32.MessageBoxW(None, "Py ID:" + str(os.getpid()), "Attach debugger", 0) scope.initialize_sessions(tsm, options=OPTIONS) scope_tsm = scope.pins_to_sessions(tsm, ["OSC_xA_ANA1"], []) scope_tsm.ssc.abort() time.sleep(0.5)
def clear_stats(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): scope_tsm = scope.pins_to_sessions(tsm, pins, sites) scope_tsm.ssc.fetch_clear_stats()
def fetch_measurement_stats_per_channel(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): scope_tsm = scope.pins_to_sessions(tsm, pins, sites) scope_tsm.ssc.fetch_meas_stats_per_channel( niscope.ScalarMeasurement.NO_MEASUREMENT)
def measure_stats(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): scope_tsm = scope.pins_to_sessions(tsm, pins, sites) scope_tsm.ssc.measure_statistics(niscope.ScalarMeasurement.NO_MEASUREMENT)
def session_properties(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): scope_tsm = scope.pins_to_sessions(tsm, pins, sites) scope_tsm.ssc.get_session_properties()
def control(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): scope_tsm = scope.pins_to_sessions(tsm, pins, sites) scope_tsm.ssc.commit() scope_tsm.ssc.abort()
def acquisition(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): ctypes.windll.user32.MessageBoxW(None, "Py ID:" + str(os.getpid()), "Attach debugger", 0) scope_tsm = scope.pins_to_sessions(tsm, pins, sites) scope_tsm.ssc.initiate()
def pins_to_sessions_info(tsm: SMContext, pins: typing.List[str], sites: typing.List[int]): ctypes.windll.user32.MessageBoxW(None, "Py ID:" + str(os.getpid()), "Attach debugger", 0) return scope.pins_to_sessions(tsm, pins, sites)