Pendulum CNT91 frequency counter
- class pymeasure.instruments.pendulum.cnt91.CNT91(adapter, name='Pendulum CNT-91', **kwargs)
Bases:
SCPIUnknownMixin,InstrumentRepresents a Pendulum CNT-91 frequency counter.
- property batch_size: int
Get maximum number of buffer entries that can be transmitted at once.
- buffer_frequency_time_series(channel, n_samples, sample_rate=None, gate_time=None, trigger_source=None, back_to_back=True)
Record a time series to the buffer and read it out after completion.
- Parameters:
channel (
str) – Channel that should be usedn_samples (
int) – The number of samplesgate_time (
Optional[float]) – Gate time in s (default:None)trigger_source (
Optional[str]) – Optionally specify a trigger source to start the measurement (default:None)back_to_back (
bool) – If True, the buffer measurement is performed back-to-back. (default:True)sample_rate (
Optional[float]) –Sample rate in Hz
Deprecated since version 0.14: Use parameter gate_time instead. (default:
None)
- Return type:
None
- configure_frequency_array_measurement(n_samples, channel, back_to_back=True)
Configure the counter for an array of measurements.
- Parameters:
n_samples (
int) – The number of sampleschannel (
str) – Measurement channel (A, B, C, E, INTREF)back_to_back (
bool) – If True, the buffer measurement is performed back-to-back. (default:True)
- Return type:
None
- property continuous: Any
Control whether to perform continuous measurements.
- property external_arming_start_slope: Any
Control slope for the start arming condition (str ‘POS’ or ‘NEG’).
- property external_start_arming_source: Any
Control external arming source (‘A’, ‘B’, ‘E’ (rear) or ‘IMM’ for immediately arming).
- property format: Any
Control response format (‘ASCII’ or ‘REAL’).
- property gate_time: Any
Control gate time of one measurement in s (float strictly from 2e-8 to 1000).
- property interpolator_autocalibrated: Any
Control if interpolators should be calibrated automatically (bool).
- property measurement_time
Control gate time of one measurement in s (float strictly from 2e-8 to 1000).
Deprecated since version 0.14: Use gate_time instead.
- read_buffer(n=10000)
Read out n samples from the buffer.
- Parameters:
n (
int) – Number of samples that should be read from the buffer. The maximum number of 10000 samples is read out by default. (default:10000)- Returns:
list[float] – Frequency values from the buffer.