LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Shared Variables not recognized after re-opening the project

Solved!
Go to solution

(Using LabVIEW 2015 sp1)

I have a project with 6 network published shared variables. Every time that I close the project and reopen it, the VIs that use these variables have broken arrows, complaining that the shared variable is "not in the project" (They are!).

 

I have found out that if I rename the variables once, and then rename them again back to their original names, the issue is resolved!! Seems like LabVIEW does not initially load them, and by renaming them, I am forcing (?) it to load these variables. Anyone knows what is going on?!

 

Thanks

0 Kudos
Message 1 of 17
(3,547 Views)

Hey SoheyIV,

 

After the project is reopened and the VIs have broken arrows, are you able to right click the library and deploy the shared variables? I'm wondering if deploying the library gives us the same result as renaming the shared variables.

0 Kudos
Message 2 of 17
(3,478 Views)

To follow up on Even-and's (odd-or?) comment, where are you hosting the shared variables, on the Host machine or on the Remote Target?  I'm guessing it is the latter, and, if so, EvenAnd is probably right about Deployment.

 

Hmm, I just looked up an older Project where I had Network Shared Variables to see how I avoided this particular problem.  However, they are no longer in the Project, as I kept having troubles using them for even simple things, so abandoned them entirely for Network Streams.

 

Bob Schor

0 Kudos
Message 3 of 17
(3,474 Views)

Bob_Schor (can't think of anything clever for your name) brings up a good point. This link give more information about hosting the Network Shared Variables on the host machine or RT target

0 Kudos
Message 4 of 17
(3,460 Views)

even-And,

     Try initials!

 

Bob Schor

Message 5 of 17
(3,454 Views)

No, deploying the shared variables does not fix this problem.

0 Kudos
Message 6 of 17
(3,432 Views)

They are hosted on the local machine. And deployment does not solve the problem.

0 Kudos
Message 7 of 17
(3,430 Views)

Are we deploying the shared variable engine?

 

Is the host on the same subnet as the target?

 

Could you provide a screenshot of your project when the shared variables are "not in the project"

0 Kudos
Message 8 of 17
(3,405 Views)


I have exactly the same problem.


I have a project running on a RT PXI, with 20 shared variables more or less, and every time I restart the project, LabVIEW says that two of them are not in the project anymore. I have to delete them, restart the project and put them again.


I try to replace them by two new ones, but it's the same. They are used in a class i don't know if it makes a difference, because in another of my project i have exactly the same project architecture and it works...

 

But on this one the class are locked, because I guess i'm using in the PC side the typedef saved in the classes so, since the class are opened"twice" virtually they are locked, i don't know if it makes a difference?

 

Thanks for your help

0 Kudos
Message 9 of 17
(3,389 Views)

SoheyIV and LeBobbyshoot, 

 

If either of you can create a small example code that reproduces this behavior, I can test this on my end. If the issue is not specific to your projects, perhaps this is a bug and needs a CAR

0 Kudos
Message 10 of 17
(3,370 Views)