Sending Levels from a Master to a Master higher than 8.
cmatkin
Posts: 86
Hello all.
I have two masters and wish to send levels between masters. From system 2 I can send levels up to level 8, but level 9 and above do not work. I have attached a sample program.
Is there a work around?
SYSTEM 1:
DEFINE_DEVICE
vdvCOMMs = 33001:1:0
DEFINE_VARIABLE
VOLATILE INTEGER nMYVALUE1
VOLATILE INTEGER nMYVALUE2
DEFINE_EVENT
LEVEL_EVENT [vdvCOMMs,1]
{
nMYVALUE1=LEVEL.VALUE
}
LEVEL_EVENT [vdvCOMMs,10]
{
nMYVALUE2=LEVEL.VALUE
}
SYSTEM 2
DEFINE_DEVICE
dvTP=10001:1:2
vdvCOMMs = 33001:1:1
DEFINE_VARIABLE
VOLATILE INTEGER nMYVALUE1
VOLATILE INTEGER nMYVALUE2
DEFINE_EVENT
BUTTON_EVENT[dvTP,1]
{
PUSH:
{
nMYVALUE1= nMYVALUE1+1
SEND_LEVEL vdvCOMMs,1, nMYVALUE1
}
}
BUTTON_EVENT[dvTP,2]
{
PUSH:
{
nMYVALUE2= nMYVALUE2+1
SEND_LEVEL vdvCOMMs,10, nMYVALUE2
}
}
I have two masters and wish to send levels between masters. From system 2 I can send levels up to level 8, but level 9 and above do not work. I have attached a sample program.
Is there a work around?
SYSTEM 1:
DEFINE_DEVICE
vdvCOMMs = 33001:1:0
DEFINE_VARIABLE
VOLATILE INTEGER nMYVALUE1
VOLATILE INTEGER nMYVALUE2
DEFINE_EVENT
LEVEL_EVENT [vdvCOMMs,1]
{
nMYVALUE1=LEVEL.VALUE
}
LEVEL_EVENT [vdvCOMMs,10]
{
nMYVALUE2=LEVEL.VALUE
}
SYSTEM 2
DEFINE_DEVICE
dvTP=10001:1:2
vdvCOMMs = 33001:1:1
DEFINE_VARIABLE
VOLATILE INTEGER nMYVALUE1
VOLATILE INTEGER nMYVALUE2
DEFINE_EVENT
BUTTON_EVENT[dvTP,1]
{
PUSH:
{
nMYVALUE1= nMYVALUE1+1
SEND_LEVEL vdvCOMMs,1, nMYVALUE1
}
}
BUTTON_EVENT[dvTP,2]
{
PUSH:
{
nMYVALUE2= nMYVALUE2+1
SEND_LEVEL vdvCOMMs,10, nMYVALUE2
}
}
0
Comments
- 255 Channels
- 8 Levels
- 1 port
To expand the virtual device, the following commands must be used in DATA_EVENT[]..ONLINE of the virtual device:
SET_VIRTUAL_CHANNEL_COUNT(<virtual dev.>,<channels required>) // max. 4000 channel
SET_VIRTUAL_LEVEL_COUNT(<virtual dev.>,<levels required>) // max. 600 levels
SET_VIRTUAL_PORT_COUNT(<virtual dev.>,<ports required>) // max. 100 ports Personally I don't push up the port number.
When passing a virtual device from one master to another, the channel/level/port count must be set on both sides!
Thanks heaps for your reply.
I have over looked this.
Regards
Craig