08-27-2013 03:47 AM - edited 08-27-2013 03:58 AM
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
08-27-2013 07:21 AM
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
08-27-2013 07:33 AM
Yes converting it into cluster and passing is saving lot of memory and better way of programming instead of seperate variables