Home AMX User Forum NetLinx Studio

How to Define a Virtual device in a module?

Hello. I am wondering how to go about creating a virtual device for a module I am building? I know I need to define the module in my devices in my master source code. Do I just define the same virtual device with the same d:p:s in the module define devices?

Comments

  • viningvining Posts: 4,368
    danlee20 wrote: »
    Hello. I am wondering how to go about creating a virtual device for a module I am building? I know I need to define the module in my devices in my master source code. Do I just define the same virtual device with the same d:p:s in the module define devices?

    No you should never define devices or virtual devices in the module. Define them in your main code and pass them into the module as a parameter in the header.
Sign In or Register to comment.