LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Switching 2D array for Avg Power Spectrum?

I have a 4 channel 2D array signal which is now indexed so that I can feed 1 channel to the Avg Power Spectrum. It would be much better to have the switching done by radio buttons instead of wired in the Block Diagram. How are the Radio Buttons positioned between a 2D array and the 1D array required by the Avg Power Spectrum?
Regards,
Raymond
0 Kudos
Message 1 of 6
(3,203 Views)
I answered your question here. Since the radio button control is just a numeric control, replace your hard coded indexing with a front panel one. Here's a picture of what I mean.
Message 2 of 6
(3,203 Views)
That is true, but I did not understand the message because of a limited NI vocabulary. With all respect, I realize the amount of time and knowledge you are contributing to this forum and therefore opted for another opinion while assuming that I was not sufficiently skilled to comprehend the Professor.

Thank you for the example. It is now clear.

Cheers,
Raymond
0 Kudos
Message 3 of 6
(3,203 Views)
No problem. When I answered your other question, I was at a computer without LabVIEW - otherwise I would have attached a picture then. At one point, we were all beginners in LabVIEW and those of us who contribute are just glad to help in any way.
0 Kudos
Message 4 of 6
(3,203 Views)
Despite spending hours on these Radio Buttons I cannot get them to work correctly. Please indulge me - I am trying.

The input is a 4 channel Transposed 2D Array therefore I wired the Buttons to the n-1 terminal. If the Transposed Signal is transposed again it does wire as per your graphic.

The problem is that the buttons work backwards. If I press #0, the signal from #3 is directed to the Avg. Power Spectrum.

I have attempted to manipulate the 1D signal in all kinds of ways except, obviously, the right way. Doing surgery on the .ctl file yielded similar results.

Looking forward to your kind word.

Raymond
0 Kudos
Message 5 of 6
(3,203 Views)
I think that in the original control that you downloaded, the buttons were labeled a,b, and c but the actual numeric value of the slider was 2,1,0 - the bottom of the slider is 0. So if you've selected the "a" button, it has a value of 2. The text labels are completely abritrary and probably should have been something completely different to avoid confusion. You can always use the probe tool, wire in a normal numeric indicator, or turn on digital display to check a slide with text labels.
0 Kudos
Message 6 of 6
(3,203 Views)