• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Need some help in this code, can anyone help me?

Joined
May 8, 2010
Messages
5 (0.00/day)
Hi everybody,

Does anybody know why my program doesn't go through my frequencies ? i use the tlsa tool to write and compile it. what about tunefav and setfav? any help will be appreciated.
thank you! this is parallel and concurrent programming.

here is the code:

const N = 95
range T = 88 .. N

RADIO = OFF,
OFF = (on-> ON),
ON = (off->OFF |
reset -> TOP |
scan -> SCANNING),
//tunefav -> TUNEFAV|
//setfav -> SETFAV),
BOTTOM = (off -> OFF | scan -> SCANNING),
TOP = (off -> OFF | scan -> SCANNING),
SCANNING = SCANNING [N],
SCANNING [i:88 .. N]= (when (i<N)read[u:T] -> SCANNING [i+1]| lock -> LOCKED | end -> BOTTOM | reset -> TOP),
LOCKED = (off -> OFF | scan -> SCANNING | reset -> TOP).

menu RADIO = {on, off, scan, reset, lock}
 
Back
Top