Create a Driven One-Shot Tag Group
Once you have your driving Tag created, add a Driven one-shot Tag Group that lets a user poll Tags manually.
- In the Tag Browser, click on the Tag Group
- Create a new Tag group by clicking on the Add icon.
- In Tag Group Editor, enter the following:
Name: Driven One Shot
Leased/Driven Rate: 1000ms
- Set the driving Expression by clicking the Edit on the right.
- Select the Tag and choose the Tag you want to set the condition on (i.e., One Shot Trigger).
- Click OK and then click apply changes. Note: This Tag group executes one time when the One shot condition is set to true.
- While still in the Tag Group Editor, set the following values:
Driving Comparison: =
Comparison Value: 1
One Shot: true
- Click OK to save the Tag Group.
Apply the Driven One Shot Tag Group
Now, we have to apply our Driven One Shot Tag Group to the One Shot Trigger Tag we created above.
- Select all the Tags that you want to run in this Tag Group. This example uses Pressure3 and Thickness3 Tags.
Right click on one of the selected Tags, and click the Edit Tag
- The Tag Editor will open showing you are editing multiple Tags. From the Tag Group dropdown list, choose Driven One Shot, and click OK.
- Let's test it out. In the Tag Browser, mark the checkbox for the One Shot Trigger Tag to set the value to true. You will see the Pressure3 and Thickness3 values update once, and then stop.
Uncheck the One Shot Trigger Tag, to set the value to false, and check it again to set it to true, and you will see the values update again.
- You can also drag a Momentary Button component onto a Vision window, then drag your One Shot Trigger Tag onto that button.
- Put the Project into Preview mode Tag. and then click the Momentary Button component. Now your operators can request new values and the button automatically resets the
In the Tag Browser, you will see the Tag values update once, and then stop.