For new style RadioTrack cards only.

This function checks if the new-style RadioTrack card is tuned to a station. It can be used to check for a valid station when doing station scans. The format of the function is:

return_data = RT2Tuned( rt_address, delay1 )

The rt_address is the decimal value of the card's I/O location 780 (30C hex) or 524 (20C hex).

The delay1 deals with getting the tuned status from the radio card. Depending on your system and/or program language used, this value may be variable. Use delay1 = 250 to try for starters. The units of the delay is in milliseconds and it may not be less than 1 or greater than 1000. The same rules for this delay applies as the RTDelay function of this library.

Note: If RT2Tuned is not working reliably in your Vispro/REXX program even if a station is playing properly, then issue a return_data = RTDelay( 250 ) before calling RT2Tuned. We have found that this will make RT2Tuned work every time. The source of this problem may be in the multithreading of Vispro/REXX code, but we were not able to pinpoint it exactly. Classical REXX programs do not reflect this problem. If you have any insight into this problem, let us know.

return_data returns the following values:

0 No station tuned.
1 Station tuned.
10 TESTCFG.SYS could not be opened.
11 Invalid time delay range.
28 Error reading radio card.