Compiled code changes and does not work

Hilfe und Informationen zur Firmware der SPECTRAN NF- Serie
Firmware related help and information for the SPECTRAN NF- series

Compiled code changes and does not work

Postby Moderator » Thursday 21. July 2011, 21:45

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...
Moderator
 
Posts: 1036
Joined: Tuesday 20. April 2010, 13:24
Location: Aaronia AG

Return to NF

Who is online

Users browsing this forum: No registered users and 2 guests

cron