LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Executable won't re-connect to shared variable engine when it breifly goes offline

Hi,

 

I have shared variables that are hosted on a field-point controller. I read these variables from executables that run on a PC. When the shared variable engine on the field point controller goes offline and then comes back online (for instance, if I cycle the power to the controller), the executables on the PC don't automatically reconnect. I need to restart the executables in order for them to re-connect and read the shared variables.

 

Any ideas on how to have the executables automatically re-connect? I don't want to have to restart the execuables when the power cycles on the controller,

 

Thanks, Derek. 

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

Hi Derek,

 

It is my understanding that the variables should reconnect, even after your FieldPoint has been power cycled.  I found a few articles that could be helpful; read through these and let me know if you are still having issues. 

 

http://digital.ni.com/public.nsf/allkb/7BA64956A475405F862570ED007B2A88?OpenDocument

http://digital.ni.com/public.nsf/allkb/04D9A85B6967EE87862571140065EEC6?OpenDocument

http://digital.ni.com/public.nsf/allkb/AA97FF29D0B3C748862572F600055B22?OpenDocument

 

Cheers, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 2 of 4
(2,485 Views)

Thanks for the advice.

 

My shared variable engine that hosts the shared variables is located on the remote fieldpoint node so there's no need to deploy it from the executable (I believe) since it's automatically deployed when I (re)start the embedded vi on the fieldpoint node (not running an executable on the node). Maybe I'm mistaken (do I need to also deploy the variables remotely?). 

 

Is the problem that I'm using an executable to read the variable? Does it only automatically reconnect when running a VI within LabVIEW?

 

Is there perhaps a workaround? Like a way to programmably re-initialize the shared variable so that it forces it to re-connect to the engine like it does when I restart the executable? 

 

Thanks, Derek. 

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

Hi Derek,

 

After you've rebooted, what do you see in the Shared Variable Manager on the computer?  Also, since the Shared Variables are hosted on the fieldpoint, I'd try posting to the Fieldpoint forum

 

Thanks, 

 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 4 of 4
(2,419 Views)