取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 6 条)
3,243 次查看
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.
2 条消息(共 6 条)
3,243 次查看
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 项奖励
3 条消息(共 6 条)
3,243 次查看
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 项奖励
4 条消息(共 6 条)
3,243 次查看
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 项奖励
5 条消息(共 6 条)
3,243 次查看
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 项奖励
6 条消息(共 6 条)
3,243 次查看