|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] input of Signal Source blocks |
Date: | Thu, 12 Jan 2017 15:06:01 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
Hi Marc, welcome to GNU Radio! The grey ports are "message passing" ports. You can, for example, use them with the Message Strobe block. For more info on message passing, I'd like to refer you to the guided tutorials, I think somewhere in chapter 4 or 5. I'd recommend starting at chapter 1 and going linearly through the chapters – they build atop of each other, and since you've obviously already know a lot, they should be a fun and quick read! The signal you describe is a linear chirp and you wouldn't produce it by changing the frequency of a signal source all the time. Instead, use the Phase Mod block! Go to its documentation tab. It says there: output = complex(cos(in*sensitivity), sin(in*sensitivity)) Now, to make a constant-frequency tone, we'd connect a signal source to the Phase Mod's input (hint: connect a throttle to its output, and a QT Gui time sink to that), and set that to produce a Saw Tooth of amplitude 1 with the frequency we want. (read, process, yeah: that means that when the sawtooth does one period, the output of the phase mod is one full sine/cosine). Now about the frequency: From theory, we know that frequency is simply the derivate of phase over time (right, we showed that just now practically!), ![]() ![]() So, if the frequency itself changes over time linearly, we know that ![]() From which follows that ![]() ![]() So the phase needs to be a quadratic function, not a linear one like the one we're using now! We arbitrarily demand that the starting phase should be 0, so ![]() ![]() ![]() So, how do we make phase a quadratic function of time? Very simple: just add a multiply block between the sawtooth and the phase mod. And set the phase mod's sensitivity to a value that makes sense for you (see hint above). Your flow graph might look a bit like this: ![]() A comment on your intended application: I don't understand, what are you planning to do with that chirp as soon as you have it? Best regards, Marcus On 12.01.2017 14:10, Marc Pàmies Massip
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |