

Back to Corporate | | General:This module is used to communicate with an AutoPatch switcher. Prerequisites:None Module Header:| Type | Name | Description | | Dev | vdv | Virtual device for the module | | Dev | dv | Physical device to communicate with | | Char | NullInput | Input used for a disconnect if the 'DL' command is not supported | | Long | BaudRate | BaudRate used | | Long | SendInterval | Maximum milliseconds to wait between commands | | Integer | MaxRetryCount | Maximum retries for a command with no response during SendInterval | | Integer | MaxInput | Highest input used (don't include Nullinput) | | Integer | MaxOutput | Highest output used |
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.
- 'Debug <n>' - Changes debug state where:
0 = No Debug status and turn off DEBUG channel on the virtual device. 1 = Display all minor debug information and turn on DEBUG channel on the virtual device. 2 = Display all sent and received data to/from the device and minor debug information. - 'PASS-<string>' - Put string onto the transmit queue.
API Calls Supported:See supplied include file for APIs predefined. Each API has a keyword that must be defined BEFORE the include file is included in the program. This saves compile time by not defining APIs that are not used. All commands must be sent to the virtual device. 'L3_Autopatch_ClearAllOutputs' (Dev vdv, Integer Lvl) 'L3_Autopatch_ClearOutput' (Dev vdv, Integer Output, Integer Lvl) 'L3_Autopatch_GetVolumeLevel' (Dev vdv, Integer Output, Integer Lvl) 'L3_Autopatch_Initialize' (Dev vdv, Integer Lvl) 'L3_Autopatch_MakeSwitch' (Dev vdv, Char Input, Char Outputs[], Integer Lvl) 'L3_Autopatch_RecallPreset' (Dev vdv, Integer Preset) 'L3_Autopatch_SaveAsPreset' (Dev vdv, Integer Preset) 'L3_Autopatch_SetVolumeAbsolute' (Dev vdv, Char Outputs[], Integer Lvl, SInteger Decibels) 'L3_Autopatch_SetVolumeRelative' (Dev vdv, Char Outputs[], Integer Lvl, SInteger Decibels) 'L3_Autopatch_StepVolume' (Dev vdv, Char Outputs[], Integer Lvl, Char StepUp) 'L3_Autopatch_ViewCurrentConfig' (Dev vdv, Integer Lvl, Char HasVolume) API Calls Returned:The following APIs are called if their keywords are defined BEFORE the include file is included (see the comments in the beginning of the include file in the package) These APIs MUST be defined within the user's code if its keyword is defined because the include file will attempt to call it to pass notification of an associated event if/when it occurs: 'L3_Autopatch_SwitchNote' (Dev vdv, Char Outputs[], Integer In, Integer Lvl, Integer Count) 'L3_Autopatch_VolumeAbsNote' (Dev vdv, Char Outputs[], SInteger Decibels, Integer Lvl, Integer Count) 'L3_Autopatch_VolumeRelNote' (Dev vdv, Char Outputs[], SInteger Decibels, Integer Lvl, Integer Count) 'L3_Autopatch_VolumeStepNote' (Dev vdv, Char Outputs[], Integer StepUp, Integer Lvl, Integer Count) |