The second way is to match a pattern of data, for example looking for VOLUME=xx, where xx can be any number. This is accomplished using Regular Expressions (Regex).
To use Regex go to the Two Way Feedback panel (Similar to generic two way feedback) and choose the 'feedback matches a pattern' from the drop down menu.
What is Regex
Regex is short hand for Regular Expressions which are rules used to retrieve information from words or sentences. In the DemoPad software we use this to understand the feedback given to us and to take information from it to display to the screen.
Regex can be quite difficult to use but if you are interested check out this website.
As an example if you had the feedback from a Media Player that looked like:
Then the Regex would look like this to retrieve the Artist:
ARTIST=Muse SONG=Feeling Good
It is important that you wrap the part of the feedback that you want to extract in brackets so that our program knows to extract that bit of information.
You can use this tester to check your regex:
Anything returned after the 1. is what our app returns.
In the Two Way Feedback Panel you can then choose to either assign the information to a label or number. Then assign this variable to a text box or gauge and it will update automatically when feedback is received.
If you need help setting up Regex for your project please get in contact with us.
Using Dynamic Labels
Have a look at the attached sample project which shows how to use Number variables and regex together in an app. Note the square brackets [ ] around number variable names which can be used in commands, to generate commands dynamically
using two way feedback from device label number regex how to