Difference between revisions of "HANcoder/STM32/Blocks/Analog Output"
From OpenMBD
Line 9: | Line 9: | ||
|maskImage = AnalogOutputMask.png | |maskImage = AnalogOutputMask.png | ||
− | + | }} | |
− | |||
+ | == Block inputs (inports) == | ||
+ | The value that needs to be converted to an analog voltage on the pin. This is a value from 0 to 4095 representing a voltage from 0 to 3.3V or 0.806mV per bit. The data type is uint16. | ||
+ | |||
+ | == Block parameters == | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! style="width:150px" | Parameter | ||
+ | ! Description | ||
+ | |- | ||
+ | | Output pin | ||
+ | | The output pin to be used for the voltage output. Select one from the list. A warning will appear when the pin is already in use in another block. | ||
+ | |- | ||
+ | | Sample time | ||
+ | | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. | ||
+ | |} | ||
+ | |||
+ | {{HANcoder/BlockFooter| | ||
+ | |SeeAlso = [[HANcoder/Analog_Input|Analog Input]] | ||
}} | }} |
Revision as of 11:47, 5 April 2017
Supported Targets: E407
Contents
General information about Analog Output
An 'Analog Output' block sets the 12-bit digital to analog conversion on the selected pin.
Block
Mask
Block inputs (inports)
The value that needs to be converted to an analog voltage on the pin. This is a value from 0 to 4095 representing a voltage from 0 to 3.3V or 0.806mV per bit. The data type is uint16.
Block parameters
Parameter | Description |
---|---|
Output pin | The output pin to be used for the voltage output. Select one from the list. A warning will appear when the pin is already in use in another block. |
Sample time | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. |