Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mos:writevalue [2024/09/18 01:21]
optrix created
mos:writevalue [2024/09/18 01:24] (current)
optrix
Line 1: Line 1:
 ====WriteValue Function==== ====WriteValue Function====
  
-The //WriteValue// function writes a single key/value pair (a value and a unique name for that value) to your outputs.+The //WriteValue// function writes a single key/value pair (a value and a unique name for that value) to your [[mos:using_the_modular_output_system|modular output system]] outputs.
  
 The following parameters are supported... The following parameters are supported...
Line 17: Line 17:
  
 The name and value are simple - it's the value you want to write, and a unique identifying name for that value. The name and value are simple - it's the value you want to write, and a unique identifying name for that value.
 +
 +<code python>
 +oe.WriteValue("Temperature5",25.2)
 +</code>
  
 ==Options== ==Options==
Line 28: Line 32:
  
 <code javascript> <code javascript>
-{"group": "low_priority"}+oe.WriteValue("Temperature1",22.1,options={"group": "low_priority"})
 </code> </code>
  
Line 42: Line 46:
  
 This lets you provide a UI to the user setting up specific, per-point delivery rules. This lets you provide a UI to the user setting up specific, per-point delivery rules.
 +
 +<code javascript>
 +oe.WriteValue("Pressure5",1126,config=[{"method": "text", "path": "c:\testing\sample.txt"}])
 +</code>