|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: Problems with using 330's goal tracking code
Quote:
|
|
#2
|
|||
|
|||
|
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! |
|
#3
|
|||
|
|||
|
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-axis
0.003,I0.5. y-axis: P0.015,I0.70. derivative terms 0. max x=0.45,max y=0.7I'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! |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |