quot:incomingvalue_quot:and_server_values
Differences
This shows you the differences between two versions of the page.
| quot:incomingvalue_quot:and_server_values [2020/10/02 16:51] – created wikiadmin | quot:incomingvalue_quot:and_server_values [2021/10/11 13:08] (current) – removed wikiadmin | ||
|---|---|---|---|
| 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, | ||
quot/incomingvalue_quot/and_server_values.1601671899.txt.gz · Last modified: by wikiadmin
