Pass App Data to XSight Topics Using Blockly

Before you begin

This procedure requires an XSight topic. See Create an XSight Topic.

About this task

Use this procedure to map widget data to your XSight topic data connection rule using Blockly.

Procedure

  1. Open your app in the Canvas.
  2. Select the widget that triggers the transfer of information from your app to SOTI XSight.
  3. From the Events tab, select the Events list.
  4. Select an event, like On Click, to trigger the information transfer.
  5. From Actions, select to add a new action.
  6. Select Run Blockly.
  7. Select Blockly Editor. The Blockly Editor window opens.
    Blockly Editor window
  8. In Blockly Name, give a brief description of the script's purpose.
  9. Expand the left-hand menu and select XSight Topics.
    Blocks for XSight topics
  10. Drag a Set block onto the canvas.
  11. From the block's select list, select the name of the XSight topic to receive the data.
  12. From Widget Values, drag a block of the same type as the widget containing the source data onto the canvas.
  13. From the block's select list, select the source widget's name.
  14. Drag and insert the block into the to bubble in the Set block.
    The configured Set block
  15. Select Save.

Results

Widget values from your SOTI Snap app can pass to SOTI XSight through your XSight topic data connection rule.

What to do next

Switch to SOTI XSight and configure SOTI XSight Live View to use your XSight topic data. See Map XSight Topics in SOTI XSight.