Register Observer is used to monitor any change of a selected register. Once the content of the monitored register changes, a Blockly callback funtion is activated.
For example, an ADC input is bound to a register and the result is displayed by a Circular Gauge widget. However, if users would like to use an LED widget to turn on when the ADC input value is larger than a predetermined value, then this Register Observer can be used. The Observer can monitor the value of the input ADC. Every time the binding register of the ADC changes, the callback function is activated to check the value. Once the value is larger than the predetermined value, the LED widget is turned on by the callback function.
An educational vidoe is availble to get users started:
-
Educational Video
Widget Property
Register Observer
Property | Description | Operation |
---|---|---|
Widget Name | Widget displayed name | Name |
Link to User Manual | Link to IOT’s website for User Manual |
Behavior Setting
Property | Description | Operation |
---|---|---|
Observed Register | Select a register to be obsered. Any change on this register’s value triggers this widget event. | Register Selector |
Event Setting
Property | Description | Operation |
---|---|---|
Enable Callback Function | Enable a Blockly Callback function | Checkbox |
Behavior Programming | Please refer to Blockly Editor | Blockly Editor |
Right-Click Menu
Widget-Specific Actions
Property | Description | Operation |
---|---|---|
Link to User Manual… | Connect to the education video and play it |