Jump to content

Component: DAC (Internal) (Analog Output)

From Flowcode Help
Revision as of 16:14, 16 November 2021 by Wiki bot (talk | contribs)
Author Matrix TSL
Version 2.0
Category Analog Output


DAC (Internal) component

Provides access to the onboard digital to analog converter (DAC) peripheral allowing for simple analogue output. Often the DAC output will be very low current and will need amplification using external circuitry to drive anything useful.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

SetOutput
Sets the output voltage of the DAC 
- UINT DAC_Value
The value to output to the DAC 
- VOID Return


GetValue
Gets the Name property value 
- STRING Name
The name of the property 
- STRING Return


Disable
Disables the DAC output. 
- VOID Return


Enable
Enables the DAC Output. 
- VOID Return


SetValue
Sets the Value for the named property 
- STRING Name
Name of property to update 
- STRING Value
The new value for the property 
- VOID Return


GetList
 
- STRING Name
 
- STRING Return


SetPivotPos
Sets the position of the object the lever rotates around  
[[File:]] - PositionHandle
A handle to the position of the depressed location 
- VOID Return


SetAutoReset
Sets the state of the auto-reset flag If the flag is true (it is by default) then Button Helper will reset the state of each button on stop  
[[File:]] - State
Set true to reset to off on sim stop, else false to retain state 
- VOID Return


SetLatching
Sets whether the button is depressed when the mouse is released 
[[File:]] - Enabled
 
- VOID Return


Unregister
Removes the object to the list if present 
[[File:]] - Target
 
- VOID Return


SetMovementFor
Sets the movement in units or PI/16 steps for the button 
[[File:]] - Target
 
[[File:]] - Move
Movement to set to, default 4 
- VOID Return


GetList
Gets Named property List 
- STRING Name
 
- STRING Return


GetList
returns Named property list 
- STRING Name
 
- STRING Return



Property reference

Properties
Channel
DAC Channel number 
DAC Output Pin
DAC Output Pin 
Vref Option
Selects the maximum reference value for the DAC 
Vref Voltage
Reference Voltage, Used to calculate the Voltage resolution. 
Control Bits
Number of digital control bits 
Resolution
Maximum output resolution based on number of control bits. 
Voltage Resolution
Specifies the Resolution per digital bit in terms of Voltage. 
Connections
Simulations
Scope Traces
Selects if the scope traces are automatically generated or not