LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shared variables not communicating updating

Hi,

I am having a problem with a labview model i've created.

the model basically consists of 22 tanks that fill and empty to each other at different phases.

the model consists of 1 Main VI which has 6 sub vi's inside a while loop.

i have created a project with a library and am using shared variables to read/write data between sub vi's, and the main VI is displaying the levels of the tanks  as read shared variables.

I also have refill buttons on the main VI which are used to fill empty tanks.

the problem is when i run the model the tanks don't allways show the correct value eg. i click the refill button and the tank doesn't fill but if i go into the sub VI related to it and click on the "highlight execution " bulb i can see that the value for the tank has changed but it's not showing on the main VI.

this problem can happen to any of the tanks in the model.

there are approx 120 shared variables in the model, 

i think the issue is related to the quantity of shared varibles being processed at any given time but i have never built a model on this scale before so this is new territory for me.

i have tried putting in a  timer into the loops to slow them down but the problem still persists.

Any ideas/ recommendations appreciated.

 

Brian

 

 

0 Kudos
Message 1 of 4
(2,507 Views)

Hi Brian,

can you show your code or a picture of it? Are all your tanks part of the main vi? Do you have a parallel running loop which updates the tanks in your main vi?

Think about the dataflow. 

 

Mike

Message 2 of 4
(2,484 Views)

Hi Mike,

thanks for the help. is it ok to send you the project directly (the block diagram is too big to make sense of as a bitmap)?

 

regards,

Brian 

0 Kudos
Message 3 of 4
(2,461 Views)

Hi Brian,

you can upload your project. Add it as an attachment to your post.

 

Mike

0 Kudos
Message 4 of 4
(2,455 Views)