Home AMX User Forum NetLinx Studio

Tuner feedback on TLP1 Anthem

Hi I try to get tuner feedback on a TLP1 Anthem when I use preset channel, I tried this code
BUTTON_EVENT [dvTP_TUNER,116]
{
PUSH:
	{
	SEND_STRING dvTLP1, "'TFP',itoa(nTUNER_PRESET_BAND),itoa(nTUNER_PRESET_NUM),$0A"
	SEND_STRING	dvTLP1, "'TT?',$0A"
//	IF ( FIND_STRING (nPREAMP_BUFF,'TFT',1))
	{
	nPREAMP_TFT = REMOVE_STRING (nPREAMP_BUFF,'TFT ',1)	// REMOVE TFT CHAR TO GET REAL STATION
	nTUNER_STATION = nPREAMP_BUFF
	CLEAR_BUFFER nPREAMP_BUFF
	}		
	SEND_COMMAND dvTP_TUNER,"'@TXT',71,nTUNER_STATION"
    
	}
}


But, to get feedback, I have to click 2 times to get it.
The fisrt time, the tuner change station and second time I get the right feedback

Any cue?

Comments

  • PhreaKPhreaK Posts: 966
    Your buffer won't be populated instantly. If you seperate your tuner command and your UI update code so that the button event tells it to switch then the panel is updated on a string event from the tuner you should have a bit more luck.
Sign In or Register to comment.