sio_simulator module¶
filename: | sio_simulator.py |
---|---|
author: | roar@tordivel.no |
requirements: | Scorpion 10.2 |
copyright: | 2000-2015 Tordivel AS |
license: | Tordivel AS’ Scorpion Python Module License |
Standard Scorpion python IO interface simulator
1.0.0.2, 23nov2015, RL: std autodoc header
1.0.0.1, 05jun2013, RL: added errcode for testing
1.0.0.0, 25mar2012, RL: initial
-
class
sio_simulator.
IOSimulator
(hWnd, name)¶ Bases:
object
IO simulator class for testing
-
getCaps
()¶ get capabilities tuple (nDI,nDO)
-
diReadBit
(byteno, bitno)¶ read input bit - return (errocode,value)
-
doWriteBit
(byteno, bitno, value)¶ write output bit - return errcode
-
doReadBit
(byteno, bitno)¶ read output bit - return (success,value)
-
diReadByte
(byteno)¶ read input byte - return (errcode,value)
-
doWriteByte
(byteno, value)¶ write output byte - return errcode
-
doReadByte
(byteno)¶ read output byte - return (errcode,value)
-
diWriteBit
(byteno, bitno, value)¶ write input bit - return errcode - simulator method only
-
diWriteByte
(byteno, value)¶ write output byte - return errcode - simulator method only
-
getConfig
()¶ return config as string - optional
-
setConfig
(value)¶ set config from string - optional
-
configure
()¶ launch configuration dialog if any. hWnd is parent window handle - optional
-
executeCmd
(command)¶ execute command - return (,string) - optional
-
-
sio_simulator.
CreatePlugin
(hWnd, name='')¶ Scorpion Plugin Stub - Required