Go to Post Every year I develop new connections and greater friendships with FIRSTers - and every year I am surprised to find just how many amazing people there are here. - MysterE [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 24-01-2009, 21:09
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Post using a switch/button to turn on a motor

As a novice LabView programmer, I'm going to post this here to see if it's a viable way to code the outcome I'm looking for... which it this:

I have a CIM motor. It's connected to a Jaguar, and then to PWM channel 10 on the digital sidecar in Slot 4. I want to set a speed for this motor in the code (preferably in percentages, like 85%). And then I want to have a switch turn that motor on/off. In the final outcome, I imagine I'll actually have a joystick turn this on/off, but for now, I want to test it with a button on the Front Panel.

I've attached the code I wrote. It's in a while loop, which I am hoping is controlled properly by the ON/OFF switch (Boolean). Does this look like it will work to do what I want?
Attached Thumbnails
Click image for larger version

Name:	labview_code.jpg
Views:	155
Size:	77.6 KB
ID:	7216  
Reply With Quote
 


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
Survey: What rate of turn gyros are you using? windell747 Electrical 5 15-02-2008 12:47
Make my motor turn! [RSMT]sturm Programming 6 24-01-2008 07:54
Push Button and Switch Suppliers for OI controls Goldberg204 Control System 8 11-01-2007 15:27
Using a button on a joystick to track? DemonYawgmoth Programming 5 12-02-2006 11:17
push-button switch on robot Conan Electrical 4 10-02-2006 22:03


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

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