Go to Post In 2012, we built our best machine ever. Some visitors to our pit were visibly disappointed to find that our machine was a pile of extruded aluminum and urethane belting, just cleverly arranged and programmed. - OZ_341 [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 12-02-2009, 23:49
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Problems with using 330's goal tracking code

No worries, Joe! Thanks for the reply! is it possible to get an example set of gains from you so that I have something to start with that will tell me weather or not the code is correct and that the problem is only with tuning? Maybe not your best set of parameters, but something that converges to no error over time. That way if mine doesn't converge then I know something is wrong.

I'm a fulltime engineering student and although I would like to mentor the team all day and get things just right, I have to do my studies too so it is hard sometimes to find the time to tune things from scratch. Again im not asking for competition gains, but something that will guarantee converge. Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2009, 16:04
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Problems with using 330's goal tracking code

Thanks for your help! It looks like I was able to get the response to converge. here are my gains for anyone interested. x-axis0.003,I0.5. y-axis: P0.015,I0.70. derivative terms 0. max x=0.45,max y=0.7

I'm trying to plot the x and y axis outputs to a graph but im having some trouble. I'm using the plot waveform and feeding to the input a get waveform time array, but im not getting the correct data types. Can anyone briefly explain the process to do this?

Thanks!
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2009, 16:14
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Problems with using 330's goal tracking code

One of the easiest ways to do this is to:

1. Go to your Front Panel
2. Select Express->Graph Indicators->XY Graph (aka Express XY Graph)
3. On the block diagram, wire your X and Y inputs
4. Double click the Build XY Graph on the block diagram and turn off Clear Data on Each Call.

-Nate
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2009, 22:57
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Problems with using 330's goal tracking code

how do you put time values for the x variable each iteration? I guess I could just put a counter that increments, but im not sure how to do this either. I would like to not use a for loop. Any suggestions?

Last edited by windell747 : 15-02-2009 at 23:04.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2009, 13:02
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Problems with using 330's goal tracking code

Sorry, I assumed you wanted an XY plot (plotting one variable against another). If you have two independent variables to plot, then use a Chart.

Bundle the two values (presumably X and Y) together and then wire to the Chart terminal.
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
Problems with tracking Shinsa Programming 2 07-02-2010 14:35
Using kevin's code for driving and camera tracking razzoc Programming 3 18-02-2007 08:50
Enabling Multiple Light Tracking Using Kevin's Code Mitch Programming 7 05-02-2007 06:17
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Problems tracking with CMUCam2 in LabVIEW PhilBot LabView and Data Acquisition 5 17-01-2006 20:42


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

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