Modelica_DeviceDrivers.HardwareIO.Comedi_

Accompanying functions for the Comedi object

Information

Extends from Modelica_DeviceDrivers.Utilities.Icons.DriverIcon (An icon for a package with device driver functions.).

Package Content

NameDescription
Modelica_DeviceDrivers.HardwareIO.Comedi_.data_write data_write Synchronous write to analog channel
Modelica_DeviceDrivers.HardwareIO.Comedi_.data_read data_read Synchronous read from analog channel
Modelica_DeviceDrivers.HardwareIO.Comedi_.dio_config dio_config Input/Output configuration of digital channel
Modelica_DeviceDrivers.HardwareIO.Comedi_.dio_write dio_write Synchronous write to digital channel
Modelica_DeviceDrivers.HardwareIO.Comedi_.dio_read dio_read Synchronous read from digital channel
Modelica_DeviceDrivers.HardwareIO.Comedi_.set_global_oor_behavior set_global_oor_behavior Set global out-of-range behavior of comedi_to_phys(..) function (i.e. behavior for sample values equal 0 or maxdata)
Modelica_DeviceDrivers.HardwareIO.Comedi_.get_range get_range Get range information of channel
Modelica_DeviceDrivers.HardwareIO.Comedi_.get_maxdata get_maxdata Get maximal possible raw value of channel
Modelica_DeviceDrivers.HardwareIO.Comedi_.to_phys to_phys Convert raw value of channel to physical value
Modelica_DeviceDrivers.HardwareIO.Comedi_.from_phys from_phys Convert physical value of channel to corresponding raw value

Modelica_DeviceDrivers.HardwareIO.Comedi_.data_write

Synchronous write to analog channel

Inputs

NameDescription
comediDevice handle
subDeviceSubdevice number
channelChannel number
rangeRange specification
arefAnalog reference type
dataValue that is written to channel

Modelica_DeviceDrivers.HardwareIO.Comedi_.data_read

Synchronous read from analog channel

Inputs

NameDescription
comediDevice handle
subDeviceSubdevice number
channelChannel number
rangeRange specification
arefAnalog reference type

Outputs

NameDescription
dataValue that is read from channel

Modelica_DeviceDrivers.HardwareIO.Comedi_.dio_config

Input/Output configuration of digital channel

Inputs

NameDescription
comediDevice handle
subDeviceSubdevice number
channelChannel number
directionSignal direction (input=0, output=1)

Modelica_DeviceDrivers.HardwareIO.Comedi_.dio_write

Synchronous write to digital channel

Inputs

NameDescription
comediDevice handle
subDeviceSubdevice number
channelChannel number
dataValue that is written to channel

Modelica_DeviceDrivers.HardwareIO.Comedi_.dio_read

Synchronous read from digital channel

Inputs

NameDescription
comediDevice handle
subDeviceSubdevice number
channelChannel number

Outputs

NameDescription
dataValue that is read from channel

Modelica_DeviceDrivers.HardwareIO.Comedi_.set_global_oor_behavior

Set global out-of-range behavior of comedi_to_phys(..) function (i.e. behavior for sample values equal 0 or maxdata)

Inputs

NameDescription
behavior0: COMEDI_OOR_NUMBER, 1: COMEDDI_OOR_NAN

Outputs

NameDescription
old_behaviorPrevious behavior setting

Modelica_DeviceDrivers.HardwareIO.Comedi_.get_range

Get range information of channel

Inputs

NameDescription
comediDevice handle
subDeviceSubdevice number
channelChannel number
rangeRange specification

Outputs

NameDescription
min(Physical) min value
max(Physical) max value
unitphysical unit type (for endpoints). UNIT_volt=0 for volts, UNIT_mA=1 for milliamps, or UNIT_none=2 for unitless

Modelica_DeviceDrivers.HardwareIO.Comedi_.get_maxdata

Get maximal possible raw value of channel

Inputs

NameDescription
comediDevice handle
subDeviceSubdevice number
channelChannel number

Outputs

NameDescription
maxDataMaximum raw value of ADC or DAC

Modelica_DeviceDrivers.HardwareIO.Comedi_.to_phys

Convert raw value of channel to physical value

Inputs

NameDescription
rawDataRaw value from channel
minPhysical min value of channel
maxPhysical max value of channel
unitPhysical unit type of channel
maxdataMaximal raw value of channel

Outputs

NameDescription
physDataPhysical value of channel

Modelica_DeviceDrivers.HardwareIO.Comedi_.from_phys

Convert physical value of channel to corresponding raw value

Inputs

NameDescription
physDataPhysical value of channel
minPhysical min value of channel
maxPhysical max value of channel
unitPhysical unit type of channel
maxdataMaximal raw value of channel

Outputs

NameDescription
rawValueRaw value of channel

Automatically generated Tue Oct 1 14:26:58 2013.