[Elecraft] K3 Triple Macro - Got it.

2012-07-10 Thread Bill Wiehe
Nick, John, Rich, +
Proofreading closely makes all things possible. As soon as it was suggested 
that I might have a coding error, it popped right out at me. 
I had the macro label in the macro code line.
Of course the poor K3 did not know what to do with "10W" etc.
Once again, thanks all for the feedback.
W0BBI - Bill
 


Rich - K1HTV
I followed your instructions for the "K3 Triple Macro" setup but for some 
reason I cannot get it to work. The macro cycles through the power setting when 
PF2 is pressed but the actual output power level remains the same, that is it 
it only affected by adjusting the power level manually. I must be missing 
something for sure so any additional direction would be helpful.
Thanks
Bill - W0BBI
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro

2012-07-09 Thread KU4AF
Nick's suggestion is very worthwhile. Fresh eyes can often help this kind of
problem.

Yesterday I puzzled for quite a while over a pair of macros without spotting
the problem. The DOH! moment came when I finally recognized that I'd entered
(and then copied and pasted) MN11O (oh) instead of MN110 (zero). Good thing
I never tried to make a living at bit-wrangling.

John, KU4AF
Pittsboro, NC


Bill-

There are probably a lot of things that could go wrong.  When I did my 
macro toggle a couple days ago it didn't work at first and after a bit I 
realized I'd put spaces after the semicolons on the macro code - not 
allowed!

You might copy and paste your code to the list for inspection.

73-

Nick, WA5BDU


--
View this message in context: 
http://elecraft.365791.n2.nabble.com/K3-Triple-Macro-tp7558900p7558921.html
Sent from the Elecraft mailing list archive at Nabble.com.
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro

2012-07-09 Thread Nick-WA5BDU
Bill-

There are probably a lot of things that could go wrong.  When I did my 
macro toggle a couple days ago it didn't work at first and after a bit I 
realized I'd put spaces after the semicolons on the macro code - not 
allowed!

You might copy and paste your code to the list for inspection.

73-

Nick, WA5BDU



On 7/9/2012 3:43 PM, Bill Wiehe wrote:
> Rich - K1HTV
> I followed your instructions for the "K3 Triple Macro" setup but for some 
> reason I cannot get it to work. The macro cycles through the power setting 
> when PF2 is pressed but the actual output power level remains the same, that 
> is it it only affected by adjusting the power level manually. I must be 
> missing something for sure so any additional direction would be helpful.
> Thanks
> Bill - W0BBI
>
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Vic K2VCO
I believe that John von Neumann or one of the other pioneers of computing 
thought at one 
time that the possibility of self-modifying programs was a huge advance made 
possible by 
stored-program computers. The program itself could be data!

But then someone proved that anything you could do by modifying the program 
could be done 
in other ways and people decided that there were lots of downsides to 
changeable code.

On 7/9/2012 3:36 PM, Fred Jensen wrote:
> On 7/9/2012 3:10 PM, Al Lorona wrote:
>> When John KU4AF came up with the original idea on 1 July I was going to post
>> that this was one of the greatest ideas to come from the group in the past 
>> two
>> years. Very elegant. And then Rich took it to a higher level. Thanks to both 
>> of
>> you.
>
> Possibly the universe is circular in some way.  I thought self-modifying
> code disappeared around 1960 following the invention of index registers.
>Now it seems to be back. :-)  Very neat trick, John.
>
> 73,
>
> Fred K6DGW
> - Northern California Contest Club
> - CU in the 2012 Cal QSO Party 6-7 Oct 2012
> - www.cqp.org

-- 
Vic, K2VCO
Fresno CA
http://www.qsl.net/k2vco/


__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Wayne Burdick
The keying output is directly tied to the 7R (7 volts receive) line,  
so it can't be gated internally to the radio.

Wayne


On Jul 9, 2012, at 4:25 PM, Rich - K1HTV wrote:
>
> He asked me if there was a way of deactivating the keying output  
> signal used to
> turn on an external amp via a command that could be imbedded in a  
> macro.


__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Rich - K1HTV
Hi Wayne,
   My post about the Triple Power Setting Macro inspired Ed, K5EK, to write a
macro for setting up various splits (UP1, UP2, UP5). Here is Ed's code.

Macro 1 - Up 1  SWT13;SWT13;FT1;UPB4;RT0;XT0;MN110;SWT12;SWT39;SWT14;
Macro 2  - Up 2 SWT13;SWT13;FT1;UPB5;RT0;XT0;MN110;SWT13;SWT39;SWT14;
Macro 3 - Up 5  SWT13;SWT13;FT1;UPB7;RT0;XT0;MN110;SWT11;SWT39;SWT14; 

