LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace local shared variables

Hi,
 
I have a bunch of VIs in PXI RT target. There are about 300+ local shared variables distributed among these VIs. What I'd like to do is to change all these VIs target to PC instead of RT and debug and test these VIs logic in my PC. The reason that sometimes I could not use RT target for debugging purpose is because it is used to test the other program. The problem I have is that my local shared variables library is set up under RT target, how could I transfer the shared variable library to my PC. Even there is a way to transfer the library to my PC, It is hard to monitor and change the value of these local shared variables. I am thinking setting up a global variable VI in my PC and replace all these local shared variables with global variables. In that case, it is easy for me to control and read the variable value from global variable VI. My question is whether there is an easy way or tool to replace these local shared variables with global varaibles, and after I finish debugging VIs in my PC I could replace them back.
 
Jason
0 Kudos
Message 1 of 4
(3,384 Views)
Hi,
All of the files you deploy to your RT system are stored on your host PC.  If you want to run some of the VIs on the host PC instead of the RT target, all you should have to do is move them to your PC in your project or create a new project and add the files and libraries you want to use.  If you want an easy way to monitor the values of shared variables you can use the shared variable manager available under the tools menu in LabVIEW.  Unfortunately there is not a utility to convert local shared variables to global shared variables.
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 2 of 4
(3,350 Views)

It seems that shared variable manager could only monitor the network-publish type but not single-process type. All my shared variables are single-process type. And I need to change some of these single-process shared variables to simulate the input value, like sensor, operator input etc. At the same time, monitoring some other single-process shared variables as logic output. If there is no other way, the only I can do is to generate a global variable VI in my PC, generate 300+ global variables and replace them with 300+ single-process shared variables. What I am thinking is that since single-process shared variable behaves like global variable, there may be a way to convert between them.

Jason

0 Kudos
Message 3 of 4
(3,338 Views)
Hi Jason,
Sorry but there is no way I know of other than to manually convert them all.  You might want to consider filing a product suggestion for a new LabVIEW feature. Here is the link to NI's Product Suggestion Center.
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 4 of 4
(3,314 Views)