blockDataWrite
Write raw Integer value to Comedi DAC channel
Extends from Modelica_DeviceDrivers.Utilities.Icons.ComediBlockIcon (Icon for (Linux) Comedi blocks).
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 sufficient privileges to access the intended device (usually that means "root" privileges).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Period | sampleTime | 0.01 | Sample time of block |
| Comedi | comedi | Handle to comedi device | |
| Integer | subDevice | 1 | Subdevice |
| Integer | channel | 0 | Channel |
| Integer | range | 0 | Range |
| Types.Aref | aref | Types.Aref.AREF_GROUND | (ground) Reference to use |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.IntegerInput | u |