Home AMX User Forum NetLinx Studio

Working with two DALI devices. Module problem!

Hi guys.

I have a bit of a module problem. I have two Tridonic DALI devices but I can only use one module for one of the devices because I don?t know how to implement another module of the same kind without name-clashing!

Does anyone know of a good solution?
dvDALI                             = 5001:6:1              // works fine..
dvDALI(someidentifier)	     =5001:7:1               // but how do  I  use this??                                                                                
vdvDALI                            = 33001:1:1             // Virtual Device

Comments

  • ericmedleyericmedley Posts: 4,177
    You need to create 2 instances of the module.

    both instances reference the same module file.

    So, for example
    dv_Acme_box_1   5001:01:0  // real device RS-232 port
    dv_Acme_box_2   5001:02:0  // real device RS-232 port
    
    
    vdv_Acme_box_1 33001:01:0 // Acme box 1's virtual device
    vdv_Acme_box_2 33002:01:0 // Acme box 2's virtual device
    
    
    DEFINE_MODULE 'Acme_COMM' Acme_box_MODULE_1(vdv_Acme_box_1, dv_Acme_box_1)
    
    DEFINE_MODULE 'Acme_COMM' Acme_box_MODULE_2(vdv_Acme_box_2, dv_Acme_box_2)
    
    
  • I would have thought it was not quite as simple as this. But it worked like a charm.

    Thanks a million Eric.
  • ericmedleyericmedley Posts: 4,177
    Thorleifur wrote:
    I would have thought it was not quite as simple as this. But it worked like a charm.

    Thanks a million Eric.
    You're welcome. Glad to be of help.
Sign In or Register to comment.