Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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()
Exemplo n.º 4
0
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()
Exemplo n.º 5
0
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()
Exemplo n.º 6
0
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)
Exemplo n.º 7
0
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()
Exemplo n.º 8
0
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)
Exemplo n.º 9
0
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)
Exemplo n.º 10
0
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()
Exemplo n.º 11
0
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()
Exemplo n.º 12
0
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()
Exemplo n.º 13
0
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)