LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single-Process Shared variable HELP!

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.

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

Did you install Installer>Additional Installers>NI Variable engine in your target machine?

PaulG.
Retired
0 Kudos
Message 2 of 7
(4,312 Views)

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)?

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

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.

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

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). 

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

Then you'll need to post your code or at least a screenshot of how you are programmatically deploying the variable library.

0 Kudos
Message 6 of 7
(4,251 Views)

Did you read this link? 

PaulG.
Retired
0 Kudos
Message 7 of 7
(4,241 Views)