Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi

Support for the linux control and measurement library 'Comedi'

Information

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.ComediConfig ComediConfig Configuration for the linux control and measurement library 'Comedi'
Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DataWrite DataWrite Write raw Integer value to Comedi DAC channel
Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DataRead DataRead Read raw Integer value from Comedi ADC channel
Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.PhysicalDataWrite PhysicalDataWrite Write physical value (volts or milliamps) to Comedi DAC channel
Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.PhysicalDataRead PhysicalDataRead Read physical value (in volts or milliamps) from Comedi ADC channel
Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DIOWrite DIOWrite Write value to Comedi DIO channel
Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DIORead DIORead Read value from Comedi DIO channel
Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.Types Types Types used within the HardwareIO package

Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.ComediConfig Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.ComediConfig

Configuration for the linux control and measurement library 'Comedi'

Information


Record for configuring a Comedi device. At initialization time the comedi device given by the parameter deviceName will be opened and a handle to that device will be assigned to the final parameter dh.This handle needs to be passed as parameter to the remaining Comedi read and write blocks.

Note

Only supported for Linux, since Comedi is only available for linux (http://www.comedi.org/). Requires that Comedilib is installed and that the simulation process has sufficiant privileges to access the intended device (usually that requires "root" privileges).

Extends from Modelica_DeviceDrivers.Utilities.Icons.ComediRecordIcon (Icon for comedi records (Tux from JZA placed into the public domain, http://openclipart.org/detail/168653/tux-enhanced-by-jza).).

Parameters

NameDescription
deviceNameName of Comedi device

Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DataWrite Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DataWrite

Write raw Integer value to Comedi DAC channel

Information


The parameter comedi needs to be set to a valid Comedi device handle, i.e., needs to be set to the record member dh of a ComediConfig record instance.

Wraps the Comedi function comedi_data_write(..). See the Comedi documentation for the meanings of the parameters subDevice, channel, range, aref.

Note

Only supported for Linux, since Comedi is only available for linux (http://www.comedi.org/). Requires that Comedilib is installed and that the simulation process has sufficiant privileges to access the intended device (usually that means "root" privileges).

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon, Modelica_DeviceDrivers.Utilities.Icons.LinuxTuxBlockIcon (Icon for blocks that are only supported under Linux (Tux from JZA placed into the public domain, http://openclipart.org/detail/168653/tux-enhanced-by-jza).).

Parameters

NameDescription
comediHandle to comedi device
subDeviceSubdevice
channelChannel
rangeRange
aref(ground) Reference to use

Connectors

NameDescription
u 

Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DataRead Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DataRead

Read raw Integer value from Comedi ADC channel

Information


The parameter comedi needs to be set to a valid Comedi device handle, i.e., needs to be set to the record member dh of a ComediConfig record instance.

Wraps the Comedi function comedi_data_read(..). See the Comedi documentation for the meanings of the parameters subDevice, channel, range, aref.

Note

Only supported for Linux, since Comedi is only available for linux (http://www.comedi.org/). Requires that Comedilib is installed and that the simulation process has sufficiant privileges to access the intended device (usually that means "root" privileges).

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon, Modelica_DeviceDrivers.Utilities.Icons.LinuxTuxBlockIcon (Icon for blocks that are only supported under Linux (Tux from JZA placed into the public domain, http://openclipart.org/detail/168653/tux-enhanced-by-jza).).

Parameters

NameDescription
comediHandle to comedi device
subDeviceSubdevice
channelChannel
rangeRange
aref(ground) Reference to use

Connectors

NameDescription
y 

Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.PhysicalDataWrite Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.PhysicalDataWrite

Write physical value (volts or milliamps) to Comedi DAC channel

Information


The parameter comedi needs to be set to a valid Comedi device handle, i.e., needs to be set to the record member dh of a ComediConfig record instance.

Uses the Comedi function comedi_from_phys(..) to support providing a physical value (volts or milliamps) as input to the DAC. See the Comedi documentation for the meanings of the parameters subDevice, channel, range, aref.

Note

Only supported for Linux, since Comedi is only available for linux (http://www.comedi.org/). Requires that Comedilib is installed and that the simulation process has sufficiant privileges to access the intended device (usually that means "root" privileges).

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon, Modelica_DeviceDrivers.Utilities.Icons.LinuxTuxBlockIcon (Icon for blocks that are only supported under Linux (Tux from JZA placed into the public domain, http://openclipart.org/detail/168653/tux-enhanced-by-jza).).

Parameters

NameDescription
comediHandle to comedi device
subDeviceSubdevice
channelChannel
rangeRange
aref(ground) Reference to use

Connectors

NameDescription
u 

Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.PhysicalDataRead Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.PhysicalDataRead

Read physical value (in volts or milliamps) from Comedi ADC channel

Information


The parameter comedi needs to be set to a valid Comedi device handle, i.e., needs to be set to the record member dh of a ComediConfig record instance.

Uses the Comedi function comedi_to_phys(..) to convert a raw input obtained from the ADC to a physical value (volts or milliamps) . See the Comedi documentation for the meanings of the parameters subDevice, channel, range, aref.

Note

Only supported for Linux, since Comedi is only available for linux (http://www.comedi.org/). Requires that Comedilib is installed and that the simulation process has sufficiant privileges to access the intended device (usually that means "root" privileges).

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon, Modelica_DeviceDrivers.Utilities.Icons.LinuxTuxBlockIcon (Icon for blocks that are only supported under Linux (Tux from JZA placed into the public domain, http://openclipart.org/detail/168653/tux-enhanced-by-jza).).

Parameters

NameDescription
comediHandle to comedi device
subDeviceSubdevice
channelChannel
rangeRange
aref(ground) Reference to use

Connectors

NameDescription
y 

Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DIOWrite Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DIOWrite

Write value to Comedi DIO channel

Information


The parameter comedi needs to be set to a valid Comedi device handle, i.e., needs to be set to the record member dh of a ComediConfig record instance.

Wraps the Comedi function comedi_dio_write(..). See the Comedi documentation for the meanings of the parameters subDevice and channel.

Note

Only supported for Linux, since Comedi is only available for linux (http://www.comedi.org/). Requires that Comedilib is installed and that the simulation process has sufficiant privileges to access the intended device (usually that means "root" privileges).

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon, Modelica_DeviceDrivers.Utilities.Icons.LinuxTuxBlockIcon (Icon for blocks that are only supported under Linux (Tux from JZA placed into the public domain, http://openclipart.org/detail/168653/tux-enhanced-by-jza).).

Parameters

NameDescription
comediHandle to comedi device
subDeviceSubdevice
channelChannel

Connectors

NameDescription
u 

Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DIORead Modelica_DeviceDrivers.ClockedBlocks.HardwareIO.Comedi.DIORead

Read value from Comedi DIO channel

Information


The parameter comedi needs to be set to a valid Comedi device handle, i.e., needs to be set to the record member dh of a ComediConfig record instance.

Wraps the Comedi function comedi_dio_read(..). See the Comedi documentation for the meanings of the parameters subDevice and channel.

Note

Only supported for Linux, since Comedi is only available for linux (http://www.comedi.org/). Requires that Comedilib is installed and that the simulation process has sufficiant privileges to access the intended device (usually that means "root" privileges).

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon, Modelica_DeviceDrivers.Utilities.Icons.LinuxTuxBlockIcon (Icon for blocks that are only supported under Linux (Tux from JZA placed into the public domain, http://openclipart.org/detail/168653/tux-enhanced-by-jza).).

Parameters

NameDescription
comediHandle to comedi device
subDeviceSubdevice
channelChannel

Connectors

NameDescription
y 

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