Go to Post Hack saws are for hack work, the kind we don't do. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2015, 23:15
vasa.dhananjay vasa.dhananjay is offline
Registered User
FRC #4748
 
Join Date: Feb 2015
Location: United States
Posts: 5
vasa.dhananjay is an unknown quantity at this point
First LabView Program - Trouble with motor control

I've spent the last few hours trying to run a program on the roboRIO. I followed the tutorial attached but I used an old Victor to get started. I'm really not sure what I'm doing wrong, but the PWM isn't outputting anything despite what I put in the dashboard.
Attached Files
File Type: pdf [FRC 2015] Basic Motor Control.pdf (826.0 KB, 28 views)
File Type: vi Untitled 1.vi (9.9 KB, 5 views)
  #2   Spotlight this post!  
Unread 12-02-2015, 23:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,855
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: First LabView Program - Trouble with motor control

Try the Motor example that comes with LabVIEW.
From the Getting Started window select Support -> Find FRC Examples... -> FRC Robotics -> roboRIO->Robot and Motor->Motor Control

These examples assume you are tethered using the USB cable.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 13-02-2015, 00:02
vasa.dhananjay vasa.dhananjay is offline
Registered User
FRC #4748
 
Join Date: Feb 2015
Location: United States
Posts: 5
vasa.dhananjay is an unknown quantity at this point
Re: First LabView Program - Trouble with motor control

I'll have to test it out tomorrow, but assuming it does work which I can't imagine why it wouldn't, it still doesn't explain why my current program isn't. The key portions of the block diagram appear to be the same. I followed the tutorial attached in the previous post. Should something have been done to make sure that that file was run when I began running Robot Main.vi?


As for the example, if I wanted to run it wirelessly, do I just need to change the target from 172.22.11.2 to whatever the DNS is for my router?
Attached Thumbnails
Click image for larger version

Name:	block_diagram.png
Views:	34
Size:	14.9 KB
ID:	18321  
  #4   Spotlight this post!  
Unread 13-02-2015, 20:26
vasa.dhananjay vasa.dhananjay is offline
Registered User
FRC #4748
 
Join Date: Feb 2015
Location: United States
Posts: 5
vasa.dhananjay is an unknown quantity at this point
Re: First LabView Program - Trouble with motor control

I tried running the example as well and it doesn't appear to be working either. For some reason I can't get the PWM to output anything.
  #5   Spotlight this post!  
Unread 13-02-2015, 21:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: First LabView Program - Trouble with motor control

Quote:
Originally Posted by vasa.dhananjay View Post
I tried running the example as well and it doesn't appear to be working either. For some reason I can't get the PWM to output anything.
How are you determining that the PWM is not outputting anything? i.e. LabVIEW probes, Driver Station, Dashboard, LEDs on motor controllers, voltmeter, something else?


  #6   Spotlight this post!  
Unread 13-02-2015, 21:42
vasa.dhananjay vasa.dhananjay is offline
Registered User
FRC #4748
 
Join Date: Feb 2015
Location: United States
Posts: 5
vasa.dhananjay is an unknown quantity at this point
Re: First LabView Program - Trouble with motor control

I've tried with the voltmeter/oscilloscope and I LABVIEW probed some of the blocks when I did the example exercise and it seems to be setting the PWM to a value of 1537 . As far as I've delved into the internal blocks anyway. I'm not sure where to look to see if there are any issues with it actually setting the PWM to that value. The drive station hasn't spat out any errors either.

I just tried doing the arcade drive example. I can see that LABVIEW is reading the joystick values no problem but I get the following message when looking at the wire after declaring which PWM from the dropdown: PWM Channel | Not Executed.
Attached Thumbnails
Click image for larger version

Name:	PWM Not executed.png
Views:	13
Size:	72.7 KB
ID:	18338  

Last edited by vasa.dhananjay : 13-02-2015 at 22:27. Reason: Additional Info
  #7   Spotlight this post!  
Unread 14-02-2015, 07:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,855
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: First LabView Program - Trouble with motor control

That message means the Driver Station hasn't been put in Teleop mode and Enabled.

Maybe a screenshot of the Driver Station while the robot is Enabled.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #8   Spotlight this post!  
Unread 15-02-2015, 00:29
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 58
mshafer1 is an unknown quantity at this point
Re: First LabView Program - Trouble with motor control

Quote:
Originally Posted by Mark McLeod View Post
That message means the Driver Station hasn't been put in Teleop mode and Enabled.

Maybe a screenshot of the Driver Station while the robot is Enabled.
The vi in the example that was posted in the beginning tutorial your first post is meant to be stand alone. Try putting the code in the teleop.vi and enable the robot from the driverstation after either deploying the project, or running robot main.vi
Closed Thread


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


All times are GMT -5. The time now is 21:04.

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