send_command 0:1:0
Raj
Posts: 53
Hello Evry1,
I was trying to debug the program by sending command to the master 0:1:2 ("send_command 0:1:2,"'Helo',$0d") so that I can see the msg in the notification area. But the msg doesnt seems to be appearing int he notifcaiton area. All the notification options are properly set. and the msg takes place in the button event. Am I sending the proper command. Looking forward fromy ou guys. Thankq
I was trying to debug the program by sending command to the master 0:1:2 ("send_command 0:1:2,"'Helo',$0d") so that I can see the msg in the notification area. But the msg doesnt seems to be appearing int he notifcaiton area. All the notification options are properly set. and the msg takes place in the button event. Am I sending the proper command. Looking forward fromy ou guys. Thankq
0
Comments
Thanx for replying. But I have seen programmers doing it for debug by sending stringss to master.
It was int he diagnostic window and moreover I was supposed to send send_string isntead of send command.
THankyou Harold and yuri once again.
I would like to know how I can send data to another master from one master.
(dvMasterA)
1) Have set URL listing on the main master (Master A)
2) send_command 0:1:2,"'113',$0d"
(dvMasterB)
1) Data_event[dvMasterB]
{
command:
{
"parse string"
switch()
{
case 116:
{
//
}
}
}
}
Would this work.
I'm not able to convert ascci to float and display it on the tp.. this was done when the data_event was a string... but now I'm using command. does it have anything to do with it. code shown below
data_event[vdvMatrixAudio1]
{
command:
{
STACK_VAR CHAR sTempVar[50]
STACK_VAR FLOAT fPresetVal
//Cheking for XCH-99.7
WHILE(FIND_STRING(data.text,'XCH',1))
{
send_string 0:1:2,"'Test Radio -',data.text,$0d"
TunerBuffer = data.text
fFreq = atoi(TunerBuffer)
sTempVar=REMOVE_STRING(data.text,'XCH',1)
//sTempVar = XCH-
//data.text = 99.7
// fPresetVal = atof(TunerBuffer)
send_string 0:1:2,"'Test Radio(After Parssing)',fFreq,$0d"
send_command dvTP_Drawing_AMFM,"'^TXT-9,0,',fFreq"
}
}
}
data.text is giving the proper string as "XCH-99.7".
The value it gives me after converting is $FF.
Y is it giving me like this