Touch Panel coming back online problem
fongslb
Posts: 30
Hi all,
Wondering if anyone can advise me on a problem I am encountering. Got a setup with one MVP7500 and 2 keypads in an auditorium controlling various stuff and a DMX controller to some light ramps. The TP has some level ramps. Now when the TP goes offline and online again (i.e. if I reset the router or some other network hiccup), the level ramps hit zero and all the DMX lights are cut to 0%
I basically store the current DMX light levels in a persistent array: persistent integer dmx_preset[7][12]
and I set levels in define_program using send_level as follows: send_level dvTP,1,dmx_preset[1][10] //etc.
and use event handlers to perform a ramp up/down when someone touches the ramp on the TP e.g...
LEVEL_EVENT[dvTP,1] // stage ramp
{
dmx_preset[1][10] = level.value // update variables
// send command to light channel
send_string dvLIGHTS,"'F00:',itoa(light_fadetime),'.0',$0D"
send_string dvLIGHTS,"'D010@',itoa(dmx_preset[1][10]),$0D"
send_string dvLIGHTS,"'G',$0D"
}
So my question is, what happens when the TP comes back online? It seems to be triggering a level event for all of the ramps, loading them with zero values and sending a command to the DMX. Or am I missing something in my design..or...???
Thanks all,
Brian
Wondering if anyone can advise me on a problem I am encountering. Got a setup with one MVP7500 and 2 keypads in an auditorium controlling various stuff and a DMX controller to some light ramps. The TP has some level ramps. Now when the TP goes offline and online again (i.e. if I reset the router or some other network hiccup), the level ramps hit zero and all the DMX lights are cut to 0%
I basically store the current DMX light levels in a persistent array: persistent integer dmx_preset[7][12]
and I set levels in define_program using send_level as follows: send_level dvTP,1,dmx_preset[1][10] //etc.
and use event handlers to perform a ramp up/down when someone touches the ramp on the TP e.g...
LEVEL_EVENT[dvTP,1] // stage ramp
{
dmx_preset[1][10] = level.value // update variables
// send command to light channel
send_string dvLIGHTS,"'F00:',itoa(light_fadetime),'.0',$0D"
send_string dvLIGHTS,"'D010@',itoa(dmx_preset[1][10]),$0D"
send_string dvLIGHTS,"'G',$0D"
}
So my question is, what happens when the TP comes back online? It seems to be triggering a level event for all of the ramps, loading them with zero values and sending a command to the DMX. Or am I missing something in my design..or...???
Thanks all,
Brian
0
Comments
You can also tie the levels to a virtual.
This will still trigger a level event however as the variable is the same there won't be a sudden change to the values sent to the device.
It will however become an issue if there is manual change on the device that isn't tracked at the same time inside the variable.
Paul
I agree with pdabrowski that you need to update the level in the ONLINE event, however - you need to know when to assign dmx_preset[1][10]. You obviously don't want to set it when the panel is going offline, so something above should work.
In the event a panel is taken offline (i.e. dropped WiFi, dropped on concrete, etc.) I would assume that those levels & channels are set to zero after the OFFLINE event occurs. Probably something worth testing.
It'd be interesting to throw it through the ringer and see if there's a clear advantage to one or the other by looking at CPU and / or timing.
Regards,
Brian