User Tools

Site Tools


eeros_architecture:control_system:available_blocks:peripheraloutput

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
eeros_architecture:control_system:available_blocks:peripheraloutput [2017/04/15 20:23] grafeeros_architecture:control_system:available_blocks:peripheraloutput [2021/05/28 13:37] ursgraf
Line 1: Line 1:
 ====== Peripheral Output ====== ====== Peripheral Output ======
-This block allows to write to a hardware output. This could be a simple digital output or a multidimensional vector of real values. Such a block will always write to an output defined in the [[eeros_architecture:hal:start|]].+This block allows to write to a hardware output. This could be a digital output or an analog output. Such a block will always write to an output defined in the [[eeros_architecture:hal:start|]].
 The constructor of this block looks like  The constructor of this block looks like 
 <code cpp> <code cpp>
-  PeripheralOutput(std::string id);+PeripheralOutput(std::string id, bool exclusive = true); 
 +</code> 
 +As a parameter you must indicate the designator of the corresponding output in the [[eeros_architecture:hal:start|]]. Please make sure that the name is identical to the name in the [[eeros_architecture:hal:start|]]. If not the constructor will throw a fault. A second optional parameter indicates if the output has exclusive rights on the signal defined in the HAL. 
 +Create a new output with  
 +<code cpp> 
 +PeripheralOutput<> setValue("anOut0"); // anOut0 must be defined in hardware configuration file
 </code> </code>
-As a parameter you must indicate the designator of the corresponding output in the [[eeros_architecture:hal:start|]]. Please make sure that the name is identical to the name in the [[eeros_architecture:hal:start|]]. If not the constructor will throw a fault. 
eeros_architecture/control_system/available_blocks/peripheraloutput.txt · Last modified: 2021/05/28 13:41 by ursgraf