ADC¶
ADC
¶
Initialize ADC sensor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
Path to ADC data file directory. |
required |
logpath
|
Optional[str]
|
Path to log file (optional). |
None
|
gain_config
|
Optional[int]
|
ADC gain configuration (1, 2, 4, 8, or 16). If None, attempts to read from config.yml in the same folder. Defaults to 16 if not found. |
None
|
Source code in pils/sensors/adc.py
load_data
¶
Load ADC data from file (auto-detects ASCII or binary format).
plot
¶
Plot ADC amplitude vs time.
Raises:
| Type | Description |
|---|---|
ValueError
|
If no data loaded. |