LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connect from Windows application to Shared Variable running on RT Host

Solved!
Go to solution

I have an application on a Windows PC that I want to continue to edit in the LabVIEW development software.  I have a sbRIO hosting the shared variables used in this Windows application.  The application running on the sbRIO needs to run all the time otherwise we lose our communication link.  The issue is when I open the application from LabVIEW’s project the code is broken because the shared variables are not part of the project.  When I add the Shared Variables to the project (under the sbRIO) can’t redeploy because the application on the sbRIO is still running.  When I add the shared variables and the top level VI to the project then it wants to redeploy every time I press the run button. 

 

Question: Is there a way to set up the project so the Shared Variables don’t redeploy every time I press run? I just want it to leave the sbRIO alone and have the Windows application connect the shared variables hosted on the sbRIO.  Make sense?

Matt Fitzsimons
NI Alliance Member
LabVIEW Champion
NI Certified LabVIEW Architect
LabVIEW, LV-RT, Vision, DAQ, Motion, and FPGA
0 Kudos
Message 1 of 4
(2,432 Views)
Solution
Accepted by topic author CAS_MattF

From the project, right click on the RT target (or My Computer) and select Disable Auto Deploy Variables.  It is not very obvious, in fact I periodically forget how to do it.

Message 2 of 4
(2,428 Views)

Thanks and will give it a try in the morning.  Will post with results.

 

Matt Fitzsimons
NI Alliance Member
LabVIEW Champion
NI Certified LabVIEW Architect
LabVIEW, LV-RT, Vision, DAQ, Motion, and FPGA
0 Kudos
Message 3 of 4
(2,420 Views)

Found it.  I was looking under the shared variables.  It is called, "Disable Auto-Deploy Variables".  See attached.

 

 

Matt Fitzsimons
NI Alliance Member
LabVIEW Champion
NI Certified LabVIEW Architect
LabVIEW, LV-RT, Vision, DAQ, Motion, and FPGA
0 Kudos
Message 4 of 4
(2,407 Views)