Notifications
Clear all

How to program a higher frequency resolution

2 Posts
2 Users
0 Likes
6,697 Views
(@slebihan)
New Member
Joined: 13 years ago
Posts: 3
Topic starter  

We are trying to configure a SETUP based on delivered ones :

 SETUP
    STARTFREQ:905 STOPFREQ:905
    RESBANDW:3 VIDBANDW:3
    SWEEPTIME:10 ATTENFAC:0
    REFLEVEL:-20 DISPRANGE:100
    PULSEMODE:1
PRINTSTR 03h, "SETUP1"
 STOP

We haven't found yet how to :
- configure a span of 0.2Mhz
- have Hold mode OFF
- have Peak mode ON
- have Spectrum display mode ON

Concerning span, I tried to use SPANFREQ parameter, found in Spectran API Documentation, in SETUP, but when I compile it writes : "Z 3 S 14: Error "

 SETUP
    STARTFREQ:905 STOPFREQ:905
    SPANFREQ:1
    RESBANDW:3 VIDBANDW:3
    SWEEPTIME:10 ATTENFAC:0
    REFLEVEL:-20 DISPRANGE:100
    PULSEMODE:1
PRINTSTR 03h, "PIC 2G"
 STOP

Could you help me ?
Thanks in advance.


   
Quote
(@moderator)
Noble Member Admin
Joined: 14 years ago
Posts: 1044
 

Some of those names have changed so better use the hex values.
To set a frequency range with more then 4 digits you need to use a little trick, because the frequency values are limited to 9999 (4 digits).
All you have to do is to set your center frequency (e.g. 905MHz) and then set the span (e.g. 0,2MHz) then it works fine. In your case use:

 LDCONST 905
 STORESET 01Eh
 LDCONST 0.200
 STORESET 01Fh

With this trick you can set frequency values with up to 8 digits accuracy e.g. this one will offer you a frequency range from 1900,001MHz to 1900,002MHz:

 LDCONST 1900
 STORESET 01Eh
 LDCONST 0.002
 STORESET 01Fh

All other parameters are found in the API or simply have a look at the hotkey programing of your unit

Snip


   
ReplyQuote
Share: