Stereo coded signal with Rigol DG1022 - Page 1
Forum section: electronics / testgear

author: teemum
author_rank: Newbie
timestamp: April 23, 2017, 05:25:13 pm
content: I would need to test some stereo FM tuners and to do that I would need a stereo coded-test signal. It would be enough to have a non-modulated test signal generated, I can then feed this to my RF-signal generator EXT-modulation input.I have a Rigol DG1022 function generator and I was wondering if I could generate a test signal with this. Does anyone have any ideas if I could use this somehow to generate a stereo coded test signal?

author: DimitriP
author_rank: Super Contributor
timestamp: April 23, 2017, 06:51:10 pm
content: A "non'modulated " stereo signal is pretty boring.There is 19KHz to turn on the FM stereo pilot LED on and maybe soem residual 38KHz artifacts (that you really don't want there i the first place).Things get much more nteresting WITH a modulated signalBack to your original question the short answer is "not sure" ifyoucan do itIt should be possible if you know how to tell the Generator to do it.Take a look at this application note from Tektronix although it doens't go into FM stereo, it's not competetly useless:http://www.tek.com/document/application-note/arbitrary-function-generator-offers-versatile-and-convenient-solution-am-fFor hobby use it's way more fun to have an actual FM Stereo generator

author: teemum
author_rank: Newbie
timestamp: April 23, 2017, 06:55:51 pm
content: What I ment by "non-modulated" was that the test signal doesn't need to be FM-modulated. Of course the 38kHz stereo signal have to be modulated.

author: DimitriP
author_rank: Super Contributor
timestamp: April 23, 2017, 07:12:59 pm
content: To test the "stereo" part of an FM tuner you'll need a stereo signal and you either feed it directly into the tuner's FM stereo decoder (as if it was received and demodulated from the FM carrier) oryou modulate with it an FM oscillator and the tuner received is if it was a radio station over the air.Not sure which you are trying to do.While you are finding out how to tell the generator to produce the waveform, getting on of those Sig lighter FM transmitter thingies used in cars to play iPods over the radio might be a simpler and faster solution.

author: DimitriP
author_rank: Super Contributor
timestamp: April 23, 2017, 07:17:17 pm
content: According to these guys:https://www.ap.com/technical-library/testing-rds-with-apx/Quote

author: teemum
author_rank: Newbie
timestamp: April 23, 2017, 08:37:30 pm
content: Adding RDS to the signal might be a big work, but I don't need it. I can import excel files to the Rigol Ultrawave-software, so maybe I could create something. The DG-1022 can handle only 4096 points of data in the waveform, but maybe this is sufficient if keep the signal simple.For example if I create signal where there is 1kHz for left channel and 2kHz for right channel. I think it is enough if this 4096 point data has one cycle of 1kHz signal and 2 cycles of 2kHz signal. The modulated stereo signal would be on bandwidth between 23kHz and 56kHz. So I would need 56 cycles for this 56kHz signal. I guess this 4096 points of data is more than sufficient for this (73 samples per cycle).The math would be something like this. All signals defined between -1 .. 1.L(t) = 1kHz signalR(t) = 2kHz signalP(t) = 19kHz pilot signalM(t) = 38kHz carrierThe final signal would be L(t)+R(t)+0.1*P(t)+X*(L(t)-R(t))*M(t).Could this work? The only thing I don't know is the constant X.

author: DimitriP
author_rank: Super Contributor
timestamp: April 23, 2017, 09:18:57 pm
content: To see something meaninful on a scope you only need one chanell (left or right) other wise you end up with a nice jumbled up waveform on the scope.As for the 38Khz carrier, it's supposed to be modulated by the difference of the two chanels, and supressed , so only the sidebands are transmitted.Your formula doesn't have enough cos symbols in itTake a look on page 8 here :https://www.silabs.com/Marcom%20Documents/Resources/FMTutorial.pdf

author: TurboTom
author_rank: Super Contributor
timestamp: April 23, 2017, 11:00:49 pm
content: @teemum:If you basically need a test signal, why don't you just look at one of the mp3 FM modulators that are available to listen to mp3's on SD cards or straight stereo line in signals on older car radios? You will find many such gadgets for little money on eBay. RF quality may vary but usually stereo modulation is quite good.Cheers,Tom

author: Co6aka
author_rank: Unknown
timestamp: April 25, 2017, 02:13:55 pm
content: For ideas, have a look at this:https://github.com/jontio/JMPX

author: teemum
author_rank: Newbie
timestamp: May 13, 2017, 02:55:44 pm
content: I managed to create some waveforms with Rigol Ultrawave. Thanks DimitriP for the good document, I got the necessary information from it.I have attached the Ultrawave waveforms. One is sending 1kHz to Left channel and one 1kHz to right channel. The 19kHz pilot signal is also included.Of course the DG1022 will generate only audio frequency signal. You have to then feed the signal from Rigol output to the FM modulator / signal generator.For the left channel the waveform is like 0.45*sin(1kHz)+0.1*sin(19kHz)+0.45*sin(38kHz)*sin(1kHz)And for the right channel it is like 0.45*sin(1kHz)+0.1*sin(19kHz)-0.45*sin(38kHz)*sin(1kHz)

author: DimitriP
author_rank: Super Contributor
timestamp: May 13, 2017, 07:12:42 pm
content: If you manage to come up with L-R and feed it to a scope it will look pretty interesting.

author: teemum
author_rank: Newbie
timestamp: May 14, 2017, 10:42:46 am
content: The signal looked in the scope same as it was in Ultrawave-software.I feed the signal from DG1022 to HP8656B signal generator EXT-modulation input and used it to FM-modulate 100Mhz carrier with 75kHz deviation. Then I feed this signal to stereo FM tuner and both tuner audio outputs were connected to two scope channels. With those signals I attached to my previous post, with another one I saw 1kHz signal in one channel and with another signal 1kHz in another scope channel.