blockDataWrite

Write raw Integer value to Comedi DAC channel
Diagram of DataWrite

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).).

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

TypeNameDefaultDescription
ComedicomediHandle to comedi device
IntegersubDevice1Subdevice
Integerchannel0Channel
Integerrange0Range
Types.ArefarefTypes.Aref.AREF_GROUND(ground) Reference to use

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.IntegerInputu