... | ... | @@ -54,6 +54,13 @@ measurement_raw = rtisdev.get_raw_measurement(behaviour=true) |
|
|
measurement_processed_from_raw = rtisdev.process_measurement(measurement_raw)
|
|
|
```
|
|
|
|
|
|
If one has RTIS Dev fully installed and imported, one can also use the function `convert_to_rtis_class(rtis_dict)` to convert the dictionary objects back to the full RTIS Dev custom class objects. For example:
|
|
|
```python
|
|
|
import rtisdev as fullrtisdev
|
|
|
measurement_processed_from_raw = rtisdev.process_measurement(measurement_raw)
|
|
|
measurement_processed_from_raw_converted = rtisdev.convert_to_rtis_class(measurement_processed_from_raw)
|
|
|
```
|
|
|
|
|
|
## Example
|
|
|
A bigger example showing how to connect, record and process a measurement and plot the RTIS Energyscape.
|
|
|
```python
|
... | ... | @@ -68,8 +75,8 @@ rtisdev = rtisdevremotepy.RTISDev("192.168.1.150") |
|
|
rtisdev.open_connection()
|
|
|
|
|
|
# Configure the recording and processing settings
|
|
|
rtisdev.set_recording_settings(premade="default_25_50")
|
|
|
rtisdev.set_processing_settings(premade="2D_5m_181")
|
|
|
config_uuid = rtisdev.set_recording_settings(premade="default_25_50")
|
|
|
rtisdev.set_processing_settings(premade="2D_5m_181", configName=config_uuid)
|
|
|
settings = rtisdev.get_current_settings()
|
|
|
|
|
|
# Get an ACTIVE measurement (protect your ears!) and process it
|
... | ... | |