sio_bionic module

filename:sio_bionic.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 to Advantech Bionic Interface

1.0.0.1, 23nov2015, RL: std autodoc header
1.0.0.0, 25mar2012, RL: initial
class sio_bionic.BioDAQ(name)

Bases: bionicapi.BionicAPI

Scorpion Standard IO device implementation for BioDAQ devices

createDevice(deviceid)
getCaps()

get capabilities tuple (nDI,nDO)

diReadBit(byteno, bitno)

read input bit - return (errcode,value)

doWriteBit(byteno, bitno, value)

write output bit - return errcode

doReadBit(byteno, bitno)

read output bit - return (errcode,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)

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 (bool,string) - optional

sio_bionic.CreatePlugin(hWnd, name='')

Scorpion Plugin Stub - Required