Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Scope of Single Process Shared Cariable

I have a framework for my application. Part of the framework depicts a common module for all my other systems (cRIO).

Therefore i created library for this purpose. My module involves communication between 2 loops. Therefore i used single process shared variable. But i wasn't able to create shared variable on the library.

 

"File-> New -> Library"

 

Hence i created an empty project and created a new library (lvlib) and added in the shared variables which falls within the hiercharchy of the lvlib. Everything works fine till then.

 

To move further, i created a new project, with 2 cRIO and have a RT build specification which includes the lvlib. But the single process shared variable wasn't included.

 

I read an article which says shared variable only house in the project scope.

 

https://www.ni.com/docs/en-US/bundle/labview-real-time-module/page/sharing-data-using-shared-variabl...

 

Is there any work aroud? 

 

If not, i've to replace it with global variable.

 

Many thanks!

 

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

Not sure what you are trying to do...can you show us your project?

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