04-16-2015 08:23 AM
I'm having this issue since LV2012. Now on LV 2014 it seems happening more often.
I have a library populated with variables set as RT FIFO and without buffering. The values of these variables are written by exception in a event callback structure (OPC UA).
Every thing runs fine for some time (minutes, hours or days) until a moment when all shared variables readings become zero. However the Distributed System Manager or another application still show the real value of these variables.
They remain zero until be written again, even with the same value. But the variables that don't change every cycle are not written by the event loop and are kept with wrong values.
I think this isn't a normal behavior of shared variables.
This snapshot shows the issue. There aren't errors between nodes.
Result after write the variables with the same value.
Thanks!
04-16-2015 11:30 AM
Well, I don't have a large enough screen to figure out what you are trying to show me. I also can't see the code, so can't make suggestions there, either.
BS
04-16-2015 11:50 AM
I got a sample code. This is the reading loop. That VI just agregate a couple singles in an array.
VI called by reference:
04-16-2015
06:25 PM
- last edited on
05-28-2025
12:21 PM
by
Content Cleaner
I don't know what's wacking your SVs but you can probably see if the data is good by activating the timestamp/timeout terminal as shown towards the bottom of this page:
04-17-2015 01:20 PM
I could reproduce the issue with the code below.
The boolean button forces an error in the shared variable error input. When this happens the SV output goes to zero. Even after reseting its error input the SV output remains in zero.
Is this behavior normal? How can I force SV update to actual value?
Thanks
04-17-2015 01:53 PM - edited 04-17-2015 01:56 PM
Of course if you just reading with an error connected, I would expect to get the default value because the node does not really execute. What if you leave the error disconnected?
04-17-2015 01:58 PM
I think it's a good workaround to not wire error input to the SV's. I'm going to do this until get better understanding on this problem.
Thanks