LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array subset output malfunction

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?

0 Kudos
Message 11 of 37
(1,325 Views)

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.

 

0 Kudos
Message 12 of 37
(1,317 Views)

How do I change the the exit tunnel in the loop to include all of these? 

0 Kudos
Message 13 of 37
(1,314 Views)

@northwood wrote:

How do I change the the exit tunnel in the loop to include all of these



these what?

0 Kudos
Message 14 of 37
(1,305 Views)

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?

0 Kudos
Message 15 of 37
(1,300 Views)

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".

0 Kudos
Message 16 of 37
(1,298 Views)

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..

0 Kudos
Message 17 of 37
(1,294 Views)

@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) 

0 Kudos
Message 18 of 37
(1,293 Views)

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?

0 Kudos
Message 19 of 37
(1,292 Views)

@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. 

0 Kudos
Message 20 of 37
(1,291 Views)