2. Right-click on the Module folder to access the Module File Folder context menu, and select
Add Existing Module File (or click the toolbar button).
3. In the Add Existing Module File dialog, locate and select the Module (.AXS, .TKO or .JAR)
file that you want to add to the selected System.
Use the Recent tab to quickly access recently used files.
4. Click Open to access the File Properties dialog, where you can view/edit general file
information for the selected module file.
If you select multiple files to add to the System, the program will prompt you to edit
the file properties for each file before adding them.
5. Edit the file information (if necessary).
6. Click OK to add the file to the selected System.
7. The file should now appear in the Module folder under the selected System.
Source Code Entry
To include a module into your program, use the following module line:
DEFINE_MODULE 'DMS-IMSMod' Module_Name(Virtual_Dev, Real_Dev, strFileName,
strVarTextArray)
Where:
For example, a NetLinx module for a DMS keypad would look like:
DEFINE_MODULE "DMS-IMSMod" mdlDMS (dvDMS, dvDMS_R, strFILE_NAME,
StrVartextArray)
Where:
NetLinx Studio (v2.4 or higher)
DMS-IMSMod.tko
Module_Name
A virtual device you define.
Virtual_Dev
The device number of the DMS or IMS panel.
Real_Dev
A string variable (CHAR array) containing the file name of the KPD file to
StrFileName
run.
A two-dimensional array to store variable text in. The first dimension
StrVarTextArray
should be the largest variable text number you want to use. The second
dimension should be the maximum size of the string you want displayed
(maximum is 40 characters).
The name of the compiled TKO file.
DMS-IMSMod
The module name.
MdlDMS
The module ID device number (ex 32768).
DvDMS
The device number of the keypad.
DvDMS_R
Exact name of the KPD file.
StrFILE_NAME
Description of the parameters for the variable text buffer.
StrVarText Array
Working With Systems and System Files
61
Need help?
Do you have a question about the NETLINX STUDIO V2.4 and is the answer not in the manual?