[WT-support] CAT frequency read - K3

Bob Wilson, N6TV n6tv at arrl.net
Thu Nov 18 11:06:30 CET 2010


The Win-Test architecture only lets you *send* commands to the radio; you
cannot retrieve any replies that the radio may send back (because replies
are handled by a different Win-Test thread).

But to get the frequency of VFO A (1 KHz resolution), for *any* supported
radio, not just the K3, you don't have to send K3 CAT commands; all you have
to do is:

local curFreq = wtRadio:GetFreq()
local curFreqA = wtRadio:GetFreq(WT_RADIO_VFOA)
local curFreqB = wtRadio:GetFreq(WT_RADIO_VFOB)

Note that these only return frequency in even kHz, e.g. 14060 not 14060.2.

73,
Bob, N6TV

On Thu, Nov 18, 2010 at 1:54 AM, Harold Aaron <hsa at hughes.net> wrote:

> Still trying to read radio freq via CAT with no luck.  Goal is to use
> ShuttlePRO II for fine tuning in CW/RTTY.
>
> So far all but CAT read of FA works.  Not sure why cannot set curfreq to
> result of wtRadio:Send(" FA; ")
>
> Manual test works fine and sets rig frequency, no problem.
>
> --For testing manually set curfreq="14060000" and comment out next line
> curfreq = wtRadio:Send(" FA; ")
> catcmd = string.format("FA000%8d;", curfreq)
> wtRadio:Send(catcmd)
> return -1
>
> Hank WB4ROA
> _______________________________________________
> Support mailing list
> Support at win-test.com
> http://www.f5mzn.org/cgi-bin/mailman/listinfo/support
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.f5mzn.org/pipermail/support/attachments/20101118/a8900d5b/attachment-0001.htm 


More information about the Support mailing list