Jump to content

API Connection.GetAn: Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetAn'''
| width="90%" class="mtx-class-macrohead" | '''GetAn'''
|-
|-
| colspan="2" | Gets an analog value from its channel index 
| colspan="2" | Gets an analog value from its channel index 

Latest revision as of 14:11, 13 July 2026

GetAn
Gets an analog value from its channel index 
- UINT ChannelIx
The zero-based index of the analog channel 
- BOOL BitMult
Set to read the analog value as a full-width reading for the selected device 
- FLOAT Return


Detailed description

Examples

Calling in a calculation

  • Declare a variable 'result' of type FLOAT
  • Add to a calculation icon:
    result = ::Connection.GetAn(channelix, true)