11-01-2017 03:39 AM
I've attached the project, it is not so big i think.
The problem comes from the variable stored in the VI "DisplayData" in the "Keithley237" class.
Actually, i tried to create two new variables to replace the two ones failing, but any shared variables i put in this VI have problems when i restart.
On the PC side i'm using them in the UpdateUIFromSharedVariables.
11-02-2017 10:41 AM
In order to prove this issue is specific to LabVIEW and not your project, I would just the bare essentials to replicate that the shared variables disappear when you restart your project. Sorry i wasn't clear enough in my previous message
11-14-2017 09:34 PM
I have this exact same issue. It first appeared today. I have LV 2015. I played around for quite awhile changing my file system between auto-populating and if it was because I was using a type-def. However, I don't know why but I created a new library and then I copied the code from the vi that can't keep the variable and created a new vi in the new folder and it works. It seems to me that something about a couple of my files is thinking that the network shared variables are not part of the project. I also found that when I had the variables in the "bad" file the new file and the old one had the error. But as soon as I deleted the variable from the "bad" file the new one is fine. ??? I don't know why it's so weird. I tried creating a simple test case but I couldn't get the same behavior.
11-16-2017 01:53 PM
I had this same problem last month with both LV2014 and LV2017. Multiple shared variables in several .lvlib files showed that they were not in the project every time it was opened. When I tried to create a small sample to show the problem I discovered that when the containing folder was changed to Stop Auto-populating the problem immediately disappeared.
11-17-2017 12:17 PM
I just found out that this is a known issue in Labview. Basically, there are issues if the file is auto-populating and also if it is used in a class. Turn off auto-populating for the folder that has the shared variable library and the problem should be fixed.
On a side note I also found out that there are issues with using Type-def for the shared variable in an executable. When building the executable check the "Disconnect type definitions" checkbox in the "Additional Exclusions" category.
11-27-2017 04:28 AM
Indeed it solves my problem! Thanks a lot!
By curiosity, where did you find this information?
06-28-2018 09:03 AM
I had the same thing occur, but it appears that my shared variables broke after I had added them to a vi within a class and closed the project. Once i removed the shared variables from the class vi (i had the project closed if that matters) and then re-opened the entire project all went back to normal.