Go to Post So, if you feel your team is at a disadvantage, or the playing field isn't level.... Do something about it. - AdamHeard [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 04-01-2009, 14:57
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Adding a cluster to an existing cluster (Labview)

So i'm modifying a cluster in Begin.vi in the advanced view, and i'm trying to add a gyro to "Robot Data" i figured out that i need to add "GyroDevRef" to the cluster RobotData In. However, there's nothing in the help menus on how to add an element so it looks like its part of the cluster. Just dragging it in makes it overlap visually, but doesn't add it to the cluster. Is there anyone who knows how to do it?
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Reply With Quote
  #2   Spotlight this post!  
Unread 04-01-2009, 15:31
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Adding a cluster to an existing cluster (Labview)

OK, so i figured out that you can add things by adding the control of the cluster i wanted to add to the control of the big cluster. to do this, i had to open the .ctl file of that cluster, and import GyroDevRef.ctl

My question is now, is there an EASIER way to do this? this is long, complicated, and counter-intuitive, especially for new programmers.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Reply With Quote
  #3   Spotlight this post!  
Unread 04-01-2009, 15:46
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,576
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: Adding a cluster to an existing cluster (Labview)

I'm not totally sure of your intentions. There are a couple of ways you might be able to do this.


Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2009, 06:16
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Adding a cluster to an existing cluster (Labview)

One thing a few of us in Georgia decided to do was to stop using RobotIn for everything, but what it was needed for. All other things (ex: motors, sensors, joysticks...etc) are defined in the initialize case statement of where ever you need it (sure it needs tweaking to make it to work, but its a heck of a lot less work than the default advanced is).

If you're interested I can send you our files later.

Cheers
-Tanner
Reply With Quote
  #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,752
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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Movie theater IR cluster JBotAlan Chit-Chat 10 13-01-2008 01:35
Resources for Existing teams rees2001 General Forum 2 25-08-2007 06:05
Center to Center Distance for 2002 Chaiphua and Cluster gear sanddrag Motors 1 20-07-2005 07:36
chiaphua gear cluster Antonio Motors 31 26-01-2003 20:04
gearing for last year's gear cluster for the chipuhua motor Antonio Motors 0 07-01-2003 15:31


All times are GMT -5. The time now is 21:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi