03-24-2011 11:35 AM
Can anyone tell from the attached screen shot, why my one shared variable is not working with the labview application I'm running on my PC. I set the variable to 48 (I thought), and yet in the NI Distributed System Manager the value doesn't changed.
Solved! Go to Solution.
03-24-2011 12:08 PM
It looks like the shared variable had been working as it received its last update 7 minutes before you took the screenshot.
Did you enable the 'update deadband' settings when configuring the variable? That would give you the symptoms you describe if you set the deadband sufficiently high (like 100% or something).
Regards,
Dave.
03-24-2011 12:14 PM
It works when I set it using the "NI Distributed System Manager", but when I try to set it running the .VI in the screenshot, it doesn't change in the "NI Distributed System Manage".
I don't know how to check the "update deadband" setting. I don't recall seeing that before.
03-24-2011 12:52 PM
Its not likely to be a deadband problem if you haven't touched the settings. I would check it out just in case though. In the project window, right click on the shared variable>>properties and select Update Deadband. See attached image. If it's not this, I shall have to think some more about what else could cause this.
As for ensuring it works when setting it from DSM...from your screenshot you appear to have a VI that writes to the SV. Change the code ore create a new VI so that it reads the SV and then double check that if you change the value in DSM, the VI also reads back the updated value. It may be that the number changes in DSM but does not update the SV in the VI - this would indicate a problem with the shared variable engine or the deployed variable library...Reboot PC and retry... if the problem persists let me know or attach the SV library!
Regards,
Dave
03-24-2011 12:58 PM
I don't have a deadband setting that I can find. See attached.
I'll try your suggestions and see if that helps.
However one issue is that the NI Distributed Manager is not getting updated when I write to that SV, shouldn't it be? I'll add an SV for reading and see what it's getting also.
03-24-2011 01:00 PM
Reading it isn't working either. See attached.
03-24-2011 02:30 PM - edited 03-24-2011 02:31 PM
Reseting my PC seems to have gotten things working better. The VI is now able to read/write the shared variable.