Home AMX User Forum NetLinx Studio
Options

Writing a Module

Just of of curiosity,

What would I have to do if I wanted to create a tko that could be used as a module?

i.e. I could include it in my programs with DEFINE_MODULE 'MyModule' ArbitraryName(real_device, virtual_device)

Comments

  • Options
    Here's one that I did for a Christie Digital projector. Not that many features but it does work.

    Danny
  • Options
    mpullinmpullin Posts: 949
    So it seems the key is that first line:

    MODULE_NAME='ChristieDigital_LX45_Comm' ( DEV vdvDEV, DEV dvDEV )

    Thanks, that tells me what I need to know.
  • Options
    Modules

    You can always format your module so that the parameters that you pass through are on separate lines for clarity.
    DEFINE_MODULE='My_Module'  // Comment - Module Description
    (
      DEV vdvSome_Device,        // Comment on virtual device
      DEV dvSome_Device,         // Comment on real device
      INTEGER nModule_Buttons[], // Comment on button array
      INTEGER nModule_Text[]     // Comment on address array
    )
    
Sign In or Register to comment.