Difference between revisions of "V2/CMS Tutorial/User Tools/Creating Content/Measurement/Computed Measurement/Script"

From Senfi Docs
Jump to: navigation, search
Line 7: Line 7:
  
 
===Add Script===
 
===Add Script===
 
+
# Select '''source measurements'''.
 +
# Fill in the '''init''' and '''compute''' functions.
 +
#* Programming Language Used: Javascript
 +
# [[#Test Script|Test Script]].
 +
# Revise code as necessary.
 +
# Choose to [[File:enable.png|80px]] '''enable''' or [[File:disable.png|80px]] disable''' the script.
  
 
===Test Script===
 
===Test Script===
 +
# Input data into the '''Testing Data Set'''.
 +
#* New data sets can be created by selecting the [[File:add_data_set.png|30px]] '''Add''' button.
 +
# Select the '''START TESTING''' button.
 +
#* Log data will be shown in the '''Testing Console''' panel.
 +
# Select the '''SEND DATA''' button.
 +
#* Computed values will be shown in the '''Output (Measurement)''' and/or '''Output (Command)''' panel.

Revision as of 14:16, 21 June 2021

Add Script

This section covers the following topics:

Add Script

  1. Select source measurements.
  2. Fill in the init and compute functions.
    • Programming Language Used: Javascript
  3. Test Script.
  4. Revise code as necessary.
  5. Choose to Enable.png enable or Disable.png disable the script.

Test Script

  1. Input data into the Testing Data Set.
    • New data sets can be created by selecting the Add data set.png Add button.
  2. Select the START TESTING button.
    • Log data will be shown in the Testing Console panel.
  3. Select the SEND DATA button.
    • Computed values will be shown in the Output (Measurement) and/or Output (Command) panel.