He asked me if there was a way of deactivating the keying output signal used to
turn on an external amp via a command that could be imbedded in a macro. Like
Ed, I found that there does NOT appear to be a way of disabling the keying
signal, other than having to break it with some kind of external mechanical or
electronic switch. The signal activates various relays in the amp, but when the
amp is warmed up, and only the barefoot K3 is needed, we want to be able to stop
the keying signal via the macro that sets the K3 power to 100W. When the K3 is
set to amp driving levels (10-20W, set by a macro) we would like to reactivate
the keying output signal to turn on the amp when the K3 is transmitting.  

Is there a hidden command that we folks don't know about that can be used to
accomplish the above? If not, we would appreciate it if this request would be
considered for a future software revision.

Thanks and keep up the great work at Elecraft.

73,
Rich - K1HTV

= = =

-Original Message-
From: Wayne Burdick [mailto:n...@elecraft.com] 
Sent: Monday, July 09, 2012 20:33
To: Rich - K1HTV
Cc: Elecraft Reflector
Subject: Re: K3 Triple Macro - Corrected version

Rich,

This is a very clever use of the K3's macro facility.

Here's how it works (for those who are not quite motivated enough to look up all
those commands): Each of the three switch macros sets a different power level --
that's the obvious part (PCxxx). Normally, you'd assign each of them to a
different programmable switch and leave it at that. Instead, Rich set up the
macros so that holding PF2 not only changes the power level, it then *changes*
PF2's macro assignment to the next macro in the sequence. The last macro (100 W)
"wraps" back to the first macro (10 W).

It's a little bit like self-modifying code. Wish I had thought of this myself :)

You could use the same technique to set up a single programmable switch to top
among a few favorite frequencies, or even bands, on repeated taps.

73,
Wayne
N6KR


On Jul 9, 2012, at 12:14 PM, Rich - K1HTV wrote:

>
> Macro# Label  (10W) (Macro)(6) (PF2H)  (Menu)
> 5   10W   PC010;MN110;SWT29;SWH47;SWT14;
>
>Label  (50W) (Macro)(7)   (PF2H) (Menu)
> 6   50W  PC050;MN110;SWT33;SWH47;SWT14;
>
>   Label  (100W)  (Macro)   (5)  (PF2H)(Menu)
> 7  100W  PC100;MN110;SWT27;SWH47;SWT14;

__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Wayne Burdick
The EEPROM is specified at 1,000,000 cycles, typical. I think that  
trumps the switch.

Wayne

On Jul 9, 2012, at 3:41 PM, valvetb...@netzero.com wrote:

> Wayne,
>
> I assume every time you push the switch, you write to the EEPROM.   
> What would wear out first, the switch or the EEPROM?  I assume it  
> would be the switch.
>
> Art  WB8ENE
>
> -- Original Message --
> From: Wayne Burdick 
> To: "Rich - K1HTV" 
> Cc: Elecraft Reflector 
> Subject: Re: [Elecraft] K3 Triple Macro - Corrected version
> Date: Mon, 9 Jul 2012 13:33:05 -0700
>
> Rich,
>
> This is a very clever use of the K3's macro facility.
>
> Here's how it works (for those who are not quite motivated enough to
> look up all those commands): Each of the three switch macros sets a
> different power level -- that's the obvious part (PCxxx). Normally,
> you'd assign each of them to a different programmable switch and leave
> it at that. Instead, Rich set up the macros so that holding PF2 not
> only changes the power level, it then *changes* PF2's macro assignment
> to the next macro in the sequence. The last macro (100 W) "wraps" back
> to the first macro (10 W).
>
> It's a little bit like self-modifying code. Wish I had thought of this
> myself :)
>
> You could use the same technique to set up a single programmable
> switch to top among a few favorite frequencies, or even bands, on
> repeated taps.
>
> 73,
> Wayne
> N6KR
>
>
> On Jul 9, 2012, at 12:14 PM, Rich - K1HTV wrote:
>
> >
> > Macro# Label  (10W) (Macro)(6) (PF2H)  (Menu)
> > 5   10W   PC010;MN110;SWT29;SWH47;SWT14;
> >
> >Label  (50W) (Macro)(7)   (PF2H) (Menu)
> > 6   50W  PC050;MN110;SWT33;SWH47;SWT14;
> >
> >   Label  (100W)  (Macro)   (5)  (PF2H)(Menu)
> > 7  100W  PC100;MN110;SWT27;SWH47;SWT14;
> __
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:Elecraft@mailman.qth.net
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
>
>
>
> 
> 53 Year Old Mom Looks 33
> The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried
> consumerproducts.com

