Implemented connection with InfluxDB

This commit is contained in:
l_samenv
2024-07-22 15:51:51 +02:00
parent 0c0662b0b1
commit aa29d89a18
10 changed files with 1017 additions and 5 deletions

View File

@ -0,0 +1,133 @@
(
'nicos.devices.secop.devices.SecopMoveable',
{
'secnode': 'se_main',
'description': 'magnetic field, x-axis',
'secop_module': 'mfx',
'params_cfg': {
'pollinterval_': {
'datainfo': {'unit': 's', 'min': 0.1, 'max': 120.0, 'type': 'double'},
'description': 'default poll interval',
'settable': True,
'unit': 's'
},
'target': {
'datainfo': None,
'description': 'target value of the module',
'unit': 'T'
},
'target_min': {
'datainfo': {'unit': 'T', 'min': -0.6, 'max': 0.6, 'type': 'double'},
'description': 'limit for target',
'settable': True,
'unit': 'T'
},
'target_max': {
'datainfo': {'unit': 'T', 'min': -0.6, 'max': 0.6, 'type': 'double'},
'description': 'limit for target',
'settable': True,
'unit': 'T'
},
'ramp': {
'datainfo': {'unit': 'T/min', 'type': 'double'},
'description': 'wanted ramp rate for field',
'settable': True,
'unit': 'T/min'
},
'tolerance': {
'datainfo': {'unit': 'T', 'min': 0.0, 'type': 'double'},
'description': 'tolerance',
'settable': True,
'unit': 'T'
},
'trained': {
'datainfo': {
'type': 'tuple',
'members': [
{'unit': 'T', 'min': -99.0, 'max': 0.0, 'type': 'double'},
{'unit': 'T', 'min': 0.0, 'type': 'double'}
]
},
'description': 'trained field (positive)',
'settable': True
},
'wait_stable_field': {
'datainfo': {'unit': 's', 'min': 0.0, 'type': 'double'},
'description': 'wait time to ensure field is stable',
'settable': True,
'unit': 's'
},
'ramp_tmo': {
'datainfo': {'unit': 's', 'min': 0.0, 'type': 'double'},
'description': 'timeout for field ramp progress',
'settable': True,
'unit': 's'
},
'action': {
'datainfo': {
'type': 'enum',
'members': {'hold': 0, 'run_to_set': 1, 'run_to_zero': 2, 'clamped': 3, 'not_found': 4}
},
'description': 'action',
'settable': True
},
'setpoint': {
'datainfo': {'unit': 'T', 'type': 'double'},
'description': 'field setpoint',
'unit': 'T'
},
'voltage': {
'datainfo': {'unit': 'V', 'type': 'double'},
'description': 'leads voltage',
'unit': 'V'
},
'atob': {
'datainfo': {'unit': 'A/T', 'min': 0.0, 'type': 'double'},
'description': 'field to amp',
'unit': 'A/T'
},
'working_ramp': {
'datainfo': {'unit': 'T/min', 'min': 0.0, 'type': 'double'},
'description': 'effective ramp',
'unit': 'T/min'
},
'i1': {
'datainfo': {'unit': 'A', 'type': 'double'},
'description': 'slave 1 current',
'unit': 'A'
},
'v1': {
'datainfo': {'unit': 'V', 'type': 'double'}
'description': 'slave 1 voltage',
'unit': 'V'
},
'i2': {
'datainfo': {'unit': 'A', 'type': 'double'},
'description': 'slave 2 current', 'unit': 'A'
},
'v2': {
'datainfo': {'unit': 'V', 'type': 'double'},
'description': 'slave 2 voltage',
'unit': 'V'
}
},
'commands_cfg': {
'stop': {
'description': 'keep field at current value',
'datainfo': {'type': 'command'}
}
},
'mixins': [],
'secop_properties': {
'description': 'magnetic field, x-axis',
'implementation':
'frappy_psi.ips_mercury.SimpleField2',
'interface_classes': ['Drivable'],
'features': []
},
'unit': 'T',
'fmtstr': '%g',
'value_datainfo': {'unit': 'T', 'type': 'double'},
'target_datainfo': {'unit': 'T', 'min': -0.6, 'max': 0.6, 'type': 'double'}
}
)

