CommandFusion Wiki

Documentation Resources

User Tools

Site Tools


software:gui-designer:system-manager:feedback-parsing:feedback-properties

Differences

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

Link to this comparison view

software:gui-designer:system-manager:feedback-parsing:feedback-properties [2013/05/05 05:11]
jarrod [OnMatch Items]
software:gui-designer:system-manager:feedback-parsing:feedback-properties [2014/06/30 03:42] (current)
jarrod [OnMatch Items]
Line 83: Line 83:
 The off and on value options are only relevant if the Data Type is set to '​Digital'​. They allow for the value to be set to a boolean value (0 or 1) no matter what the captured value i The off and on value options are only relevant if the Data Type is set to '​Digital'​. They allow for the value to be set to a boolean value (0 or 1) no matter what the captured value i
 For example, if your TV set reports the power status with the text '​POFF'​ and '​PON',​ and you want to display the power status on a button state, you would need the digital join value to be set to 0 or 1 depending on the captured value of '​POFF'​ or '​PON'​. So set the 'Off Value' to the string '​POFF'​ and the 'On Value' to the string '​PON'​ and when the feedback system parses the capture group, it will set the digital join value to 0 if the string matches '​POFF'​ and set the digital join value to 1 if the string matches '​PON'​. For example, if your TV set reports the power status with the text '​POFF'​ and '​PON',​ and you want to display the power status on a button state, you would need the digital join value to be set to 0 or 1 depending on the captured value of '​POFF'​ or '​PON'​. So set the 'Off Value' to the string '​POFF'​ and the 'On Value' to the string '​PON'​ and when the feedback system parses the capture group, it will set the digital join value to 0 if the string matches '​POFF'​ and set the digital join value to 1 if the string matches '​PON'​.
 +
 +If only the off value or only the on value is assigned a value (and one of them is left blank) then the join will change state to the defined value only on an exact match, and all other times would change to the undefined value. For example, if the 'on value' was assigned a value of "​PON"​ then the digital join would only be set high/active when the exact text "​PON"​ is received. Any other data captured would result in the join being set low/​inactive.
  
 ==== Transform ==== ==== Transform ====
Line 105: Line 107:
 ==== OnMatch Items ==== ==== OnMatch Items ====
  
-Along with capture groups, the feedback processing order can include onmatch items. These are used to set the value of a join or token when a match is found. Unlike capture groups, these allow you to set a join or token to any value, rather than a captured value.+Along with capture groups, the feedback processing order can include onmatch items. These are used to set the value of a join or token when a match is found. Unlike capture groups, these allow you to set a join or token to any value, rather than a captured value. Even a dynamically calculated join number can be used, by referencing capture group names within the join property of the onmatch item. [[https://​github.com/​CommandFusion/​DemoUserInterfaces/​tree/​master/​DynamicJoinAssignment|See a demo of dynamic join value assignment on GitHub]].
  
 === OnMatch Target Type === === OnMatch Target Type ===
Line 113: Line 115:
 === OnMatch Join === === OnMatch Join ===
  
-Again, refer to Join properties in the Capture Group description above. The only difference here is that onmatch items can dynamically assign the join number using math expressions and referencing other capture group names (by wrapping them in dollar signs).+Again, refer to Join properties in the Capture Group description above. The only difference here is that onmatch items can dynamically assign the join number using math expressions and referencing other capture group names (by wrapping them in dollar signs). [[https://​github.com/​CommandFusion/​DemoUserInterfaces/​tree/​master/​DynamicJoinAssignment|See a demo of dynamic join value assignment on GitHub]].
  
 === Assign Token === === Assign Token ===
software/gui-designer/system-manager/feedback-parsing/feedback-properties.1367730716.txt.gz ยท Last modified: 2020/02/03 10:18 (external edit)