__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Tony Estep
On Mon, Jul 9, 2012 at 5:36 PM, Fred Jensen  wrote:

> ...I thought self-modifying code disappeared..
>

Yeah, takes ya back to the days of LISP, doesn't it?! Perl also allows for
self-modifying code -- that's how the famous "illegal" RSA Perl script
worked. In the really old days, lots of 8080 operating system routines had
self-modifying code to save space. It was popular until the side-effects of
code maintenance, extensibility and debug-ability overwhelmed it. In this
case, it's a very neat solution with numerous uses.

Tony KT0NY


-- 
http://www.isb.edu/faculty/facultydir.aspx?ddlFaculty=352
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread valvetb...@netzero.com
Wayne,
I assume every time you push the switch, you write to the EEPROM.  What would 
wear out first, the switch or the EEPROM?  I assume it would be the switch.
Art  WB8ENE

-- Original Message --
From: Wayne Burdick 
To: "Rich - K1HTV" 
Cc: Elecraft Reflector 
Subject: Re: [Elecraft] K3 Triple Macro - Corrected version
Date: Mon, 9 Jul 2012 13:33:05 -0700

Rich,

This is a very clever use of the K3's macro facility.

Here's how it works (for those who are not quite motivated enough to  
look up all those commands): Each of the three switch macros sets a  
different power level -- that's the obvious part (PCxxx). Normally,  
you'd assign each of them to a different programmable switch and leave  
it at that. Instead, Rich set up the macros so that holding PF2 not  
only changes the power level, it then *changes* PF2's macro assignment  
to the next macro in the sequence. The last macro (100 W) "wraps" back  
to the first macro (10 W).

It's a little bit like self-modifying code. Wish I had thought of this  
myself :)

You could use the same technique to set up a single programmable  
switch to top among a few favorite frequencies, or even bands, on  
repeated taps.

73,
Wayne
N6KR


On Jul 9, 2012, at 12:14 PM, Rich - K1HTV wrote:

>
> Macro# Label  (10W) (Macro)(6) (PF2H)  (Menu)
> 5   10W   PC010;MN110;SWT29;SWH47;SWT14;
>
>Label  (50W) (Macro)(7)   (PF2H) (Menu)
> 6   50W  PC050;MN110;SWT33;SWH47;SWT14;
>
>   Label  (100W)  (Macro)   (5)  (PF2H)(Menu)
> 7  100W  PC100;MN110;SWT27;SWH47;SWT14;
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


53 Year Old Mom Looks 33
The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried
http://thirdpartyoffers.netzero.net/TGL3231/4ffb5ec087ace5ec0758bst53vuc
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Fred Jensen
On 7/9/2012 3:10 PM, Al Lorona wrote:
> When John KU4AF came up with the original idea on 1 July I was going to post
> that this was one of the greatest ideas to come from the group in the past two
> years. Very elegant. And then Rich took it to a higher level. Thanks to both 
> of
> you.

Possibly the universe is circular in some way.  I thought self-modifying 
code disappeared around 1960 following the invention of index registers. 
  Now it seems to be back. :-)  Very neat trick, John.

73,

Fred K6DGW
- Northern California Contest Club
- CU in the 2012 Cal QSO Party 6-7 Oct 2012
- www.cqp.org


__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Al Lorona
When John KU4AF came up with the original idea on 1 July I was going to post 
that this was one of the greatest ideas to come from the group in the past two 
years. Very elegant. And then Rich took it to a higher level. Thanks to both of 
you.

Now all we need is room for a few more than only 8 macros in the K3, a thought 
that John had already alluded to in his message!

 
Al  W6LX
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


[Elecraft] K3 Triple Macro

2012-07-09 Thread Bill Wiehe
Rich - K1HTV
I followed your instructions for the "K3 Triple Macro" setup but for some 
reason I cannot get it to work. The macro cycles through the power setting when 
PF2 is pressed but the actual output power level remains the same, that is it 
it only affected by adjusting the power level manually. I must be missing 
something for sure so any additional direction would be helpful.
Thanks
Bill - W0BBI
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


Re: [Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Wayne Burdick
Rich,

This is a very clever use of the K3's macro facility.

Here's how it works (for those who are not quite motivated enough to  
look up all those commands): Each of the three switch macros sets a  
different power level -- that's the obvious part (PCxxx). Normally,  
you'd assign each of them to a different programmable switch and leave  
it at that. Instead, Rich set up the macros so that holding PF2 not  
only changes the power level, it then *changes* PF2's macro assignment  
to the next macro in the sequence. The last macro (100 W) "wraps" back  
to the first macro (10 W).

It's a little bit like self-modifying code. Wish I had thought of this  
myself :)

You could use the same technique to set up a single programmable  
switch to top among a few favorite frequencies, or even bands, on  
repeated taps.

73,
Wayne
N6KR


On Jul 9, 2012, at 12:14 PM, Rich - K1HTV wrote:

>
> Macro# Label  (10W) (Macro)(6) (PF2H)  (Menu)
> 5   10W   PC010;MN110;SWT29;SWH47;SWT14;
>
>Label  (50W) (Macro)(7)   (PF2H) (Menu)
> 6   50W  PC050;MN110;SWT33;SWH47;SWT14;
>
>   Label  (100W)  (Macro)   (5)  (PF2H)(Menu)
> 7  100W  PC100;MN110;SWT27;SWH47;SWT14;
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html


[Elecraft] K3 Triple Macro - Corrected version

2012-07-09 Thread Rich - K1HTV
Thanks to VE3KI who caught a typing error in the second line of commands of the
original Triple Macro. The following is a corrected version.

73,
Rich - K1HTV

= = =

After seeing the note about creating a macro to toggle between two power levels
on the K3,  I thought I would try writing a macro for a triple toggle. With this
macro the K3 power output  can be toggled between 10W, 50W and 100W using the
PF2-HOLD key. If you prefer to TAP instead of HOLD, use one of the M1-4 keys and
change the SWH47 to the appropriate "SWTnn" number.
Refer to the K3 Macro tutorial. 

This is being written not only for the K3 users who already know how to write
macros, but for those K3 users who have never done so and want to give it a try.
So please excuse the extra steps which must be performed that you already know
how to do.

Assuming that you already have the K3 Utility installed on your computer, turn
on your K3. 
Start the K3 Utility and confirm that your K3 is communicating with your
computer.
Click the "Test Communications" tab. 
Click "Port Test Communications". If successful you will get a box indicating
so.
Click the "Command Tester/K3 Macros" tab.
Click "Edit Macro"

Use the information below to populate the "Macro Label" boxes and the Macro
Commands" boxes for the macro number that you will be using.  At K1HTV I used
the K3's 5, 6 and 7 macros for the triple power toggle.  If you use other ones,
change the SWT29, SWT33 and SWT27 to the appropriate numbers for the macro
numbers you want to use. You can type in the info below, but you will probably
find it easier to simple cut and paste the commands (the ones with the
semicolons between) from this document into the K3 Utility macro boxes being
used.

Macro# Label  (10W) (Macro)(6) (PF2H)  (Menu)
5   10W   PC010;MN110;SWT29;SWH47;SWT14;

 Label  (50W) (Macro)(7)   (PF2H) (Menu)
6   50W  PC050;MN110;SWT33;SWH47;SWT14;  

Label  (100W)  (Macro)   (5)  (PF2H)(Menu)
7  100W  PC100;MN110;SWT27;SWH47;SWT14;

After you have filled in the "Macro Label" and :Macro Commands" boxes for Macro
5 (10W), Macro 6 (50W) and Macro 7 (100W) click on "Write Macros 1-8 to K3".

Next, at the K3:
Hold the MENU key.
Rotate the VFO-B dial until "MACRO" appears.
Tap the "5" on the keypad so the screen reads "MACRO 5".
Hold the PF2 key until "PF2 SET" appears.
Tap the MENU key.
Hold the MENU key again until MACRO appears.
Tap "6" on the keypad so the screen reads "MACRO 6".
Hold the PF2 key until "PF2 SET" appears.
Tap the MENU key.
Tap "7" on the keypad so the screen reads "MACRO 7".
Hold the PF2 key until "PF2 SET" appears.
Tap the MENU key.

Test by holding the PF2 key until either 10W, 50W or 100W appears briefly on the
LCD screen.
It should toggle between the three power levels each time you HOLD the PF2 key.

*** NOTE***
When writing lines of multi-line toggling macros, make sure the number for the
macro number following the MN110; is the macro number for the following line or
the toggle feature will not work.

Hope you find this info useful.

73,
Rich - K1HTV

__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html