Home AMX User Forum NetLinx Studio

How can I set specific level value on TP?

I've a TP with volume controls with feedback, like that:

LEVEL_EVENT[dvTP1,512]
{
IF(LEVEL.VALUE = 0)
{
SEND_STRING dvELAN,"'&S86,VOL,01,00',13"
}
ELSE IF(LEVEL.VALUE = 1)
{
SEND_STRING dvELAN,"'&S86,VOL,01,02',13"
}
ELSE IF(LEVEL.VALUE = 2)
{
SEND_STRING dvELAN,"'&S86,VOL,01,04',13"
}
ELSE IF(LEVEL.VALUE = 3)
{
SEND_STRING dvELAN,"'&S86,VOL,01,06',13"
}
ELSE IF(LEVEL.VALUE = 4)
{
SEND_STRING dvELAN,"'&S86,VOL,01,08',13"
}
}

The control and feedback works well ... but when I change the zone the bargraph continue showing the "old" feedback from the previous zone. So, I need to discover one way to atualize the feedback and I don't know what command I need to use to TP ...

For example:

SEND_STRING dvELAN,"'&S86,VOL,01?',13"

And the answer was 70% of volume ... what command I need to indicate 70% on bargraph?

I'm using the same bargraphs than Graphically Sound Blue from AMX in volume page.

If anyone understand my terrible explanation, I'll be surprised hehe


Thanks!

Comments

Sign In or Register to comment.