CONTACT US SEARCH
L Cubed Solutions

Valued Independent Programmers, AMX Certified Experts

Lutron Keypad Data Module Information

Home
Module Listings

Back to Corporate

General:

This module is used to read in, and write out light keypad data between the data files that define each keypad and the structures where the data is stored. Two files are used for this purpose: LedInfoKpd.dat, and KeypadButtons.dat. While LedInfoKpd.dat is used to specify keypads by address to maintain LED information about, KeypadButtons.dat defines data for controlling and displaying keypad buttons by a unique control id for each keypad button. This control id is used in other modules for providing keypad emulation via user interfaces. The data maintained in the KeypadButtons.dat file are: Control Id, button description, keypad address, and keypad button number. If either file doesn't exist when the program boots, a default file with a commented line containing the format required will be created in the LightKeypadData directory.

Internal mechanisms are maintained to provide very fast lookup of any keypad's data in order to update its LED status. In this way, hundreds or thousands of keypads can be monitored and updated with very little processor time.

Prerequisites:

None

Module Header:

TypeNameDescription
DevvdvVirtual device for the module
Char[]SaveDateDate the data was last saved
Char[]SaveTimeTime the data was last saved
IntegerKpdAddrKeyKeypad address key
Char[][]BtnDescEach keypad button's description
Integer[]BtnAddrKeyKeypad address key for each button
Integer[]BtnKpdIndexIndex into the keypad data struct for each button
Char[]KpdBtnNumButton number
IntegerMaxBtnIndexMaximum number of keypad button indices
IntegerMaxKeypadMaximum number of keypads read from file

Send_Commands:

  •  '?' - This causes the module to display all supported commands via messages to the master.
  • 'Ver' - Displays the compilation and version information for the module.
  • 'Initialize' - Causes the data to be read and initialized. A channel on the virtual device is pulsed when completed.
  • 'Load_Data' - Reads the data from disk. A channel on the virtual device is pulsed when completed.

API Calls Supported:

None

API Calls Returned:

None

 

Last Modified: 05/16/2008 08:20:14 PM