ConditionWave#
- class waveline.conditionwave.ConditionWave(*args, **kwargs)[source]#
Interface for conditionWave device.
- Deprecated:
Please use
LinWave
class instead. TheConditionWave
class will be removed in the future.
- __init__(*args, **kwargs)[source]#
Initialize device.
- Parameters:
address – IP address of device. Use the method
discover
to get IP addresses of available linWave devices.- Returns:
Instance of
LinWave
Example
There are two ways constructing and using the
LinWave
class:Without context manager, manually calling the
connect
andclose
method:>>> async def main(): >>> lw = waveline.LinWave("192.168.0.100") >>> await lw.connect() >>> print(await lw.get_info()) >>> ... >>> await lw.close() >>> asyncio.run(main())
Using the async context manager:
>>> async def main(): >>> async with waveline.LinWave("192.168.0.100") as lw: >>> print(await lw.get_info()) >>> ... >>> asyncio.run(main())
Methods
__init__
(*args, **kwargs)Initialize device.
acquire
([raw, poll_interval_seconds])High-level method to continuously acquire data.
close
()Close connection.
connect
()Connect to device.
discover
([timeout])Discover linWave devices in network.
get_ae_data
()Get AE data records.
get_info
()Get device information.
get_setup
(channel)Get setup information.
get_status
()Get status information.
get_tr_data
([raw])Get transient data records.
get_tr_snapshot
(channel, samples[, ...])Get snapshot of transient data.
identify
([channel])Blink LEDs to identify device or single channel.
set_channel
(channel, enabled)Enable/disable channel.
set_continuous_mode
(channel, enabled)Enable/disable continuous mode.
set_ddt
(channel, microseconds)Set duration discrimination time (DDT).
set_filter
(channel[, highpass, lowpass, order])Set IIR filter frequencies and order.
set_range
(channel, range_volts)Set input range.
set_range_index
(channel, range_index)Set input range by index.
set_status_interval
(channel, seconds)Set status interval.
set_threshold
(channel, microvolts)Set threshold for hit-based acquisition.
set_tr_decimation
(channel, factor)Set decimation factor of transient data and streaming data.
set_tr_enabled
(channel, enabled)Enable/disable recording of transient data.
set_tr_postduration
(channel, samples)Set post-duration samples for transient data.
set_tr_pretrigger
(channel, samples)Set pre-trigger samples for transient data.
start_acquisition
()Start data acquisition.
start_pulsing
(channel[, interval, count, cycles])Start pulsing.
stop_acquisition
()Stop data acquisition.
stop_pulsing
()Start pulsing.
stream
(channel, blocksize, *[, raw, timeout])Async generator to stream channel data.
Attributes
CHANNELS
Available channels
MAX_SAMPLERATE
Maximum sampling rate in Hz
PORT
Control port number
RANGES
connected
Check if connected to device.