DEV array with simple feedback.
cmatkin
Posts: 86
Hi all,
I am looking at combining devices useing the DEV method.
My simple program below does not update the feedback on one of the panels. does any one see a problem.
Regards
Craig
PROGRAM_NAME='test'
DEFINE_DEVICE
dvWifiPanel1 = 10001:1:6 // Wireless Panel 1 (MVP-8400) (Office)
dvWifiPanel2 = 10002:1:6 // Wireless Panel 2 (MVP-8400) (VC Room)
bOfficeLightsFull = 36
bOfficeLightsPresentation = 35
bOfficeLightsConference = 34
bOfficeLightsOff = 33
DEFINE_VARIABLE
DEV vdvWifiPanels[] = {dvWifiPanel1,dvWifiPanel2}
DEFINE_MUTUALLY_EXCLUSIVE
([vdvWifiPanels,bOfficeLightsFull],[vdvWifiPanels,bOfficeLightsConference],[vdvWifiPanels,bOfficeLightsPresentation],[vdvWifiPanels,bOfficeLightsOff])
DEFINE_START
WAIT 450
{
ON[vdvWifiPanels,bOfficeLightsFull]
}
DEFINE_EVENT
BUTTON_EVENT[vdvWifiPanels,bOfficeLightsFull]
{
PUSH:
{
ON[vdvWifiPanels,bOfficeLightsFull]
}
}
BUTTON_EVENT[vdvWifiPanels,bOfficeLightsPresentation]
{
PUSH:
{
ON[vdvWifiPanels,bOfficeLightsPresentation]
}
}
BUTTON_EVENT[vdvWifiPanels,bOfficeLightsConference]
{
PUSH:
{
ON[vdvWifiPanels,bOfficeLightsConference]
}
}
BUTTON_EVENT[vdvWifiPanels,bOfficeLightsOff]
{
PUSH:
{
ON[vdvWifiPanels,bOfficeLightsOff]
}
}
I am looking at combining devices useing the DEV method.
My simple program below does not update the feedback on one of the panels. does any one see a problem.
Regards
Craig
PROGRAM_NAME='test'
DEFINE_DEVICE
dvWifiPanel1 = 10001:1:6 // Wireless Panel 1 (MVP-8400) (Office)
dvWifiPanel2 = 10002:1:6 // Wireless Panel 2 (MVP-8400) (VC Room)
bOfficeLightsFull = 36
bOfficeLightsPresentation = 35
bOfficeLightsConference = 34
bOfficeLightsOff = 33
DEFINE_VARIABLE
DEV vdvWifiPanels[] = {dvWifiPanel1,dvWifiPanel2}
DEFINE_MUTUALLY_EXCLUSIVE
([vdvWifiPanels,bOfficeLightsFull],[vdvWifiPanels,bOfficeLightsConference],[vdvWifiPanels,bOfficeLightsPresentation],[vdvWifiPanels,bOfficeLightsOff])
DEFINE_START
WAIT 450
{
ON[vdvWifiPanels,bOfficeLightsFull]
}
DEFINE_EVENT
BUTTON_EVENT[vdvWifiPanels,bOfficeLightsFull]
{
PUSH:
{
ON[vdvWifiPanels,bOfficeLightsFull]
}
}
BUTTON_EVENT[vdvWifiPanels,bOfficeLightsPresentation]
{
PUSH:
{
ON[vdvWifiPanels,bOfficeLightsPresentation]
}
}
BUTTON_EVENT[vdvWifiPanels,bOfficeLightsConference]
{
PUSH:
{
ON[vdvWifiPanels,bOfficeLightsConference]
}
}
BUTTON_EVENT[vdvWifiPanels,bOfficeLightsOff]
{
PUSH:
{
ON[vdvWifiPanels,bOfficeLightsOff]
}
}
0
Comments
If you want to go the mutually exclusive route you will need to do something like this instead:
And this:
Is better off in the DATA_EVENT:
HTH
Power off all satellite boxes:
Or just power off a couple of them:
You send send their settings too under one DATA_EVENT:
If you put your panels in a loop, you can have them updated individually or as icragie has done, update them all at once.
I understand now.
Regards
Craig