Difference between revisions of "Component: ADC Template 2D (Analog Input)"
From Flowcode Help
Jump to navigationJump to searchLine 50: | Line 50: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 65: | Line 67: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===RawSampleInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 78: | Line 81: | ||
+ | ===RawAverageByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 101: | Line 105: | ||
+ | ===GetSampleBits=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 114: | Line 119: | ||
+ | ===GetString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 127: | Line 133: | ||
+ | ===GetAverageByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 150: | Line 157: | ||
+ | ===RawAverageInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 173: | Line 181: | ||
+ | ===GetSpeedFilter=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 186: | Line 195: | ||
+ | ===GetAverageInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 209: | Line 219: | ||
+ | ===SetProperties=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 242: | Line 253: | ||
+ | ===GetVoltage=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 255: | Line 267: | ||
+ | ===RawEnable=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 268: | Line 281: | ||
+ | ===SetChannel=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 286: | Line 300: | ||
+ | ===RawSampleByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 299: | Line 314: | ||
+ | ===GetInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 312: | Line 328: | ||
+ | ===RawDisable=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 325: | Line 342: | ||
+ | ===GetByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:53, 3 February 2023
Author | Matrix Ltd |
Version | 1.3 |
Category | Analog Input |
Contents
ADC Template 2D component
Base ADC component with no graphical interface. Contains all of the embedded side component calls to provide an ADC interface suitable for wrapping with a new ADC style component.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_adc_Base_2dgdi.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_adc_Base_2dgdi.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Macro reference
RawSampleInt
![]() |
RawSampleInt |
Background call to read the ADC at full bit depth Call Enable() first | |
![]() |
Return |
RawAverageByte
GetSampleBits
![]() |
GetSampleBits |
Gets the number of bits per sample | |
![]() |
Return |
GetString
![]() |
GetString |
Reads the ADC as a direct voltage and returns as a string | |
![]() |
Return |
GetAverageByte
![]() |
GetAverageByte |
Function call to read the ADC as a byte average sample over time | |
![]() |
NumSamples |
![]() |
DelayUs |
Number of micro seconds in between taking each sample | |
![]() |
Return |
RawAverageInt
![]() |
RawAverageInt |
Background call to read the ADC as a full width average sample over time Call Enable() before this | |
![]() |
NumSamples |
![]() |
DelayUs |
![]() |
Return |
GetSpeedFilter
![]() |
GetSpeedFilter |
Gets the Conversion speed filter string Use in Component.Property.SetFilter() | |
![]() |
Return |
GetAverageInt
![]() |
GetAverageInt |
Function call to read the ADC as a full width average sample over time | |
![]() |
NumSamples |
![]() |
DelayUs |
Number of micro seconds in between taking each sample | |
![]() |
Return |
SetProperties
GetVoltage
![]() |
GetVoltage |
Reads the ADC as a direct voltage | |
![]() |
Return |
RawEnable
![]() |
RawEnable |
Enables and configures the ADC channel to be an analogue input. Only one ADC channel can be enabled at a time. Any RAW functions will reference the last enabled channel only. | |
![]() |
Return |
SetChannel
![]() |
SetChannel |
Sets the channel ID for the component | |
![]() |
ChannelId |
Chaannel starting at 0, -1 is unconnected | |
![]() |
Return |
RawSampleByte
![]() |
RawSampleByte |
Background call to read the ADC as a byte Call Enable() before this | |
![]() |
Return |
GetInt
![]() |
GetInt |
Blocking call to read the ADC at full bit depth | |
![]() |
Return |
RawDisable
![]() |
RawDisable |
Disables the previously enabled ADC channel and converts back to digital mode. | |
![]() |
Return |
GetByte
![]() |
GetByte |
Blocking call to read the ADC as a byte | |
![]() |
Return |