LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Shared Variables hosted on PXI in a called LLB

I've been unable to find much information regarding this practice which leads me to think that it isn't possible.

 

I have a PXI RT project that runs a bunch of code by itself, but also calls one of several different LLB's to run its own DAQ services. I'm trying to find a way to transfer data from the called LLB to another device on the network. Normally we use shared variables to handle that transfer. However, I have found a paper for version 8.2.1 (we're on 2014) that says you can't programatically deploy shared variables in a real-time OS. 


Is there a way to use shared variables inside a LLB? I know shared variables have to be in a project/library and then deployed to the target. If I deploy the library on the PXI and then call the LLB, will it be able to access the shared variables correctly? Or am I thinking about this all wrong?

 

Thanks for the help!

0 Kudos
Message 1 of 2
(3,030 Views)

Hi RMaso, 

 

I believe this is the white paper you were talking about.

 

http://digital.ni.com/public.nsf/allkb/5615C415DCEA0A2086257150006A0F7D

 

The answer for your question is no, you will not be able to access the shared variables if you deploy the library and call the LLB. There is no possible way to programmatically deploy a shared variable in a RT target. The only possible workaround is the one provided by the paper

 

Warm Regards,

Jonathan Rodriguez

Applications Engineer

0 Kudos
Message 2 of 2
(2,769 Views)