Jump to content

Component: Output DAC (DSP Outputs): Difference between revisions

From Flowcode Help
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.2 |- | width="20%" style="color:gray..."
 
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 17: Line 17:
==Component Source Code==
==Component Source Code==


Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_DSP_DAC.fcfx FC_Comp_Source_DSP_DAC.fcfx]
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DSP_DAC.fcfx FC_Comp_Source_DSP_DAC.fcfx]
 
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DSP_DAC.fcfx FC_Comp_Source_DSP_DAC.fcfx]


==Detailed description==
==Detailed description==




Line 36: Line 48:


==Examples==
==Examples==




Line 53: Line 75:




==Downloadable macro reference==


==Macro reference==
===ControlDAC===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputDACArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ControlDAC'''
|-
|-
| colspan="2" | Outputs an array of values from the input buffer appropriatley scaled to suit the DAC. 
| colspan="2" | Enable or disable the DAC output,  Disabled by default. 
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | Delay
| width="90%" | State
|-
|-
| colspan="2" | Delay in microseconds between outputting each sample. 
| colspan="2" |  
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 73: Line 110:




===OutputDAC===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ControlDAC'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputDAC'''
|-
|-
| colspan="2" | Enable or disable the DAC output,  Disabled by default. 
| colspan="2" | Outputs a single value from the input buffer appropriatley scaled to suit the DAC. 
|-
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | State
|-
|-
| colspan="2" |  
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 91: Line 124:




===OutputDACArray===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputDAC'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputDACArray'''
|-
| colspan="2" | Outputs an array of values from the input buffer appropriatley scaled to suit the DAC. 
|-
|-
|-
| colspan="2" | Outputs a single value from the input buffer appropriatley scaled to suit the DAC. 
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" | Delay
|-
|-
| colspan="2" | Delay in microseconds between outputting each sample. 
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}





Latest revision as of 10:26, 20 October 2023

Author Matrix Ltd
Version 1.2
Category DSP Outputs


Output DAC component

Allows the values from a buffer to be passed directly to an internal DAC output.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_DSP_DAC.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DSP_DAC.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples









Macro reference

ControlDAC

ControlDAC
Enable or disable the DAC output, Disabled by default. 
- BOOL State
 
- VOID Return


OutputDAC

OutputDAC
Outputs a single value from the input buffer appropriatley scaled to suit the DAC. 
- VOID Return


OutputDACArray

OutputDACArray
Outputs an array of values from the input buffer appropriatley scaled to suit the DAC. 
- UINT Delay
Delay in microseconds between outputting each sample. 
- VOID Return


Property reference

Properties
Connect To
DSP component with output buffer to collect our data from. 
Connections
Channel
DAC Channel number 
DAC Output Pin
DAC Output Pin 
DAC
Auto Adjust Scale
Yes: Automatically convert samples to match the full bit depth of the DAC. No: Leave the samples at the native bit depth. 
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. 
Bit Depth
Max number of bits for each DAC sample.