View Single Post
  #5   Spotlight this post!  
Unread 05-01-2009, 08:46
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Adding a cluster to an existing cluster (Labview)

Quote:
Originally Posted by paulcd2000 View Post
My question is now, is there an EASIER way to do this? this is long, complicated, and counter-intuitive, especially for new programmers.
Easier is always relative. What you're doing is adding an element to a cluster datatype. Your initial instincts of "drag it in" were good ones, but since this type is actually a typdef, that drag needs to happen to the definition. True, there is no visual indication of something being a typedef, so of course it is sometimes confusing.

Here are the steps that I take for doing what you were trying. Right click on the RobotData cluster. In the menu it will say Open Typedef, choose that. In the new window, you now have access to the definition cluster.

So Open the typedef, and then open up a gyro VI, Open is a good choice. Drag or copy/paste the gyro dev ref cluster directly into the Robot Data cluster, or copy/paste. Close the Gyro VI, close the RobotData typedef, yes save, yes replace, and now all of the RobotData users throughout the project are updated.

Greg McKaskle
Reply With Quote