Home AMX User Forum NetLinx Studio

Module standard ? dv first or vdv first?

Is there a standard to adhere to regarding the order of real devices and virtual devices when writing modules? Some AMX module declarations start with the virtual device for the first parameter and then the real device is second. And other AMX modules do it opposite with the real device first and then the virtual. Which way is it supposed to be?

Thanks.

Comments

  • GSLogicGSLogic Posts: 562
    The standard is to start with the virtual device first, some of the older mods didn't follow this form.
  • DHawthorneDHawthorne Posts: 4,584
    There are enough deviations from the "standard" that I question calling it a standard at all - but yes, the most common method in newer modules is virtual then actual. There also seems to be a lack of consistency whether the interface uses channels predominently or SEND_COMMANDs, or whether the SEND_COMMAND format should be COMMAND=PARAMETER, or COMMAND-PARAMETER. The bottom line is go through the docs carefully. If rolling your own, just pick whatever you have seen the most of, I guess.
Sign In or Register to comment.