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.

close()[source]

Close the connection.

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)]} where bad are marked bad pixels and replacement 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.
receiveResponse()[source]

Block until a response was received and return it.

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
xchangeCommand(cmd, *args)[source]

Synchronous command exchange.

Sends command to device and waits for a response, which is returned.

Parameters:
  • cmd (str) – 3-character command mnemonic.
  • args – command arguments
class runmacs.spec.hw.cedip.CedipMetaclass[source]

Metaclass to generate nice accessor methods for CedipBoard.

class runmacs.spec.hw.cedip.CedipSimulator[source]

Simulate Cedip answers.

exception runmacs.spec.hw.cedip.CommunicationError[source]
exception runmacs.spec.hw.cedip.CommunicationIllformedResponseError[source]
exception runmacs.spec.hw.cedip.CommunicationTimeoutError[source]
exception runmacs.spec.hw.cedip.DecodingError[source]
exception runmacs.spec.hw.cedip.DeviceCommunicationError(code)[source]
exception runmacs.spec.hw.cedip.DeviceError(mnemonic)[source]
exception runmacs.spec.hw.cedip.ReceivedWrongMnemonic(mnemonic_wanted, mnemonic_got)[source]
exception runmacs.spec.hw.cedip.ReceivedWrongParameterCount(mnemonic, params_wanted, params_got)[source]