Name | Description |
---|---|
![]() | Configuration for the linux control and measurement library 'Comedi' |
![]() | Write raw Integer value to Comedi DAC channel |
![]() | Read raw Integer value from Comedi ADC channel |
![]() | Write physical value (volts or milliamps) to Comedi DAC channel |
![]() | Read physical value (in volts or milliamps) from Comedi ADC channel |
![]() | Write value to Comedi DIO channel |
![]() | Read value from Comedi DIO channel |
![]() | Types used within the HardwareIO package |
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.
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).).
Name | Description |
---|---|
deviceName | Name of Comedi device |
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
.
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.ComediBlockIcon (Icon for (Linux) Comedi blocks).
Name | Description |
---|---|
sampleTime | Sample time of block |
comedi | Handle to comedi device |
subDevice | Subdevice |
channel | Channel |
range | Range |
aref | (ground) Reference to use |
Name | Description |
---|---|
u |
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
.
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.ComediBlockIcon (Icon for (Linux) Comedi blocks).
Name | Description |
---|---|
sampleTime | Sample time of block |
comedi | Handle to comedi device |
subDevice | Subdevice |
channel | Channel |
range | Range |
aref | (ground) Reference to use |
Name | Description |
---|---|
y |
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.
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.ComediBlockIcon (Icon for (Linux) Comedi blocks).
Name | Description |
---|---|
sampleTime | Sample time of block |
comedi | Handle to comedi device |
subDevice | Subdevice |
channel | Channel |
range | Range |
aref | (ground) Reference to use |
Name | Description |
---|---|
u |
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.
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.ComediBlockIcon (Icon for (Linux) Comedi blocks).
Name | Description |
---|---|
sampleTime | Sample time of block |
comedi | Handle to comedi device |
subDevice | Subdevice |
channel | Channel |
range | Range |
aref | (ground) Reference to use |
Name | Description |
---|---|
y |
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
.
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.ComediBlockIcon (Icon for (Linux) Comedi blocks).
Name | Description |
---|---|
sampleTime | Sample time of block |
comedi | Handle to comedi device |
subDevice | Subdevice |
channel | Channel |
Name | Description |
---|---|
u |
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
.
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.ComediBlockIcon (Icon for (Linux) Comedi blocks).
Name | Description |
---|---|
sampleTime | Sample time of block |
comedi | Handle to comedi device |
subDevice | Subdevice |
channel | Channel |
Name | Description |
---|---|
y |