05-01-2012 08:42 AM
Alright, so my graph settings are wrong. Using 10 iterations with a length of 36 and the RMS averaging on FRF set to 10 I can get something, granted not very good resolution. Can one of you guys help me out with the sub array block, explain it better for me? I would like 20 rows of 5000 data points to be rms averaged. I think I need the loop iterations set at 20+ and the length set at 5000.
BUT! My inputting array is only 853, so how can I make this bigger?
05-01-2012 09:25 AM
You cannot get 5000 points from an array of 853 elements (obviously).
If you want 20 iterations of 5000 points, then you need to work with 100,000 elements.
Next is what you are now doing with the output of the FOR loop. The exit tunnel is set to last value.
That means that all your previous iterations (ie, if set to 20, it drops the previous 19) are gone. Only the last iteration makes it to your Phase & Magnitude FRF. That explains why they do not look like your other graphs.
05-01-2012 09:30 AM
How do I change the the exit tunnel in the loop to include all of these?
05-01-2012 09:49 AM
@northwood wrote:
How do I change the the exit tunnel in the loop to include all of these?
these what?
05-01-2012 10:15 AM
Altenbach, "Previous iterations", I tried right clicking all over, trying to find tunnel parameters. I got nothing. So how do I get the exit of the loop coming out of the FRF to include all the iterations it did instead of just one?
05-01-2012 10:20 AM - edited 05-01-2012 10:20 AM
According the the diagram comment, you "Right Clicked on nodes to Remove Indexing". Why?
In order to find "tunnel parameters", you should right-click on the tunnel, and not "all over".
05-01-2012 10:25 AM
I'm looking at your code and thinking about this...
I'm too rusty to understand what you are trying to do with the FRF (FOR loop).
How many points are you expecting out of this loop? I tried something and I only get about 1/2 the points that goes into the loop. For instance, if there are 898 points in the input signal, I only get 449 points leaving the FOR Loop. What I attempted was to concatenate the magnitude and phase signals...
------------------
Ooops sorry had to get into a phone conversation.. Now I lost my train of thought.. Better post what I started writing ~ 30 min ago..
05-01-2012 10:26 AM
@altenbach wrote:
According the the diagram comment, you "Right Clicked on nodes to Remove Indexing". Why?
In order to find "tunnel parameters", you should right-click on the tunnel, and not "all over".
Honestly, I removed indexing because otherwise my input and output to the loop won't work.
I imagine the tunnel being where the "wire" comes in and out of the loop. If I right click that I get:
-Enable Indexing (Indexing is off because otherwise my I/O's do not work) What does this mean?
-Replace with Shift Register (Not sure what this does)
-Numeric Pallette (I don't think I need anything out of here)
-Create (I don't need to create anything there)
-Properties (Doesn't give me much)
05-01-2012 10:27 AM
Ah yes... thanks ALtenback... I remember..
The problem is thjat if you simply enable indexing, you get an array of clusters. You then need to figure out what to do with the array of clusters.
As Altenbach asked, what should be the output of the FOR Loop? What are you expecting?
05-01-2012 10:31 AM
@Ray.R wrote:
I'm looking at your code and thinking about this...
I'm too rusty to understand what you are trying to do with the FRF (FOR loop).
How many points are you expecting out of this loop? I am not entirely sure. Getting half the points makes sense. The FRF should ensemble average on its own. Because I turned on RMS averaging. It should take all rows of the array and average them. Then output that average to magnitude and phase.
I tried something and I only get about 1/2 the points that goes into the loop. For instance, if there are 898 points in the input signal, I only get 449 points leaving the FOR Loop. What I attempted was to concatenate the magnitude and phase signals...
------------------
Ooops sorry had to get into a phone conversation.. Now I lost my train of thought.. Better post what I started writing ~ 30 min ago..
I find this rather odd, because when I use Matlab to make the Bode plot I can't really get them to match.