pylab_ml.common.common.strcall
- strcall(self, command, value=None, typ=None, mqttcheck=False)[source]
- Make a call from the command:
result = common.strcall(tcc, ‘regs.HW_ID.read()’) result = common.strcall(self, ‘smu.voltage=5.3’ , mqttcheck=True)’ result = common.strcall(self, ‘smu.blabla()’, 4.7, mqttcheck=True)’
needs the the logger from self
- Parameters:
command (Command string to execute, e.g. 'regs.HW_ID.read()', 'smu.voltage')
value (The value to set or to use as parameter for the command, e.g. 5.3 for 'smu.voltage=5.3' or 30 for 'regs.ACL_OSC.write(30)')
typ (If the command an mqtt-command, than you have coice if it is settable or gettable)
mqttcheck (Check if the command is in the mqtt_list. If not, the command will not be executed)
- Return type:
The result of the command execution, or “ERROR” if there was an error during execution.