Data Initialized Channel Not Turning On
JasonS
If I had known it was going to be that kind of party...
I am having trouble with the data initialized channel (252) not turning on from my Duet Module.
public boolean isDeviceOnLine() {
return obixInitialized;
}
public boolean isDataInitialized() {
return obixInitialized;
}
The Device Online Channel turns on, but not the Data Initialized. I tried adding this in relevant locations
processDataInitializedEvent(new ModuleComponentEvent(this, obixInitialized, 1));Data Initialized channel is not affected. Anyone know how to make this work?
Comments
-
This works for me...
public boolean isDeviceOnLine() { return deviceonline; } public boolean isDataInitialized() { return datainitialized; } //////////////////////////////////////////////////////// // Device Online/Initialize //////////////////////////////////////////////////////// private void setDeviceOnline(boolean state) { if (state != this.deviceonline) { this.deviceonline = state; this.processDeviceOnLineEvent(new ModuleComponentEvent(this, state, 1)); } } private void setDataInitialize(boolean state) { if (state != this.datainitialized) { this.datainitialized = state; this.processDataInitializedEvent(new ModuleComponentEvent(this, state, 1)); } } -
I overrided/implemented the refresh() method and put the processDataInitializedEvent and processDeviceOnlineEvent within, as per the Duet Module Guide. Whenever the DataInitialized or DeviceOnline state changes I call refresh(). This seems to do the trick. It would be nice if the AMX Duet documentation (what little there is) was more descriptive of what the base classes do and how the interact with each other.
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