Device Simulator class for the Standard Lamp Device.
More...
|
| def | __init__ (self) |
| | Initialise the Lamp Device simulator class; set the members. More...
|
| |
| def | initialise (self) |
| | Initialise various parameters of the simulated device. More...
|
| |
| def | set_error_attribs (self, error_code) |
| | Set the "stat.nErrorCode"/"stat.sErrorText" node values. More...
|
| |
| def | set_rpc_error_attribs (self, rpc_error_code) |
| | Set the "stat.nRpcErrorCode"/"stat.sRpcErrorText" node values. More...
|
| |
| def | sim_thr_user (self) |
| | Simulation Thread managing the lamp status. More...
|
| |
| def | data_change_handler (self, node, value, data) |
| | Invoked when subscribed "ctrl." and "stat." nodes change value. More...
|
| |
| def | RPC_Init (self, parent) |
| | Initiate the initialisation procedure. More...
|
| |
| def | RPC_Reset (self, parent) |
| | Reset the Lamp Device (bring it to NotOp/NotReady). More...
|
| |
| def | RPC_On (self, parent, intensity, time_on_limit) |
| | Switch on lamp. More...
|
| |
| def | RPC_Off (self, parent) |
| | Switch off lamp. More...
|
| |
| def | RPC_Enable (self, parent) |
| | Execute SM Enable operation. More...
|
| |
| def | RPC_Disable (self, parent) |
| | Execute SM Disable operation. More...
|
| |
Device Simulator class for the Standard Lamp Device.
◆ __init__()
| def lamp.lamp.DevsimLamp.__init__ |
( |
|
self | ) |
|
Initialise the Lamp Device simulator class; set the members.
◆ data_change_handler()
| def lamp.lamp.DevsimLamp.data_change_handler |
( |
|
self, |
|
|
|
node, |
|
|
|
value, |
|
|
|
data |
|
) |
| |
Invoked when subscribed "ctrl." and "stat." nodes change value.
◆ initialise()
| def lamp.lamp.DevsimLamp.initialise |
( |
|
self | ) |
|
Initialise various parameters of the simulated device.
◆ RPC_Disable()
| def lamp.lamp.DevsimLamp.RPC_Disable |
( |
|
self, |
|
|
|
parent |
|
) |
| |
Execute SM Disable operation.
◆ RPC_Enable()
| def lamp.lamp.DevsimLamp.RPC_Enable |
( |
|
self, |
|
|
|
parent |
|
) |
| |
Execute SM Enable operation.
◆ RPC_Init()
| def lamp.lamp.DevsimLamp.RPC_Init |
( |
|
self, |
|
|
|
parent |
|
) |
| |
Initiate the initialisation procedure.
◆ RPC_Off()
| def lamp.lamp.DevsimLamp.RPC_Off |
( |
|
self, |
|
|
|
parent |
|
) |
| |
◆ RPC_On()
| def lamp.lamp.DevsimLamp.RPC_On |
( |
|
self, |
|
|
|
parent, |
|
|
|
intensity, |
|
|
|
time_on_limit |
|
) |
| |
◆ RPC_Reset()
| def lamp.lamp.DevsimLamp.RPC_Reset |
( |
|
self, |
|
|
|
parent |
|
) |
| |
Reset the Lamp Device (bring it to NotOp/NotReady).
◆ set_error_attribs()
| def lamp.lamp.DevsimLamp.set_error_attribs |
( |
|
self, |
|
|
|
error_code |
|
) |
| |
Set the "stat.nErrorCode"/"stat.sErrorText" node values.
◆ set_rpc_error_attribs()
| def lamp.lamp.DevsimLamp.set_rpc_error_attribs |
( |
|
self, |
|
|
|
rpc_error_code |
|
) |
| |
Set the "stat.nRpcErrorCode"/"stat.sRpcErrorText" node values.
◆ sim_thr_user()
| def lamp.lamp.DevsimLamp.sim_thr_user |
( |
|
self | ) |
|
Simulation Thread managing the lamp status.
◆ CFG_TODO
| string lamp.lamp.DevsimLamp.CFG_TODO = "TODO" |
|
static |
OPC UA Namespace Node IDs:
Configuration Node IDs:
◆ CTRL_TODO
| string lamp.lamp.DevsimLamp.CTRL_TODO = "TODO" |
|
static |
◆ initialised
| lamp.lamp.DevsimLamp.initialised |
◆ sim_init_time
| lamp.lamp.DevsimLamp.sim_init_time |
◆ STAT_COUNTER
| string lamp.lamp.DevsimLamp.STAT_COUNTER = "stat.nCycleCounter" |
|
static |
The documentation for this class was generated from the following file:
- devsim/lamp/src/ifw/fcf/devsim/lamp/lamp.py