Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
quot:incomingvalue_quot:and_server_values [2021/10/11 12:08] wikiadmin removed |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Scripting and Server Values ==== | ||
- | |||
- | In scripts, the variable " | ||
- | |||
- | An obvious case is scaling. This single line script will result in the value of the server being one tenth the value read from the device. | ||
- | <code javascript> | ||
- | incomingValue/ | ||
- | </ | ||
- | |||
- | <note important> | ||
- | The value on the last line of the script is the " | ||
- | </ | ||
- | |||
- | You can still get the current value of the server by referencing the server by name. | ||
- | |||
- | <code javascript> | ||
- | / | ||
- | </ | ||
- | |||
- | This value (/ | ||
- | |||
- | If the last line of the script does not have a value, the " | ||
- | |||
- | <code javascript> | ||
- | print (" | ||
- | </ | ||
- | |||
- | will result in the server being set to the value of " | ||
- | |||
- | If you find you're getting results that are one reading behind what you expect, check to make sure that you're using the incomingValue, | ||