LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shared variables not working on PC

Solved!
Go to solution

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. 

0 Kudos
Message 1 of 7
(4,607 Views)

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.

Senior Software Engineer
www.Adansor.com
0 Kudos
Message 2 of 7
(4,599 Views)

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.

0 Kudos
Message 3 of 7
(4,594 Views)

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

Senior Software Engineer
www.Adansor.com
Message 4 of 7
(4,586 Views)

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.

0 Kudos
Message 5 of 7
(4,582 Views)

Reading it isn't working either. See attached.

0 Kudos
Message 6 of 7
(4,581 Views)
Solution
Accepted by topic author QlarityEng

Reseting my PC seems to have gotten things working better. The VI is now able to read/write the shared variable.

0 Kudos
Message 7 of 7
(4,575 Views)