12-03-2012 11:55 AM
I can't believe I've been trying to figure this out for days... I'm sure I'm missing something trivial. So I want to do something super simple. I have a main program (.exe) that spawns different subvi's (using call by name function). I have a variable that I want to update in one of the subvi's and then read it from a different subvi. So I thought I could do that with a shared variable. I created a single-process shared variable (since I'm only communicating within the same PC) and everything seems to work okay in the development PC. But when I install my exe in my target PC my variable doesn't update anymore! What am I doing wrong??
By the way, I'm using Labview 8.5.1.
12-03-2012 12:11 PM
Did you install Installer>Additional Installers>NI Variable engine in your target machine?
12-03-2012 12:15 PM
Yes, I did installed the SVE in the target machine. It still doesn't work 😞 Do I need a network-published variable for what I'm trying to do (pass data between 2 vi's on same PC)?
12-04-2012 02:59 AM - edited 12-04-2012 03:01 AM
I had this same problem when working with LV 8.6. I believe my solution was to programmatically deploy my shared variables at the beginning of my application.
12-04-2012 08:03 AM
I switched to a network-published shared variable (although I'm not sure I need it) and then try to programatically deploy it at the beginning of my program. I kept getting an error that I couldn't write to the file when trying to deploy the library. I turned off the firewall and even remove the antivirus altogether and nothing worked. Maybe is a Windows 7 thing? Anyways, I ended up (finally, after much poking around because step-by-step documentation on this is NON-EXISTENT!!!!) starting the SVE, and deploying my library and variable manually using the Variable Manager. It is now working but I will still like to figure out how to deploy programatically in case my program ever needs to be installed on a different PC by someone that is not aware how to deploy shared variables manually (which is very likely to happen).
12-04-2012 06:50 PM
Then you'll need to post your code or at least a screenshot of how you are programmatically deploying the variable library.
12-05-2012 08:07 AM