How To Select Signals

조회 수: 4 (최근 30일)
Islam Galal
Islam Galal 2011년 9월 9일
Hi All I'm making a frequency hopping system 10M - 110-MHZ (Simulink)
I have X Freq.s and i want to choose between them by a sequence of numbers but the main problem is how to make a variable sine wave in Simulink (Discrete) but after some time made a NCO but its max Memory is N = 25 and that limit the Max o/p Freq. and tried the VCO but No luck at this also
So i decided to make the wanted Freq.s and select between them so that i made (N Sine Waves & Variable Selector) and i select the wanted freq. by the IDX (by a constant No.) but as i monitored the o/p's of the Variable Selector all the o/p's have signals not the selected one.
So Please If any one could help me to make this system (How to choose one of many signals but from external Index as MUX but with external Selection)?
here is a demo of the system;- http://ifile.it/54l7mo3
Thanks In Advance I.G

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 9월 9일
Use "Multiport Switch" block from the "Signal Routing" library.
  댓글 수: 4
Islam Galal
Islam Galal 2011년 9월 10일
Thanks Very Much You Really Helped me
But there is another Problem Faced Me
i was using randint(1,100,78) and sampling time = 1/1600 to generate the hopping sequence (and it really working like a charm)but this is random so i generated a Gold Code sequence and i want to use it to switch the freq's but i tried many things but no luck
1- making a LUT and select the values from it but it did not work
2- making Repeating Sequence Stair but not worked as well
So Please What I Can Do
I Uploaded the File here :-
http://ifile.it/t5vbg9m
and The Sequence here :-
http://ifile.it/do4g8ty
Thanks In Advance
Islam Galal
Islam Galal 2011년 9월 15일
Thanks Fangjun Jiang
the Repeating Sequence Stair worked
the main problem was the sampling rate
Thanks Again
Islam Galal

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by