Difference between revisions of "Component: ADC Template 2D (Analog Input)"
From Flowcode Help
Jump to navigationJump to search| Line 20: | Line 20: | ||
==Detailed description==  | ==Detailed description==  | ||
| + | |||
| + | |||
| Line 39: | Line 41: | ||
==Examples==  | ==Examples==  | ||
| − | ==  | + | |
| + | |||
| + | ==Macro reference==  | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
Revision as of 14:14, 20 January 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 for the component source code: FC_Comp_Source_adc_Base_2dgdi.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Macro reference
| RawSampleInt | |
| Background call to read the ADC at full bit depth Call Enable() first | |
| Return | |
| GetSampleBits | |
| Gets the number of bits per sample | |
| Return | |
| GetString | |
| Reads the ADC as a direct voltage and returns as a string | |
| Return | |
| 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 | |
| Background call to read the ADC as a full width average sample over time Call Enable() before this | |
| NumSamples | |
| DelayUs | |
| Return | |
| GetSpeedFilter | |
| Gets the Conversion speed filter string Use in Component.Property.SetFilter() | |
| Return | |
| 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 | |
| GetVoltage | |
| Reads the ADC as a direct voltage | |
| Return | |
| 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 | |
| Sets the channel ID for the component | |
| ChannelId | |
| Chaannel starting at 0, -1 is unconnected | |
| Return | |
| RawSampleByte | |
| Background call to read the ADC as a byte Call Enable() before this | |
| Return | |
| GetInt | |
| Blocking call to read the ADC at full bit depth | |
| Return | |
| RawDisable | |
| Disables the previously enabled ADC channel and converts back to digital mode. | |
| Return | |
| GetByte | |
| Blocking call to read the ADC as a byte | |
| Return | |