Log in

View Full Version : cluster gloabl variables, how to create?


martin417
06-02-2009, 14:58
I have a while loop in my robot main main VI that reads the data from four encoders. I have created a cluster and used bundle by name inside that while loop to put the data (distance and rate) into a bundle. I now want to create a global variable to hold the data so it can be used in my autonomous sub-VI. I have not been successful. I have tried many methods to make a cluster-type global, but no matter what I do, I cannot connect my bundle to my global. Any help?

http://picasaweb.google.com/mwilson417/First#5299775790124254610

picture of my code.... (http://picasaweb.google.com/mwilson417/First#5299775790124254610)

Greg McKaskle
06-02-2009, 16:13
You can make the cluster by hand, but a shortcut is to right click on a wire that is already the cluster type. Create a Control using the popup menu. Copy the control and paste it on the global panel.

Note that global VIs can have multiple controls on them, and you then select the control that you want from the global.

If you are still having issues, can you describe what error, or what things look like when you find yourself stuck.

Greg McKaskle