|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is there a Way To refrence a true false statement
yeah is there a way?
|
|
#2
|
|||||
|
|||||
|
Re: Is there a Way To refrence a true false statement
Do you mean the output of a T/F statement? That is, whether it ended up T or F? Or something else?
|
|
#3
|
|||
|
|||
|
Re: Is there a Way To refrence a true false statement
i didnt explain it well
since we have the basic.vi and teleop.vi i want to route the motor invert from basic.vi into the teleop to use a case structure to invert the motor at a push of a button |
|
#4
|
|||||
|
|||||
|
Re: Is there a Way To refrence a true false statement
I don't know of any "Basic.vi," but yes you can pass variables between vi's.
There are several different ways to do so. Tell us a little bit about basic.vi first, like where is it and what are you doing in it. |
|
#5
|
|||
|
|||
|
Re: Is there a Way To refrence a true false statement
i ment begin sorry about that;
|
|
#6
|
|||||
|
|||||
|
Re: Is there a Way To refrence a true false statement
You know, I know another team that wants to do something like that too.
Planning to Close and Reopen your 2 or 4 motor drive? You can simplify that particular problem, since Begin.vi is only ever called one time and the starting values of Invert are hardcoded. You already know in Teleop.vi what values would be passed in. It's much easier to just keep that information local to teleop.vi. You can pass the value of your Invert to teleop.vi with a global variable if you so choose. Your team probably used global variables last year. Last edited by Mark McLeod : 30-01-2010 at 21:31. Reason: o |
|
#7
|
|||
|
|||
|
Re: Is there a Way To refrence a true false statement
we didnt use global variables last year, i dont understand how to use them
|
|
#8
|
|||||
|
|||||
|
Re: Is there a Way To refrence a true false statement
This is in LabVIEW Help, but it's a bit hard to find.
Last edited by Mark McLeod : 30-01-2010 at 22:32. |
|
#9
|
|||
|
|||
|
Re: Is there a Way To refrence a true false statement
A little off topic, but it reminded me:
Do you HAVE to close whatever it is in the end vi? I forgot to and didn't notice a difference. |
|
#10
|
|||||
|
|||||
|
Re: Is there a Way To refrence a true false statement
That is bizarrely off-topic...
Did you just pick the uppermost thread on the portal to ask your question? If you fail to close things they will come back to haunt you after the season... Last edited by Mark McLeod : 31-01-2010 at 08:38. |
|
#11
|
|||||
|
|||||
|
Re: Is there a Way To refrence a true false statement
It might be easier for you to add a case block to either multiply your motor control value by -1 or leave it alone, based on your pushbutton.
|
|
#12
|
|||
|
|||
|
Re: Is there a Way To refrence a true false statement
thanks alot imma try it when i reach today; i was searching in the help but it only gave me a small description how to do it
|
|
#13
|
|||
|
|||
|
Re: Is there a Way To refrence a true false statement
You could use a joystick button and wire it directly to the open motor invert terminal.
1) Unbundle the buttons (brown 'out' terminal) on the JoystickGet.vi [this can be done by right clicking on the terminal, most things in LabView can, I've found new love for my right mouse button ]2) Wire the desired button to the invert terminal on the OpenMotor.vi (2 motors or 4, it doesn't matter) |
|
#14
|
|||
|
|||
|
Re: Is there a Way To refrence a true false statement
BTW; I'm picturing this code in the Begin.vi
|
|
#15
|
|||||
|
|||||
|
Re: Is there a Way To refrence a true false statement
That solution won't work in this case.
The Begin.vi happens only once when the robot is first turned on, and they want to change the value on-the-fly during the match. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there a way to display Cmaer Live footage? | Tottanka | FRC Control System | 0 | 12-12-2008 11:21 |
| Is it true that there is not going to be UC Davis Sacramento Region next year? | jimmythetulip22 | General Forum | 14 | 03-03-2008 23:54 |
| Is there a way to read your Team Colour during autonomous mode? | Firestorm | Programming | 2 | 19-02-2005 18:57 |
| Way back there. Size of Nationals, and a solution | archiver | 2001 | 23 | 24-06-2002 03:28 |
| is it true? are there pics of TEAM 1?? | archiver | 2000 | 3 | 23-06-2002 22:19 |