Go to Post If your robot can't play at least two matches on one battery, your mechanical design and/or driver strategy needs some rethinking. - Al Skierkiewicz [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 13-01-2009, 00:41
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Laptop Controlling a Motor

I was wondering if anyone knew how to make a laptop control a motor but not like in LV front panel using some sliders and stuff.... I'm talking about using keyboard keys to run a motor forward/reverse. (eg When i hold "E" it goes full forward and when i hold "D" it goes full reverse)

Is this possible?

I have been playing around quite a bit in LV and i can't seem to find a function that would do this... Perhaps i overlooked something?!

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2009, 03:18
Woody1458's Avatar
Woody1458 Woody1458 is offline
AKA: Woody Jansen
FRC #1458 (Danvillans)
Team Role: Engineer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Danville, California
Posts: 286
Woody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to behold
Send a message via AIM to Woody1458
Re: Laptop Controlling a Motor

I'm no programmer, but I think in therory you could use a keyboard as a input device with just the USB ports.

Tell me how it goes.
__________________
"Everything we produce is made of: Duct Tape, zip ties, and hope" - Christian Allinson 1458

Anyone can watch Westcoast Choppers and see adults build things, but FIRST is great because it encourages kids to do the building and adults to do the watching.

GO DANVILLANS!!
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2009, 04:39
dgraves702 dgraves702 is offline
Registered User
FRC #0702 (Bagel Bytes)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2002
Location: Los Angeles
Posts: 7
dgraves702 is an unknown quantity at this point
Re: Laptop Controlling a Motor

Event Structures in LabVIEW can be used to recognize if a button is pressed, but I'm not sure what other effects using the Event Structure will have on the rest of your program.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2009, 08:56
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: Laptop Controlling a Motor

you could have a slider from 176 to 255 on your front page that would be directly tied to the motor out put, but you would have to go past a lot of case structure to get to it possible i think, but time consuming.
__________________
Is now an engineer thanks to FIRST.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2009, 14:16
Tach'ko's Avatar
Tach'ko Tach'ko is offline
Vice President of the planet Earth.
AKA: Jeffrey
FRC #2344 (Saunders Droid Factory)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Yonkaz
Posts: 22
Tach'ko is an unknown quantity at this point
Re: Laptop Controlling a Motor

If you make a VI separate from a robotics project, Labview does have functions to get keyboard, mouse and joystick values. However, these seem to be disabled in FRC projects, leading me to believe that they don't want us doing that... I can't imagine why though.

Not sure how old this thread is, it was pretty far back, so I don't know if I'm violating any thread necromancy rules. Sorry if I am.
__________________
If anybody understands the meaning of Webber T, let me know. I think my teacher made it up...

I'm bored... Check out mai devArt!
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
Controlling motor speed WGRAY Programming 9 16-02-2009 22:50
Controlling team 803 Programming 10 21-02-2006 13:56
Controlling motors railerobotics Programming 6 17-01-2006 17:17
Problem controlling a servo Entropia Programming 2 18-06-2005 18:36


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

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