View File

@ -0,0 +1,170 @@
(
'nicos.devices.secop.devices.SecopMoveable',
{
'secnode': 'se_main',
'description': 'channel 1',
'secop_module': 'T_chip',
'params_cfg': {
'pollinterval_': {
'datainfo': {
'unit': 's',
'min': 0.1,
'max': 120.0,
'type':
'double'
},
'description': 'default poll interval',
'settable': True,
'unit': 's'
},
'target': {
'datainfo': None,
'description': 'setpoint',
'unit': 'K'
},
'enabled': {
'datainfo': {
'type': 'bool'
},
'description': 'is this channel enabled?',
'settable': True
},
'range': {
'datainfo': {
'type': 'enum',
'members': {
'2mOhm': 1,
'6.32mOhm': 2,
'20mOhm': 3,
'63.2mOhm': 4,
'200mOhm': 5,
'632mOhm': 6,
'2Ohm': 7,
'6.32Ohm': 8,
'20Ohm': 9,
'63.2Ohm': 10,
'200Ohm': 11,
'632Ohm': 12,
'2kOhm': 13,
'6.32kOhm': 14,
'20kOhm': 15,
'63.2kOhm': 16,
'200kOhm': 17,
'632kOhm': 18,
'2MOhm': 19,
'6.32MOhm': 20,
'20MOhm': 21,
'63.2MOhm': 22
}
},
'description': 'reading range',
'settable': True
},
'minrange': {
'datainfo': {
'type': 'enum',
'members': {'2mOhm': 1, '6.32mOhm': 2, '20mOhm': 3, '63.2mOhm': 4, '200mOhm': 5, '632mOhm': 6, '2Ohm': 7, '6.32Ohm': 8, '20Ohm': 9, '63.2Ohm': 10, '200Ohm': 11, '632Ohm': 12, '2kOhm': 13, '6.32kOhm': 14, '20kOhm': 15, '63.2kOhm': 16, '200kOhm': 17, '632kOhm': 18, '2MOhm': 19, '6.32MOhm': 20, '20MOhm': 21, '63.2MOhm': 22}
},
'description': 'minimum range for software autorange',
'settable': True
},
'autorange': {
'datainfo': {'type': 'bool'},
'description': 'autorange',
'settable': True
},
'iexc': {
'datainfo': {
'type': 'enum',
'members': {'off': 0, '1pA': 1, '3.16pA': 2, '10pA': 3, '31.6pA': 4, '100pA': 5, '316pA': 6, '1nA': 7, '3.16nA': 8, '10nA': 9, '31.6nA': 10, '100nA': 11, '316nA': 12, '1uA': 13, '3.16uA': 14, '10uA': 15, '31.6uA': 16, '100uA': 17, '316uA': 18, '1mA': 19, '3.16mA': 20, '10mA': 21, '31.6mA': 22}
},
'description': 'current excitation',
'settable': True
},
'vexc': {
'datainfo': {
'type': 'enum',
'members': {'off': 0, '2uV': 1, '6.32uV': 2, '20uV': 3, '63.2uV': 4, '200uV': 5, '632uV': 6, '2mV': 7, '6.32mV': 8, '20mV': 9, '63.2mV': 10, '200mV': 11, '632mV': 12}
},
'description': 'voltage excitation',
'settable': True
},
'pause': {
'datainfo': {'unit': 's', 'min': 3.0, 'max': 60.0, 'type': 'double'},
'description': 'pause after channel change',
'settable': True, 'unit': 's'
},
'dwell': {
'datainfo': {'unit': 's', 'min': 1.0, 'max': 200.0, 'type': 'double'},
'description': 'dwell time with autoscan',
'settable': True, 'unit': 's'
},
'filter': {
'datainfo': {'unit': 's', 'min': 1.0, 'max': 200.0, 'type': 'double'},
'description': 'filter time', 'settable': True, 'unit': 's'},
'raw': {
'datainfo': {'unit': 'Ohm', 'type': 'double'},
'description': 'raw reistance value', 'unit': 'Ohm'
},
'tolerance': {
'datainfo': {'unit': 'K', 'min': 0.0, 'type': 'double'},
'description': 'absolute tolerance', 'settable': True, 'unit': 'K'
},
'settling_time':
{'datainfo': {'unit': 'sec', 'min': 0.0, 'type': 'double'},
'description': 'settling time', 'settable': True, 'unit': 'sec'
},
'timeout': {
'datainfo': {'unit': 'sec', 'min': 0.0, 'type': 'double'},
'description': 'timeout', 'settable': True, 'unit': 'sec'
},
'control_active': {
'datainfo': {'type': 'bool'},
'description': 'we are controlling'
},
'minheater': {
'datainfo': {'unit': 'A', 'min': 0.0, 'max': 0.01, 'type': 'double'},
'description': 'minimal heater current', 'settable': True, 'unit': 'A'
},
'htrrng': {
'datainfo': {
'type': 'enum',
'members': {'off': 0, '30uA': 1, '100uA': 2, '300uA': 3, '1mA': 4, '3mA': 5, '10mA': 6, '30mA': 7, '100mA': 8}
},
'description': '', 'settable': True
},
'ctrlpars': {
'datainfo': {
'type': 'struct',
'members': {
'p': {'min': -10.0, 'max': 10.0, 'type': 'double'},
'i': {'min': -10.0, 'max': 10.0, 'type': 'double'},
'd': {'min': -10.0, 'max': 10.0, 'type': 'double'}
}
},
'description': 'PID control parameters', 'settable': True
}
},
'commands_cfg': {
'stop': {
'description': 'set to idle when busy\n\ndoes not stop control!',
'datainfo': {'type': 'command'}
},
'control_off': {
'description': 'switch control off',
'datainfo': {'type': 'command'}
}
},
'mixins': [],
'secop_properties': {
'description': 'channel 1',
'implementation': 'frappy_psi.ls372.TemperatureLoop',
'interface_classes': ['Drivable'],
'features': []
},
'unit': 'K',
'fmtstr': '%g',
'value_datainfo': {'unit': 'K', 'min': 0.0, 'type': 'double'},
'target_datainfo': {'unit': 'K', 'min': 0.0, 'type': 'double'}
}
)

