LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

From LV/CVI how can I access 'single process' shared variables by name?

Solved!
Go to solution
From LabviewCVI 9.0, how can I access a 'single process' shared variable by name?
0 Kudos
Message 1 of 3
(3,383 Views)
Solution
Accepted by topic author jenstl

Hi jenstl,

 

If you are refering to a LabVIEW project's Single Process shared variable, then I don't think that you can access this (directly) from CVI. As the name suggests, the variable is bound to a single process, i.e., LabVIEW.

 

If you want to share a variable between LabVIEW and CVI, you could try a Network Published Shared Variable. Not only is it really easy to convert a Single Process Shared Variable to a Network Shared Variable, but there is also an example on sharing them between LabVIEW and CVI.

Community: CVI and LabVIEW Network Published Shared Variables 

 

For more information on Shared Variables:

Developer Zone Tutorial: Using the LabVIEW Shared Variable

 

Also, I initally said that you can't use a Single Process Shared Variable directly from CVI. I added the 'directly' in there because in all likelihood, you could come up with some (potentially convoluted) workaround that involved using ActiveX to call the LabVIEW ActiveX server and communicate to the Shared Variable in that fashion.

 

Hope that helps!

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 3
(3,360 Views)
Thanks. I missed the distinction of "single process".
0 Kudos
Message 3 of 3
(3,332 Views)