|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. ![]() |
|
#2
|
||||
|
||||
|
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? |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |