![]() |
|
|||||||||||||
|
|
|||||||||||||
| t.mio.ain |
Read values from MultiIO
Analog-In Terminal |
||
| Input | |||
| int | SampleRate: Update interval in milliseconds. Default 100ms. Sending 0 or a bang will trigger an update and suspend the automatic updates. Minimum value 1ms and the maximum 32000ms | ||
| float | Min: Minimum value that will be output. Corresponds to 0v on the Analog In terminal. | ||
| float | Max: Maximum value that will be output. Corresponds to 5v on the Analog In terminal. | ||
| float | InRangeMin: InRange minimum value. Defines the lower limit of the range of values that trigger a true (1) output on the InRange output. | ||
| float | InRangeMax: InRange maximum value. Defines the upper limit of the range of values that trigger a true (1) output on the InRange output. | ||
| int | Resolution: Value resolution in bits. Minimum 1, Maximum 10. 1bit will result in only two levels between the specified minimum and maximum. 5bits will yield 32 levels and 10bits will yield 1024 different levels. | ||
|
All of the inputs above may be passed to the leftmost inlet as strings of the form
The attribute name is not case sensitive. |
|||
|
Arguments
|
|||
| int | Device: (optional) Specifies the Analog In device number. Default is 0 if omitted. | ||
| int | Address: (optional) Specifies the Module Address the Max object is to bind to. Format @address=x where 2 < X < 64. | ||
|
All of the inputs above may be passed to the object at create time by using the following format:
The attribute name is not case sensitive. There must be no spaces between the attribute and the equals sign (=) or between the equals sign and the value. |
|||
|
Output
|
|||
| float | Value: current ranged value | ||
| float | Delta: change rate in units per second | ||
| int | InRange: signals true (1) when the value outlet reports a value that lies between InRangeMin and InRangeMax. | ||
|
Examples
|
|||
|
A t.mio.ain object is being used to read the default MultiIO's A0 device. The output range has been set by parameter to be -20 to 20 and the sample rate is 10ms. |
|||
|
See Also
|
Analog In section of the Teleo MultiIO User Guide | ||
![]() |
|||
|
copyright © 2002-2005 MakingThings LLC |