
Numeric ComPort = 9
Numeric Bauds = 1000000

Numeric Freq = 15000
Numeric Duty = 40

SendCommand

Button 1 Label Freq+
Button 2 Label Freq-

Button 4 Label Duty+
Button 5 Label Duty-

Stop

Label EventStop
	Duty = 0
	SendCommand
End

Label Freq+
	Freq = Min(Freq + 500, 25000)
	SendCommand
Return
Label Freq-
	Freq = Max(Freq - 500, 5000)
	SendCommand
Return

Label Duty+
	Duty = Min(Duty + 5, 70)
	SendCommand
Return
Label Duty-
	Duty = Max(Duty - 5, 0)
	SendCommand
Return

Label SendCommand
	COM Open ComPort Bauds
	COM WriteString "OPTIONS " + Freq + " " + Duty + CRLF
	COM Close
	Print Freq + " " + Duty
Return


'BOOKMARKS 

'EDITEDLINES 4 10 9 10 15 10 20 10 26 10 31 10 

'WATCH v1
'EXEC DestX = 12
