| @AN | Syntax: | @ Function | |
| Operands: | none | ||
| Burn: | not burnable | ||
| Analog Input Query | |||
Returns the value of the given analog input in volts
@AN[n] where n is the input number assigned to a particular analog input pin (1-8)
N/A
| Usage | Value |
|---|---|
| While Moving (No RIO) | Yes |
| In a Program | Yes |
| Command Line | Yes |
| Controller Usage | All |
| Default Value | N/A |
| Default Format | N/A |
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
@AN[] is an operand, not a command. It can only be used as an argument to other commands and operators
:MG @AN[1] ;'print analog input 1 1.7883 :x = @AN[1] ;'assign analog input 1 to a variable