... | ... | @@ -63,16 +63,19 @@ Some useful script in https://gitlab.psi.ch/slic/slic/-/tree/master/slic/core/s |
|
|
Notes of Linux for dummies:
|
|
|
- ```s1.get()``` or ```s1.get_current_value()``` would give you the current value
|
|
|
- You can define simple functions to tbe applied to simple sensors doing: ```s1.aggregation=np.max```
|
|
|
- To start and stop a continuous acquisition:
|
|
|
|
|
|
```from slic.core.sensor.monitor import Monitor```
|
|
|
### To start and stop a continuous acquisition
|
|
|
In ```~git/slic/slic/core/sensor``` there is:
|
|
|
|
|
|
Then:
|
|
|
```class Monitor(name, sensor, record_time, grum_client, cfg=None, silent=False)```
|
|
|
|
|
|
To run a continuous monitoring of the defined channel. To run it as example:
|
|
|
```
|
|
|
class Monitor(name, sensor, record_time, grum_client, cfg=None, silent=False)
|
|
|
m=Monitor("mon", s1, 2, scan.remote_plot, silent=True)
|
|
|
from slic.core.sensor.monitor import Monitor
|
|
|
m=Monitor("name", s1, 2, scan.remote_plot, silent=True)
|
|
|
```
|
|
|
and then you can do ```m.start()``` and ```m.stop()```
|
|
|
This will run grum.py for the sensor s1, grouping data for 2 seconds, and not printing the acquision (highly advisable)the
|
|
|
To start it and stop it: ```m.start()``` and ```m.stop()```. Right now
|
|
|
|
|
|
|
|
|
## Open and create custom screen panels
|
... | ... | |