Writing to a client tag in start up client launch

If I write a value to a tag in any tag provider in start up client it works.
If I try to write a value to a vision client tag in client start up event script it doesn’t work. What confuse me is that I’m able to read a client tag from start up client but not write. Why?
I’m using system.tag.write()

Not sure your not. I have many applications that write to client tags in the client startup event. Are you trying to write to a client tag that has a query or expression? If so, those bindings will overwrite what you do in the client startup event.

Hi @pturmel and no really, is a just a memory tag not expression nor query on this tag.
Can you please tell me which system function you are using to write? I mean write(), writeBlocking() or writeAsync()?
I’m able to write to this client tag with the same code but only works in runtime. Maybe the scope of client start up is not runtime yet or something?

The designer doesn’t run client startup/shutdown events.

I tried running the script actually launching the client

You’ll have to share your script. I don’t have enough info to help further.

Thanks for offering help, since writing to client tag didn’t work for me I found a better and elegant solution.
But anyway I may want to know what I’m doing wrong



So this is the tag

image

Anyway this is my code, as simple as this and I want to turn false de given tag…

image
projects saved…
Lauching same client of couse…
image
Successful log in
image
At this point, the script should have run…
image
as you can see it keep in True
.
.
.
.
.
However…
image

Execute…

image
And this time the value changed

Have you tried [Client] with a capital ‘C’ ?