Your Universal Remote Control Center
RemoteCentral.com
Crestron Control Systems Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 1 made on Monday February 6, 2012 at 07:39
mundackal
Lurking Member
Joined:
Posts:
November 2009
5
Hi,
Can the ChangeRx fucntion can work on two strings coming in,

a typical example is like this, I am sending a command say for example A, the response i am getting are say B and C, i compare B and C on changeRx function with If statement, after sometime i am sending a command D whose response are E and F, will i be able to process this on the same changerx function.?

The flow is like this

Change OpRx_$
{
if(mid(OpRx_$,1,4) = B))
{
do something1;
}
else if (mid(OpRx_$,1,5) = C))
{
do something2;
}

if(mid(OpRx_$,1,4) = E))
{
do something3;
}
else if (mid(OpRx_$,1,5) = F))
{
do something4;
}


}
}




}

Push Poll
{
makestring(OpRx_$,"%s",A);
delay(Time);
makestring(OpRx_$,"%s",D);
}


will this kind of a function work, or is there a way i can make it work, this function is not woking for me as after the delay when the second make string is send again the first comparison only will happen on the chagerx$

Any solutions

Mahesh


Hosting Services by ipHouse