The following example illustrates how you can obtain an instance of this type:
from zaber_motion.ascii import Connection
connection = Connection.open_serial_port('COM3')
device = connection.get_device(1)
oscilloscope = device.oscilloscope
oscilloscope_data = oscilloscope.read()oscilloscope_data.data_sourceOscilloscopeDataSource Indicates whether the data came from a setting or an I/O pin.oscilloscope_data.get_data(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | UnitsAndLiterals | Unit of measure to convert the data to. |
List[float] The recorded data for one oscilloscope channel, converted to the units specified.oscilloscope_data.get_delay(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | TimeUnits | Unit of measure to represent the delay in. |
float The delay setting at the time the data was recorded.oscilloscope_data.get_frequency(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | FrequencyUnits | Unit of measure to represent the frequency in. |
float The frequency (inverse of the timebase setting) at the time the data was recorded.oscilloscope_data.get_sample_time(index, unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| index | int | 0-based index of the sample to calculate the time of. |
| unit | TimeUnits | Unit of measure to represent the calculated time in. |
float The calculated time offset of the data sample at the given index.oscilloscope_data.get_sample_times(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | TimeUnits | Unit of measure to represent the calculated time in. |
List[float] The calculated time offsets of all data samples.oscilloscope_data.get_timebase(unit = Units.NATIVE)| Name | Type | Description |
|---|---|---|
| unit | TimeUnits | Unit of measure to represent the timebase in. |
float The timebase setting at the time the data was recorded.