Movie Script Value

0 views
Skip to first unread message

Carlito Austin

unread,
Aug 4, 2024, 8:18:25 PM8/4/24
to ycrekomgie
Thisplan provides coverage for outpatient prescription drugs covered under Medicare Part D. It features a nationwide network of pharmacies which includes pharmacies with preferred cost-sharing, which may offer lower cost-sharing than standard network pharmacies.

WellCare Medicare Advantage HMO plans are issued by WellCare of Washington, Inc. WellCare Medicare Advantage PPO plans are issued by WellCare Health Insurance Company of Washington, Inc. WellCare Prescription Drug Plans are issued by WellCare Prescription Insurance, Inc.


I have a named query that inserts one row of data, I'm calling this named query from a tag value change script (which also passes the tag value to that named query). Ideally I shouldn't see any duplicate values as it's a tag value change but I'm seeing a lot of duplicates.


I have seen instances when the gateway is restarted then it triggers the tag value change script somehow but even if the gateway stays on it's happening. This is an OPC tag and I don't think the PLC is writing different values or same values to it that often. I even tried testing by writing the same value to the tag from a script console and it didn't trigger the script.


Is this a tag event script or gateway tag change script (part of a project)? Are you checking the initial change flag? If it's a gateway tag change script then it's going to fire every time somebody saves the project, and if you aren't checking the flag to guard your logic it will run every time.


If you have the same script defined in another project other than the currently open project in the gateway, the script will run there also whenever there is a tag change seen by both scripts! You have to disable all other scripts in other projects defined in the gateway. I had experienced similar situation in my case.


I think this should be the other way around, check for initialChange first to make sure previousValue does exist and has a value.

If initialChange is true, the second condition would then be skipped, and dereferencing previousValue would not raise an error as it would if done first.


If you have the same script defined in another project other than the currently open project in the gateway, the script will run there also whenever there is a tag change seen by both scripts! You have to disable all other scripts in other projects defined in the gateway


I tried the solution you mentioned and it's not producing duplicates except for a gateway restart. I tried print on the logs like @Kevin.Herron suggested and the 'initialChange' bool was false as well as previousValue.value was None. So I had to add another condition to your if statement not to allow None.


I have a gateway with 16 identical projects on it for 16 lines. In the event of a tag getting triggered, all 16 projects run the same tag change script and I get 16 identical entries in my database. All the lines are running in separate sessions.


Why are all projects monitoring the same tags ?

If a tag only concern one project, monitor it from this project.

If they are 'global' tags, monitor them from a 'global' project, or use tags 'value changed' scripts.


You'd think (and hope).

But he might have 16 copies of the same project, with each update being copied to the 15 other projects.

I've suffered through this. Took me a year and a half to convince them to let me refactor the whole thing into a single inheritable project.


Tag data base being common for all projects and global scripts remaining active in all projects, whether open or close, is the main cause of this problem! The scripts that are triggered by a tag in all projects will fire irrespective of whether a project is open or not!


Back story: There are 12 lines at a plant. Each line needs to display the same screens but with their own tag information. Each line has its own PLC and set of tags associated with it. Since they are using thin clients through terminal services, I needed to use Workstation launcher in order to have separate sessions for the same project (they all use the same browser, so they all would be the same session if launched from browser). But launching the same project from a workstation still had projects overriding the other's screens and actions. So, I copied the main project to create separate projects. All 12 (current) projects query the same DB for the work orders, with a custom session property dictating what info is displayed on the screens.


Ultimately, I want to write to an OPC tag when another tag's state changes. In the process of trying to chase down why it wasn't working, I resorted to creating a few memory tags (all within the same tag provider and folder). One memory tag has a simple tag change script. When executing, it is to write a new value to a different tag.


I have tried the following script in the Script Console (using absolute tag paths) and it works as expected. I have tried it within the tag change script with both absolute and relative paths, but no luck.


The diagnostics on the tag shows no errors.

The "enabled" check box for the Value Changed script is checked. I've tried toggling it off and on.

The tag provider is executing. I created an expression script to toggle a boolean on/off every one second and this works fine.


Have you looked on the tag's diagnostics tab? This is where value change script errors will go. They most likely appear in the wrapper log / gw logs as well, not sure though what they would be logged under


Thanks. I imported the tags. Set the value of "New Tag" to 0 (zero). Then changed the value of "New Tag 1". I would expect the script on "New Tag 1" to update the value of "New Tag" to the number 123. However, it does not change the value at all. I am puzzled.


I'm assuming this is where to find the Logger? I've replaced the script in "New Tag 1" with what you provided. (replacing the tag path and value for writeBlocking, of course) Then making a change to the tag value.


I've experienced the same thing. When it happened, I copied the script that was not working and created a new tag change event and pasted the code into the new. I then deactivated the old and activated the new. Once the new worked, I deleted the old. No idea what made this happen, I assume somehow a link got broken when I was making changes, but this made it work, so I never worried about finding the cause.


Unfortunately, we have discovered that this is a widespread issue and many tag structures (that existed prior to my working on this project) that have an event change script are no-longer working. We are waiting for a response from Ignition. I'm thinking the quick-fix is rebooting the server. This, however, would not be a solution, but inevitably mask any underlying problem that caused it in the first place.


In my data set I will be using a column, called Set, as my x-axis variable in a barchart. I want them to be sorted in the order from smallest response value to largest response value so I have bars that are increasing in length. For example if I have the following data:


The below approach is better (oneliner's fun but rarely sufficient...). It should work even if there are ties and also if there are several values for each level and the the value ordering is to be based on e.g. the mean response of each level.


This apporach should work for the example above. However, it just occurred to me that if two or more levels have exactly the same response it will fail (only one of any tied levels will be represented in the list).


I'm replying to this thread because of similar problem for value ordering. I still can't figure out when to use Expr and Eval Expr for Column Properties in JSL for JMP 12 or JMP 13. It seems the general form should work:


The explanation from the spec limits post was "the column stores the column property with the values supplied without evaluation or validation of the supplied arguments. In order to add column properties using JSL code which contains variables, the script must convert any variables to their actual values."


In the first case, the list contains only variable names. The Eval List simply evaluates each variable. In the second case, the list contains things (LSL, USL, Target) that only make sense in the context of the Set Property message as a whole. Eval List doesn't know about that context, so it can't figure out what to do with the first thing it sees: LSL. For that case, you'll have to use the more complex expression that you worked out for the other case.


For your specific case, it might make sense to replace col2val and col3val with functions (outside of the class) that uses col1val as an input. I don't know exactly how you want to access the data. If those "contigent values" are acutally stored as contingent values, you should be able to access them via arcpy. What I did for another tool, is to have an excel file saved somewhere and then read the data with pandas.


Can I please get some help with a client script that will change the value of the "short description" to the request_name variable on the portal? I attached a couple screenshots to display what I 'm trying to acheive. (Order guide has the variable request_name that I want to replace the short description on the order guide summary)


Thank you @Harish Bainsla unfortunately the script recommendation above didn't change the short description value. I added an info message to verify the script was running and it didn't populate. Attached are all the details of the script and variable in case there is something minor to change that I am missing. Thanks so much for all your help.


variable from the catalog item. Attached is the variable request_name, the location of where I would like request_name visible and the code I'm trying to edit. Is this possible? I would like short description removed and replaced with the request_name variable.

3a8082e126
Reply all
Reply to author
Forward
0 new messages