Maestro: How do I read an analog sensor?

I’ve been able to send servo commands from Python, through my TTL serial port, however, I don’t know how to query the analog voltage in a channel. It has an infrared distance sensor.
I want to make sure I am not going to send pulses up the Vout of my sensor.

First of all, you need to set the channel to an Input using the Maestro Control Center and hit “Apply Settings”. Once you do that, the Maestro will not drive that line or send any pulses on that line, so you can safely connect your sensor to it. If you have successfully sent serial commands to the Maestro, then you should be able to use the Get Position serial command to get the analog voltage of that channel as a number from 0 to 1023. If you were writing a script on the Maestro, you could also get the voltage using the GET_POSITION script command. Both of these commands are documented in the Maestro User’s Guide.

-David

Is this Analog Input setting going to stick across powerdown/powerup?

Yes.