cedip¶
This modules allows communication with cedip IR-camera electronic boards..
-
class
runmacs.spec.hw.cedip.
CedipBoard
(*args, **kwargs)[source]¶ This is an interface to Cedip CIRRUS / CASSIOPEA / PEGASUS / SILVER electronic boards.
-
fps
¶ set:
Parameters: - iFrameRate (<type 'int'>) – Frame rate in Hz
- bAdaptFrameRate (<type 'bool'>) – (False) True to adapted the frame rate in case of frame rate is impossible
get:
Parameters: iFrameRate (<type 'int'>) – Frame rate in Hz
-
getBadPixelMap
(table=0)[source]¶ get bad pixel map from sensor
Parameters: table – table (on the sensor) to load the bad pixel map from Returns: {'rows': nRows, 'lines': nLines, 'bad': [(x,y)], 'replacement': [(x,y)]}
wherebad
are marked bad pixels andreplacement
the pixels from which replacement values are taken in the same order.
-
getIntegrationTime
(channel=0)[source]¶ get the integration time
Returns: (tInt, tDelay, channel)
For desctiption of the variables, see
setIntegrationTime
-
integrationMode
¶ set:
Parameters: iMode (<type 'int'>) – 0 : IWR mode. 1 : ITR mode. get:
Parameters: iMode (<type 'int'>) – 0 : IWR mode. 1 : ITR mode.
-
integrationTime
¶ integration time in us
-
open
(portname)[source]¶ Open a serial port to connect to the boards.
Parameters: portname (str) – Name of the serial port to connect.
-
sendCommand
(cmd, *args)[source]¶ Send a command to the device, checksums and framing are handled.
Parameters: - cmd (str) – 3-character command mnemonic.
- args – command arguments
-
setIntegrationTime
(tInt, tDelay=0, channel=0, adaptFrameRate=False)[source]¶ set the integration time
Parameters: - tInt (int) – Integration time in us
- tDelay (int) – delay in us between synchro frame and integration time
- channel (int) – in case of Multi IT , #channel [1 .. 3]
- adaptFrameRate – True to adapted the frame rate in case of frame rate is impossible None for PEGASUS application
-
tempCMOS
¶ set:
setting is disabled
get:
Parameters: iTempSensor (<type 'int'>) – Temperature of Sensor
-