![]() |
|
|||||||||||||
|
|
|||||||||||||
| t.ain |
Read values from
Analog-In Terminal |
||
| Input | |||
| int | SamplePeriod: 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. | ||
| int | Resolution: Value resolution in bits. Minimum 1, Maximum 10. 1bit will result in only two levels between the specified minimum and maximum. 5 bits will yield 32 levels and 10 bits 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 | ||
|
Examples
|
|||
|
A t.ain object is being used to read the default Analog In's A0 device. The output range has been set by parameter to be -20 to 20 and the sample perood is 10ms. |
|||
|
See Also
|
Analog In section of the Teleo Analog In User Guide | ||
![]() |
|||
|
copyright © 2002-2005 MakingThings LLC |