Return-Path: Received: (qmail 28924 invoked from network); 9 Jan 2002 11:09:15 -0000 Received: from unknown (HELO murphys-inbound.services.quay.plus.net) (212.159.14.225) by excalibur-qfe1-smtp-plusnet.harl.plus.net with SMTP; 9 Jan 2002 11:09:15 -0000 Content-Transfer-Encoding: 8bit Received: (qmail 19773 invoked from network); 9 Jan 2002 11:09:15 -0000 X-Priority: 3 X-MSMail-Priority: Normal Received: from unknown (HELO post.thorcom.com) (212.172.148.70) by murphys.services.quay.plus.net with SMTP; 9 Jan 2002 11:09:15 -0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Received: from majordom by post.thorcom.com with local (Exim 3.33 #2) id 16OGVS-00023W-00 for rsgb_lf_group-outgoing@blacksheep.org; Wed, 09 Jan 2002 11:02:54 +0000 Received: from bob.dera.gov.uk ([192.5.29.90]) by post.thorcom.com with esmtp (Exim 3.33 #2) id 16OGVQ-00023R-00 for rsgb_lf_group@blacksheep.org; Wed, 09 Jan 2002 11:02:52 +0000 Received: by bob.dera.gov.uk; (8.8.8/1.3/10May95) id LAA07391; Wed, 9 Jan 2002 11:11:40 GMT Received: (qmail 30000 invoked from network); 9 Jan 2002 11:51:17 -0000 Received: from gauntlet.mail.dstl.gov.uk (192.168.9.10) by baton.dstl.gov.uk with SMTP; 9 Jan 2002 11:51:17 -0000 Received: by gauntlet.mail.dstl.gov.uk; id LAA13958; Wed, 9 Jan 2002 11:21:21 GMT Received: from unknown(172.17.128.171) by gauntlet.mail.dstl.gov.uk via smap (3.2) id xma013912; Wed, 9 Jan 02 11:21:08 GMT Received: from FRN-MAIL-R3.dstl.gov.uk (unverified) by mailguard.dstl.gov.uk (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Wed, 9 Jan 2002 11:08:09 +0000 Received: by frn-mail-r3.dstl.gov.uk with Internet Mail Service (5.5.2650.21) id ; Wed, 9 Jan 2002 11:01:54 -0000 Message-ID: <7D653C9C42F5D411A27C00508BF8803DCB9940@pdw-mail-r1.dstl.gov.uk> From: "Talbot Andrew" To: rsgb_lf_group@blacksheep.org Subject: LF: RE: Phase meter? Date: Wed, 9 Jan 2002 11:01:47 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset=iso-8859-1; format=flowed Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group Sender: >- >From: boffin1 [mailto:boffin1@compuserve.com] >Subject: LF: Phase meter? >I have belatedly seen your queery about phase. In the abstract their is >no answer to your question for phase reqires a reference i.e the phase of >something relative to ....??? (i.e another part of the wave). In the >limit the phase must always close; Nature abhors odd bits of phase >73, Roger, G2AJV. ------------------------------------ The original question, I believe, was for software that would show the phase of received signal / audio tone based on an internally generated reference. This would obviously have to be at a specified frequency, but could easily be generated by software using a Numerically Controlled Oscillator (a DDS in software). The procedure is to generate COS and SIN waveforms at the specified frequency, which are jusst two sinewaves in software 90 degrees apart. Multiplying each of these by the incoming signal gives two products, I and Q components respectively, these are usually then passed through a (software) low pass filter. When displayed on a graph such that the I compont is on the horizontal axis and the Q component on the vertical a good representation of the signal in vector space is seen. Such a display is usually called a Vectorscope. A clean tone with no noise appears as a dot on the screen, whose distance from the origin is the amplitude. A frequency error between the tone and internal reference causes the dot to rotate around a circle at the difference frequency - anticlockwise for a frequency too low and clockwise for too high. So this is a very good way of measuring exact frequency. Noise appears as a amorphous circle around the dot. The instantaneous phase (relative to the internal reference, Roger) of a signal can be determined immediately just by its position on the vectorscope Soundcards are usually too unstable for this - their internal clock sources are notoriously drifty and innacurate. However, for those who understand Windoze programming (All Hail !) it is quite a simple piece of software to write. It needs a user defined NCO which can be tuned in very fine steps - 0.01 Hz error only takes 100 seconds to complete a whole revolution. Amplitude needs to be controlled - you can have a log/dB display of amplitude versus radius. An alternative would be to use the left channel as the signal input and the right as a user supplied reference tone. This would not have the versatility of an NCO appraoch, but could ensure absolute freqeuncy stability of the display. A more advanced and better solution would be to use a reference input tone to continuously determine the Soundcard sampling rate, then use this calculated figure in setting the NCO. I use the 56002EVM module with its clock locked to a freqeuncy standard to do the downconversion of a signal sampled at 8kHz. The NCO is set in steps of 8000 / 2^24 Hz. The zero frequency I/Q samples are filtered and decimated (reduced in sampling rate) to values of 800 right down to 1.95 samples per second. These are output to a PC via a serial link for further processing. This basic tuning / decimation / filtering routine for the EVM forms the workhorse of just about everything I do in the DSP line these days, splitting the processing between two boxes really makes for easy writing of software using a 66 MHz 486 running in a DOS environment ! -- The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.