AnalogueSetState

Top  Previous  Next

Message

 

AnalogueSetState <linenumber>|<alias> <voltage>

 

Originator

 

Client

 

Response

 

A successful call generates no response. Otherwise an error message will be generated:

 

Error: can't set line lineNumber

SyntaxError: insufficient parameters to AnalogueSetState

SyntaxError: invalid parameters to AnalogueSetState

SyntaxError: invalid line to AnalogueSetState

 

Response (immediate socket)

 

Success

Failure

 

Details

 

Sets the voltage on an analogue output line (DAC).

 

The voltage may have a 'V' appended (but in lower or upper case, but with no space between the number and the V).

 

If you try to set a voltage that is out of range, the server will quietly alter your voltage to the maximum or minimum permitted by the hardware configuration.

 

The AnalogueSetState command cancels any ongoing waveform playback.

 

Revision history

 

Implemented in WhiskerServer version 2.6.8.