Notifications
Clear all

Compiled code changes and does not work  

  RSS

Moderator
(@moderator)
Member Admin
Joined: 11 years ago
Posts: 1048
21/07/2011 11:45 pm  

Hi i want to define 2 hotkeys, one to measure m-field and to e-field in 60Hz. I'm using the following code:
// to m-field
SETUP
RESBANDW:13 SWEEPTIME:1300
ATTENFAC:40
SETUP
PULSEMODE:0 DEMODMODE:0
SPECPROC:0
10:0 13:2 14:0
LDCONST 0.045
STORESET STARTFREQ
LDCONST 0.065
STORESET STOPFREQ
PRINTSTR 03h, "CM"
STOP

After i compile the code and write ito the unit the code the same code turns to:
SETUP
RESBANDW:13 SWEEPTIME:1300
ATTENFAC:40
SETUP
PULSEMODE:0 DEMODMODE:0
SPECPROC:0 13:0
14:2
NOP
LDCONST 0.045
STORESET STARTFREQ
LDCONST 0.065
STORESET STOPFREQ
PRINTSTR 03h, "CM"
STOP

and does not work! Am I using the right code? Can i use this same code to eletric field, just changin

Simply remove the useless 10:0 and it works...

Snip


Quote
Share: