hvl_ccb.dev.tiepie
Submodules
- hvl_ccb.dev.tiepie.base
TiePieDeviceConfigTiePieDeviceConfig.clean_values()TiePieDeviceConfig.force_value()TiePieDeviceConfig.is_configdataclassTiePieDeviceConfig.is_data_ready_polling_interval_secTiePieDeviceConfig.keys()TiePieDeviceConfig.n_max_try_get_deviceTiePieDeviceConfig.optional_defaults()TiePieDeviceConfig.require_block_measurement_supportTiePieDeviceConfig.required_keys()TiePieDeviceConfig.serial_numberTiePieDeviceConfig.wait_sec_retry_get_device
TiePieDeviceTypeTiePieErrorget_device_by_serial_number()wrap_libtiepie_exception()
- hvl_ccb.dev.tiepie.channel
TiePieOscilloscopeChannelConfigTiePieOscilloscopeChannelConfig.clean_coupling()TiePieOscilloscopeChannelConfig.clean_enabled()TiePieOscilloscopeChannelConfig.clean_input_range()TiePieOscilloscopeChannelConfig.clean_trigger_enabled()TiePieOscilloscopeChannelConfig.clean_trigger_hysteresis()TiePieOscilloscopeChannelConfig.clean_trigger_kind()TiePieOscilloscopeChannelConfig.clean_trigger_level()TiePieOscilloscopeChannelConfig.clean_trigger_level_mode()TiePieOscilloscopeChannelConfig.couplingTiePieOscilloscopeChannelConfig.enabledTiePieOscilloscopeChannelConfig.has_safegroundTiePieOscilloscopeChannelConfig.input_rangeTiePieOscilloscopeChannelConfig.probe_gainTiePieOscilloscopeChannelConfig.probe_offsetTiePieOscilloscopeChannelConfig.safeground_enabledTiePieOscilloscopeChannelConfig.trigger_enabledTiePieOscilloscopeChannelConfig.trigger_hysteresisTiePieOscilloscopeChannelConfig.trigger_kindTiePieOscilloscopeChannelConfig.trigger_levelTiePieOscilloscopeChannelConfig.trigger_level_mode
TiePieOscilloscopeChannelConfigLimitsTiePieOscilloscopeChannelCouplingTiePieOscilloscopeRangeTiePieOscilloscopeRange.EIGHTY_VOLTTiePieOscilloscopeRange.EIGHT_HUNDRED_MILLI_VOLTTiePieOscilloscopeRange.EIGHT_VOLTTiePieOscilloscopeRange.FORTY_VOLTTiePieOscilloscopeRange.FOUR_HUNDRED_MILLI_VOLTTiePieOscilloscopeRange.FOUR_VOLTTiePieOscilloscopeRange.TWENTY_VOLTTiePieOscilloscopeRange.TWO_HUNDRED_MILLI_VOLTTiePieOscilloscopeRange.TWO_VOLTTiePieOscilloscopeRange.unit()
TiePieOscilloscopeTriggerKindTiePieOscilloscopeTriggerLevelMode
- hvl_ccb.dev.tiepie.device
- hvl_ccb.dev.tiepie.generator
TiePieGeneratorConfigTiePieGeneratorConfig.amplitudeTiePieGeneratorConfig.clean_amplitude()TiePieGeneratorConfig.clean_enabled()TiePieGeneratorConfig.clean_frequency()TiePieGeneratorConfig.clean_offset()TiePieGeneratorConfig.clean_signal_type()TiePieGeneratorConfig.clean_waveform()TiePieGeneratorConfig.enabledTiePieGeneratorConfig.frequencyTiePieGeneratorConfig.offsetTiePieGeneratorConfig.signal_typeTiePieGeneratorConfig.waveform
TiePieGeneratorConfigLimitsTiePieGeneratorMixinTiePieGeneratorSignalType
- hvl_ccb.dev.tiepie.oscilloscope
TiePieOscilloscopeTiePieOscilloscope.channels_enabledTiePieOscilloscope.collect_measurement_data()TiePieOscilloscope.config_cls()TiePieOscilloscope.config_oscTiePieOscilloscope.config_osc_channel_dictTiePieOscilloscope.default_com_cls()TiePieOscilloscope.force_trigger()TiePieOscilloscope.is_measurement_data_ready()TiePieOscilloscope.is_measurement_running()TiePieOscilloscope.is_triggered()TiePieOscilloscope.list_devices()TiePieOscilloscope.n_channelsTiePieOscilloscope.start()TiePieOscilloscope.start_measurement()TiePieOscilloscope.stop()TiePieOscilloscope.stop_measurement()
TiePieOscilloscopeAutoResolutionModesTiePieOscilloscopeConfigTiePieOscilloscopeConfig.auto_resolution_modeTiePieOscilloscopeConfig.clean_auto_resolution_mode()TiePieOscilloscopeConfig.clean_pre_sample_ratio()TiePieOscilloscopeConfig.clean_record_length()TiePieOscilloscopeConfig.clean_resolution()TiePieOscilloscopeConfig.clean_sample_rate()TiePieOscilloscopeConfig.clean_trigger_timeout()TiePieOscilloscopeConfig.pre_sample_ratioTiePieOscilloscopeConfig.record_lengthTiePieOscilloscopeConfig.resolutionTiePieOscilloscopeConfig.sample_frequencyTiePieOscilloscopeConfig.sample_rateTiePieOscilloscopeConfig.trigger_timeout
TiePieOscilloscopeConfigLimitsTiePieOscilloscopeResolution
- hvl_ccb.dev.tiepie.utils
Module contents
This module is a wrapper around LibTiePie SDK devices; see https://www.tiepie.com/en/libtiepie-sdk .
The device classes adds simplifications for starting of the device (using serial number) and managing mutable configuration of both the device and oscilloscope’s channels. This includes extra validation and typing hints support.
Extra installation
LibTiePie SDK library is available only on Windows and on Linux.
To use this LibTiePie SDK devices wrapper:
install the
hvl_ccbpackage with atiepieextra feature:$ pip install "hvl_ccb[tiepie]"
this will install the Python bindings for the library.
install the library
on Linux: the
hvl_ccbpackage uses the forked version
python-libtiepie-biin version1.1.8which has the binaries included. No additional installation is needed anymore. * on Windows: the additional DLL is included in Python bindings package.
Troubleshooting
On a Windows system, if you encounter an OSError like this:
...
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
most likely the python-libtiepie package was installed in your
site-packages/ directory as a python-libtiepie-*.egg file via
python setup.py install or python setup.py develop command. In such
case uninstall the library and re-install it using pip:
$ pip uninstall python-libtiepie
$ pip install python-libtiepie
This should create libtiepie/ folder. Alternatively, manually move the folder
libtiepie/ from inside of the .egg archive file to the containing it
site-packages/ directory (PyCharm’s Project tool window supports reading and
extracting from .egg archives).