AnalogInput¶
- class pphelper.hardware.AnalogInput(ni_input_line=u'Dev1/ai0', ni_trigger_line=None, sampling_duration=3, sampling_rate=2000, ni_task_name=u'AnalogInput')¶
Analog data acquisition using a National Instruments board.
- get_data()¶
Return the acquired data.
If the acquisition is not finished by the time this method is called, it will first wait until finished (blocking other processing) and then return the data.
- samples_to_acquire¶
The number of samples to acquire in the acquisition. This is the product of the sampling rate and the sampling duration.
- sampling_duration¶
The duration (in seconds) of data acquisition.
- sampling_rate¶
The sampling rate (in Hz) of the analog data acquisition.
- trigger()¶
Return the acquired data.
If the acquisition is not finished by the time this method is called, it will first wait until finished (blocking other processing) and then return the data.