View File

@ -0,0 +1,50 @@
(
'nicos.devices.secop.devices.SecopReadable',
{
'secnode': 'se_main',
'description': 'mix. chamber temperature',
'secop_module': 'T_mix',
'params_cfg': {
'pollinterval_': {
'datainfo': {'unit': 's', 'min': 0.1, 'max': 120.0, 'type': 'double'},
'description': 'default poll interval',
'settable': True,
'unit': 's'
},
'raw': {
'datainfo': {'unit': 'Ohm', 'type': 'double'},
'description': 'raw value',
'unit': 'Ohm'
},
'filter_time': {
'datainfo': {'unit': 'sec', 'min': 1.0, 'max': 200.0, 'type': 'double'},
'description': 'filter time',
'settable': True,
'unit': 'sec'
},
'dwell_time': {
'datainfo': {'unit': 'sec', 'min': 1.0, 'max': 200.0, 'type': 'double'},
'description': 'dwell time',
'settable': True,
'unit': 'sec'
},
'pause_time': {
'datainfo': {'unit': 'sec', 'min': 3.0, 'max': 200.0, 'type': 'double'},
'description': 'pause time',
'settable': True,
'unit': 'sec'
}
},
'commands_cfg': {},
'mixins': [],
'secop_properties': {
'description': 'mix. chamber temperature',
'implementation': 'frappy_psi.triton.TemperatureSensor',
'interface_classes': ['Readable'],
'features': []},
'unit': 'K',
'fmtstr': '%g',
'value_datainfo': {'unit': 'K', 'type': 'double'}
}
)