LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indicator won't bind to a Single Process Shared Variable

Solved!
Go to solution

Hi there,

 

When I attempt to bind a single process shared variable to an indicator, LabVIEW gives me the following error:

 

single process shared variable binding error

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have attached a project with the example code.  It currently works OK because I have set the SV to be Network Published. 

 

FPs and lvproj

 

 

To cause the error, simply edit the properties of the SV from its library in the Project Explorer, changing the type from NP to SP (see screenshot below).

 

 

Set SV to SP

 

 

The reason I want to use the SV as a single process is to reduce the overhead as it isn't being shared over a network.  Here is the help file text:

.

"Variable Type—Specifies the scope of the shared variable. Select Network-Published from the pull-down menu if you want to share the shared variable data across a network. Select Single-Process from the pull-down menu if you want to share the shared variable data among VIs on the local computer."

 

 

The Double Numeric indicator on the top level vi is already bound to the SV as follows

Indicator bound to SV

 

So... why can't I bind my SPSV to an indicator ?

 

regards

 

 

 

Peter
0 Kudos
Message 1 of 3
(2,910 Views)
Solution
Accepted by topic author Peter_B

Hi Peter_B,

The front panel data binding is only applicable with networked shared variable.

Check out this link about shared variable.You will find answer to your question in "Front Panel Data Binding" section.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 2 of 3
(2,889 Views)
Thanks for pointing that out Gaurav. To me it seems like an unnecessary limitation. I wonder why NI did it that way. Rgds
Peter
0 Kudos
Message 3 of 3
(2,878 Views)