Macro save current state of setting

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Macro save current state of setting

Joe DeVincentis
Is there a way to have the K3 save a setting in a macro to restore for later use?  I got this idea after seeing Wayne’s post about the new Delay command.

I want this for a K-Pod button to do a quick squirt of RF for the auto-tuner.  The tuner senses the RF and then goes to a preset.  So I’d like the button to do the following.  

  Save the current Tune Power Setting
  Change the Tune Power Setting to 10w
  Delay 10ms
  Initiate Tune
  Delay 100ms
  Stop Tune
  Reset the Tune Power Setting to the previous setting

Thanks,

Joe
KO8V
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Macro save current state of setting

Don Wilhelm
Joe,

Your problem is that Macros cannot read anything and save it.  They can
only initiate things.  Setting the power to 10 watts and initiating a
TUNE is quite possible (and even spelled out in the Macro examples in
the K3 Programmer's Reference), but getting the power back to wherever
it was previously set is the difficult part.  you could restore the
power to some predetermined level - say 100 watts.

73,
Don W3FPR

On 5/16/2017 8:25 AM, Joe DeVincentis wrote:

> Is there a way to have the K3 save a setting in a macro to restore for later use?  I got this idea after seeing Wayne’s post about the new Delay command.
>
> I want this for a K-Pod button to do a quick squirt of RF for the auto-tuner.  The tuner senses the RF and then goes to a preset.  So I’d like the button to do the following.
>
>    Save the current Tune Power Setting
>    Change the Tune Power Setting to 10w
>    Delay 10ms
>    Initiate Tune
>    Delay 100ms
>    Stop Tune
>    Reset the Tune Power Setting to the previous setting
>
> Thanks,
>
> Joe
> KO8V
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:[hidden email]
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
> Message delivered to [hidden email]
>
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Macro save current state of setting

Joe DeVincentis
I figured that - I was hoping for some magic :-)  Maybe Elecraft can implement a push/pop stack feature.  For example:

PUSH TUN - save tune power
PUSH AG - save audio gain - just for grins - it’s an example
TUN 10
AG 0
SWH 16 - initiate TUNE
DE 10 - wait 100ms
SWH 16 stop tune
POP AG - restore tune
POP TUN - restore tune power.

That’s the dream.  I know I’d like it.

73,
Joe KO8V

> On May 16, 2017, at 8:34 AM, Don Wilhelm <[hidden email]> wrote:
>
> Joe,
>
> Your problem is that Macros cannot read anything and save it.  They can only initiate things.  Setting the power to 10 watts and initiating a TUNE is quite possible (and even spelled out in the Macro examples in the K3 Programmer's Reference), but getting the power back to wherever it was previously set is the difficult part.  you could restore the power to some predetermined level - say 100 watts.
>
> 73,
> Don W3FPR
>

______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]