Go to Post Gravity is not always pointing the same direction relative to the robot! - ChrisH [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-03-2009, 19:25
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Creating a global variable

I'm really interested in learning how to create a global variable for 2 motors.
I've been trying to build it but I got no successful results.

I need it to use 2 motors in autonomous mode which I couldn't get to work in my regional because my coding wasn't correct
If someone can point me to the correct path I would really appreciate it.
__________________


Reply With Quote
  #2   Spotlight this post!  
Unread 26-03-2009, 20:01
Cuse's Avatar
Cuse Cuse is offline
Registered User
AKA: Matt Mancuso
FRC #0175 (Buzz Robotics)
Team Role: Alumni
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Enfield, CT
Posts: 22
Cuse is an unknown quantity at this point
Re: Creating a global variable

A couple of questions...

1) What language are you programming in?
2) What is the variable for, specifically?
3) What about the code wasn't working?
__________________

Reply With Quote
  #3   Spotlight this post!  
Unread 26-03-2009, 20:50
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,751
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: Creating a global variable

You can add to an existing global file, or you can create another.

To add to an existing one, double click on one of the existing globals such as the Robot one in the template. Once opened, add more controls to the global file giving them good names. Then where you want to access them, you drag the global VI icon to the diagram and select the ones you just named.

If you want to create a new file, you can go to structures and drop the global? from the palette. Double click on it, drop the control with a good name, save, then click to change the ? to the global you just added.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 26-03-2009, 22:47
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Creating a global variable

I figured it out a couple of hours ago I just had to drag and drop :S Pretty simple!

Thanks a lot anyways!
__________________


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
Global news tonight? Mark Rozitis FIRST In the News... 16 28-03-2009 14:58
Global variable question Nathan Programming 3 27-01-2008 18:02
Global Variable Placement robbrad Programming 1 23-01-2008 00:50
Global Constants Ryan Cumings Programming 17 08-02-2004 19:05


All times are GMT -5. The time now is 10:36.

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