How To Select Signals

7 views (last 30 days)
Islam Galal
Islam Galal on 9 Sep 2011
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

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 9 Sep 2011
Use "Multiport Switch" block from the "Signal Routing" library.
  4 Comments
Islam Galal
Islam Galal on 10 Sep 2011
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 on 15 Sep 2011
Thanks Fangjun Jiang
the Repeating Sequence Stair worked
the main problem was the sampling rate
Thanks Again
Islam Galal

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!