Returns the current global default PyTango green mode.
Returns: | the current global default PyTango green mode |
---|---|
Return type: | GreenMode |
Sets the global default PyTango green mode.
Advice: Use only in your final application. Don’t use this in a python library in order not to interfere with the beavior of other libraries and/or application where your library is being.
Parameters: | green_mode (GreenMode) – the new global default PyTango green mode |
---|
DeviceProxy(self, dev_name, need_check_acc, wait=True, timeout=True) -> DeviceProxy
Creates a futures enabled DeviceProxy.
The DeviceProxy constructor internally makes some network calls which makes it slow. By using the futures green mode you are allowing other python code to be executed in a cooperative way.
Note
The timeout parameter has no relation with the tango device client side timeout (gettable by get_timeout_millis() and settable through set_timeout_millis())
Parameters: |
|
---|---|
Returns: |
|
Throws : |
|
New in PyTango 8.1.0
DeviceProxy(self, dev_name, need_check_acc, wait=True, timeout=True) -> DeviceProxy
Creates a gevent enabled DeviceProxy.
The DeviceProxy constructor internally makes some network calls which makes it slow. By using the gevent green mode you are allowing other python code to be executed in a cooperative way.
Note
The timeout parameter has no relation with the tango device client side timeout (gettable by get_timeout_millis() and settable through set_timeout_millis())
Parameters: |
|
---|---|
Returns: |
|
Throws : |
|
New in PyTango 8.1.0