Go to Post How FIRST is helping: teaching me just how much I can achieve in 6 weeks. - Otaku [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 03-12-2009, 15:56
cougarbytes cougarbytes is offline
Registered User
FTC #3506
 
Join Date: Nov 2009
Location: Ohio
Posts: 5
cougarbytes is an unknown quantity at this point
[FTC]: Help with LabView and variables?

In LabView, we are attempting to make our servos move in increments for the duration that we press a button. However, with our current code, we are able to press a button, and upon that press, have our servo move to a set position. We would like to know how to "store" a variable and add a set number to it so that it moves the servo up/down in our set increment as long as our button is still pressed.



We are a rookie team, and have never used LabView before. All tips and suggestions are welcome!
Reply With Quote
  #2   Spotlight this post!  
Unread 29-12-2009, 15:14
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: [FTC]: Help with LabView and variables?

Here is an example i drew up for you guys. To make it go reverse, just put another case structure in there. I am with FRC, but the logic should be the same.
Attached Files
File Type: vi servo example.vi (10.5 KB, 89 views)
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
Reply With Quote
  #3   Spotlight this post!  
Unread 29-12-2009, 15:57
BLAQmx's Avatar
BLAQmx BLAQmx is offline
Software Engineer
no team (National Instruments)
Team Role: Engineer
 
Join Date: Sep 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 100
BLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of light
Re: [FTC]: Help with LabView and variables?

I have also created an example and posted it the NI FTC Community page.

Open and Close Servo Incrementally with Game Pad Buttons

This example shows how you can use two game-pad buttons to incrementally increase and decrease the position value of a servo. The example also shows an efficient method of using a case structure with the FTC Read Buttons VI rather than using nested case structures.
__________________
NI FIRST Community: Where to go for LabVIEW, Wind River, cRIO-FRC, and NXT support.
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
HELP!!! BOOLEAN VARIABLES IN LABVIEW PRAWG Programming 2 07-02-2009 18:44
[FTC]: Variables in labview wilsonmw04 FIRST Tech Challenge 2 23-11-2008 08:57
[FTC]: First problem with FTC and LabView.....? PhilBot FIRST Tech Challenge 5 07-11-2008 10:36
First problems with FTC and Labview PhilBot National Instruments LabVIEW and Data Acquisition 0 10-09-2008 20:21
Labview dashboard and multiple variables Joe Ross LabView and Data Acquisition 2 15-03-2006 21:55


All times are GMT -5. The time now is 08:24.

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