Home AMX User Forum NetLinx Studio

Assigning Variable DEV

is there a shorter way to assign variable devs other than than "." notation?

volatile dev myDevices[3]
for(ndx=1;ndx<3;ndx++)
{
myDevice[ndx].number = 33101
myDevice[ndx].port = ndx
myDevice[ndx].system = 0
}

Comments

  • DEFINE_DEVICE

    dvTP1 = 33001:1:0;
    dvTP2 = 33001:2:0;
    dvTP3 = 33001:3:0;

    DEFINE_CONSTANT

    dev dvTPs[ ] = { dvTP1 , dvTP2 , dvTP3 };

  • danportugaldanportugal Posts: 14

    well i didn't want to use DEFINE_DEVICE section for something that would grow to 100 ports per touchpanel.

Sign In or Register to comment.