Anytime Help Center

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support
  • Guest
  • Log In
English (US)
US English (US)
DE German
CN Chinese
MX Spanish (Mexico)
Chinese (Simplified)
  • AKG
    Microphones Wireless Integrated Systems Automatic Mixers Headphones Discontinued Products (AKG) General AKG Inquiries Certifications (AKG)
  • AMX
    Networked A/V Distribution (AVoIP) Traditional A/V Distribution Video Signal Processing Architectural Connectivity User Interfaces Control Processing Power (AMX) Programming (AMX) Software (AMX) Discontinued Products (AMX) General AMX Inquiries Certifications (AMX)
  • BSS
    Soundweb™ Omni Soundweb™ London Soundweb™ Contrio™ Software (BSS) Discontinued Products (BSS) General BSS Inquiries Certifications (BSS)
  • Crown
    CDi DriveCore Series CDi Series Commercial Series ComTech Series DCi DriveCore Series I-Tech HD Series XLC series XLi Series XLS DriveCore 2 Series XTi 2 Series Discontinued Products (Crown) Software (Crown) General Crown Inquiries Certifications (Crown)
  • dbx
    CX Series 500 Series DriveRack Personal Monitor Control ZonePRO Zone Controllers FeedBack Suppression Microphone Preamps Dynamics Processors Crossovers Equalizers Software (dbx) Discontinued Products (dbx) General dbx Inquiries Certifications (dbx)
  • Flux::
    Immersive Processing Analysis Subscriptions
  • JBL
    Cinema Sound Installed Live Portable Tour Sound Recording & Broadcast Software (JBL) Discontinued Products (JBL) Video Manual Series (JBL) General JBL Inquiries Certifications (JBL)
  • Lexicon
    Plugins Effects Processors Cinema Discontinued Products (Lexicon) Video Manual Series (Lexicon) General Lexicon Inquiries Certifications (Lexicon)
  • Martin
    Atomic ELP ERA Exterior MAC P3 VC VDO Tools Discontinued Products (Martin) General Martin Inquiries Certifications (Martin)
  • Soundcraft
    Digital Analog Connected Analog Only Discontinued Products (Soundcraft) Video Manual Series (Soundcraft) General Soundcraft Inquiries Certifications (Soundcraft)
  • General HARMAN Inquiries
    Dante
+ More
  • Home
  • AMX
  • Programming (AMX)
  • Programming

AMX NetLinx Module Example

Technical Support Guide

Written by Jose Liberio Cruz

Updated at February 9th, 2026

Table of Contents

Description Downloads:

Description

This is a working example of a NetLinx module. The example is based on the VCR1 system call and demonstrates how to write a module to handle events. The main purpose of the example is to show correct module syntax.

The ability to reuse code is a desirable goal in software development; however, code reuse takes careful planning and organization. NetLinx provides tools such as functions and modules to promote reusability. Modules are NetLinx sub-programs designed to be "plugged into" a main program.

The module is basically a standard Netlinx program with MODULE_NAME instead of PROGRAM_NAME is the first line. The module also lists a series of parameters after its definition. The rest of the program looks like a standard NetLinx program. However, the name in MODULE_NAME and the file name must be the same. This is also the name used to call the module from the main program.

The module is then compiled into a <module name>.TKO and <module name>.TKN Sample code is  file. The <module name>.TKO is an object file of the module. When a module is included in another program using the DEFINE_MODULE statement, the compiler creates a <program name>.TKO file of the code in that program only, then links the <program name>.TKO with the <module name>.TKO file to create a <program name>.TKN file. This file is downloaded to the master and contains the code from the main program and the code from the module. In order to compile, the <module name>.TKO and the <program name>.AXS must be in the same directory.

When adding modules to a NetLinx program, the DEFINE_MODULE definition can appear anywhere in the program. However, it is common practice to place DEFINE_MODULE before the DEFINE_EVENT section and after the DEFINE_START section.

Since the object file of the module is all this is needed for the final compile, modules can be used to protect any source code. Modules allow you to write a program which you can distribute in object (binary) format without giving away your source code.


Downloads:

  • https://static.helpjuice.com/helpjuice_production/uploads/upload/image/26287/direct/1770653681720/271-DL1-ModuleExample.zip
  • https://static.helpjuice.com/helpjuice_production/uploads/upload/image/26287/direct/1770653678197/271-NetLinx%20Module%20Example.pdf

Related Videos

amx netlinx

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Description Downloads:

Related Articles

  • AMX How to Log Diagnostics and Notification Information in Netlinx
  • AMX SPLIT_STRING

Related Articles

  • AMX How to Log Diagnostics and Notification Information in Netlinx
  • AMX SPLIT_STRING
Copyright © HARMAN Professional. All rights reserved. Privacy Policy | Terms of Use
Expand