why does the placement of DEFINE_MODULE matter for Autopatch Duet Module?
pushtoplay
Junior Member
If I place the define module in the DEFINE_DEVICE section like the following, it works fine. However if I the define_module is placed in the the DEFINE_START section, it apparently never itializes. Anybody know why this is the case?
//OK
DEFINE_DEVICE
DEFINE_MODULE 'AutoPatch_Matrix_Switcher_Comm_dr1_0_0' INST(vdvAP1, dvAP)
//NOT OK
DEFINE_START
DEFINE_MODULE 'AutoPatch_Matrix_Switcher_Comm_dr1_0_0' INST(vdvAP1, dvAP)
//OK
DEFINE_DEVICE
DEFINE_MODULE 'AutoPatch_Matrix_Switcher_Comm_dr1_0_0' INST(vdvAP1, dvAP)
//NOT OK
DEFINE_START
DEFINE_MODULE 'AutoPatch_Matrix_Switcher_Comm_dr1_0_0' INST(vdvAP1, dvAP)
Comments
-
pushtoplay wrote: »If I place the define module in the DEFINE_DEVICE section like the following, it works fine.
I would say off hand something in your code between the Define_Device Section and the Define_Start section is causing the problem. I would comment out all the code except Define_Device section and the Define_Module in your Define_Start and see if the module works where it belongs in Define_Start. Then slowly add back code until you find the issue.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums