How can i change to AM/FM demodulator mode via hotkey?  

  RSS

Moderator
(@moderator)
Member Admin
Joined: 10 years ago
Posts: 1048
20/07/2010 11:14 pm  

Hi, Thanks for forum support.

I try to change the code of my Spectran (6065-V4) button , but it's not easy, it's hard for me...
Example: I changed the original hotkey "1":

--------------------------------
SETUP
STARTFREQ:100 STOPFREQ:200
RESBANDW:1 VIDBANDW:1
SWEEPTIME:100 ATTENFAC:-10
REFLEVEL:10 DISPRANGE:100
PULSEMODE:0
PRINTSTR 03h, "100200"
STOP---------------------------

to this:

--------------------------------
SETUP
STARTFREQ:100 STOPFREQ:200
RESBANDW:1 VIDBANDW:1
SWEEPTIME:100 ATTENFAC:-10
REFLEVEL:10 DISPRANGE:100
PULSEMODE:0
PRINTSTR 03h, "100200"
LOADSET DEMODMODE
LOGNOT
DUP
STORESET DEMODMODE
STOP---------------------------

i was change with this, but how i can DEMOD FM ?? (now show only demod AM..)

Simply use the Demodulator Modus setup 0xBh (DEMODMODE):

0bh = Demodulator Modus
-----------------------------------
-0 = OFF
1 = AM
2 = FM

This little program will switch to AM mode:

 ldconst 1
 storeset 0bh

This program will toggle between AM and FM if you press they key:

 LOADSET DEMODMODE
 LDSHCO 01h
 SUB
 LOGNOT
 LDSHCO 01h
 ADD
 STORESET DEMODMODE
 STOP

Snip


Quote
Sile
 Sile
(@sile)
Active Member
Joined: 9 years ago
Posts: 8
21/07/2010 6:17 pm  

so i can change code of taste "1" with this code ? just ? :
'========================================================
ldconst 1
storeset 0bh
SETUP
STARTFREQ:100 STOPFREQ:200
RESBANDW:1 VIDBANDW:1
SWEEPTIME:100 ATTENFAC:-10
REFLEVEL:10 DISPRANGE:100
PULSEMODE:0
PRINTSTR 03h, "100200"
LOADSET DEMODMODE
LOGNOT
DUP
STORESET DEMODMODE
LOADSET DEMODMODE
LDSHCO 01h
SUB
LOGNOT
LDSHCO 01h
ADD
STORESET DEMODMODE
STOP

---------------------------


ReplyQuote
Moderator
(@moderator)
Member Admin
Joined: 10 years ago
Posts: 1048
21/07/2010 7:11 pm  

No thats to much. Use solution 1 or 2 i have posted.

Snip


ReplyQuote
Sile
 Sile
(@sile)
Active Member
Joined: 9 years ago
Posts: 8
22/07/2010 8:54 am  

yes, but i need use only one taste for setting Freq (Setup startfreq, stopfreq,resband ecc...) and when press 1 time switch to "spectrum", when press again switch to "FM"...and if press again swithc Spectrum again..
example same when i press onlt taste "Enter"... but taste Enter switch 3 case, but dont change DEMOD... (now have only AM preset..)

example again :
first press taste : setting freq start , freq stop, ecc ecc.. (mode: Spectrum)
second press taste : setting freq start , freq stop ecc ecc.. (mode: AM)
third press taste: setting freq start , freq stop ecc ecc.. (mode: FM)

so i can copy code for taste 1 to 9 and choose my frequency band without use another taste only for change AM/FM demod, but using same taste with multiple press for change demod mode and spectrum mode too..

Thanks


ReplyQuote
Moderator
(@moderator)
Member Admin
Joined: 10 years ago
Posts: 1048
22/07/2010 10:04 am  

Ok if thats what you want to do it should work fine :D

Snip


ReplyQuote
Share: