Analog In - OSC
[OSC]
Read the Application Board's Analog Inputs via OSC.
More...
Read the Application Board's Analog Inputs via OSC.
There are 8 Analog Inputs on the Make Application Board, numbered 0 - 7.
The Analog Ins have three properties:
- Value
- The value property corresponds to the incoming signal of an Analog In. The range of values you can expect to get back are from 0 - 1023. Because you can only ever read the value of an input, you'll never want to include an argument at the end of your OSC message to read the value.
To read the sixth Analog In, send the message The board will then respond by sending back an OSC message with the Analog In value.
- Autosend
- The autosend property corresponds to whether an analogin will automatically send a message when its incoming value changes. To tell the Controller to automatically send messages from analogin 4, send the message To have the Controller stop sending messages from analogin 4, send the message All autosend messages send at the same interval. You can set this interval, in milliseconds, by sending the message
/system/autosend-interval 10
so that messages will be sent every 10 milliseconds. This can be anywhere from 1 to 5000 milliseconds.
- You also need to select whether the board should send to you over USB or Ethernet. Send to send via USB, and to send via Ethernet. Via Ethernet, the board will send messages to the last address it received a message from.
- Active
- The active property corresponds to the active state of an Analog In. If an Analog In is set to be active, no other tasks will be able to read from it as an Analog In. If you're not seeing appropriate responses to your messages to the Analog In, check the whether it's locked by sending a message like
- You can set the active flag by sending