![]() ![]() It's a zero or a one based on whether or not this script was triggered by subscribing to the tag or not. So there's a variable here called initialChange. So in the case where you've configured a tag change script that can be triggered for multiple paths, you can check which tag has changed using the event.tagPath property. One of them is event, which is a tag change event object, and the most important part of that is that it has the tag path on it. Now when this script runs you're going to get three variables given to you. Just one tag per line and each, when any of those tags change it will trigger this script to run. And now we need to add all of the tags that are going to trigger this script, and you can have multiple tags in this list. And we want to trigger this script, let's say, only when the value changes. And you can have lots of tag, client tag change scripts. So we go under Client Event Scripts and choose tag change. And so the best way to do this is with a client scoped tag change script. And what we want to do is we want to open up this popup window when this tag changes. And this check box simply writes to this OpenTheWindow tag. ![]() I have the main window that has a check box. So in this example project I have two windows. First we're going to look at client scopes tag change scripts. ![]() In this lesson we're going to learn about tag change scripts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |