AnalogueReadState |
Top Previous Next |
Message
AnalogueReadState <linenumber>|<alias>
Originator
Client
Response
Info: State: <linenumber> (<alias>) <voltage> SyntaxError: invalid parameters to AnalogueReadState SyntaxError: insufficient parameters to AnalogueReadState Error: no such line or alias Warning: AnalogueReadState called with multiline alias <alias>: only one state returned! [a warning message sent on the main socket if such a command was received on the immediate socket] Error: AnalogueReadState cannot read line <linenumber>
Response (immediate socket)
<voltage> error
Details
Reads an instantaneous voltage value from an analogue input channel (analogue-to-digital converter, or ADC) or an analogue output channel (DAC) that you have previously set.
Results are given in absolute voltage units. Voltage results always have a capital V appended with no space (e.g. –0.25V). (Voltage specification is preferred to raw ADC/DAC values as there is little room for confusion.)
Examples
Info: State: 5 (ECG_Lead_I) +0.3760V Info: State: 7 (signalgenerator) –5.200V
Revision history
Implemented in WhiskerServer version 2.6.8.
|