LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I convert multiple controls and indicators into shared variables?

Hello all,

 

I have just inherited a program from a colleague and found that he has used local variables for everything within the project.

I plan to convert the architecture to a state machine from stack sequence structure and also want to introduce more subVIs. However there are over 100 individual variables at the moment (not including their local variables cropping up all over the place)

 

Is it possible to do a mass conversion to shared variables?

 

I can post up some examples later but I am currently installing Labview onto my new PC at work.

 

Edit: Using Labview 2012 if that helps

 

Thanks

Pete
Systems engineer (CLAD LV2013)
0 Kudos
Message 1 of 3
(2,536 Views)

From a design point, shared variables are no better than locals. They do however fill another function.

In this case you can probably remove >50% by bundling information in a cluster running through your state machine.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 3
(2,515 Views)

Yes converting it into cluster and passing is saving lot of memory and better way of programming instead of seperate variables

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 3 of 3
(2,504 Views)