Overview Error when creating RTU Object in MODBUS EXPLORER
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
When I want to create an Device via. "Modbus Explorer" it works flawless when I choose Modbus TCP. When I try to do the same with Modbus RTU, I get the following window. Only explenation window about config settings, but no Config setting available. Seems to me like a bug. Is there a fix for it ?
In Matlab I get this codes as feedback:
Warning: Error executing listener callback for PostSet event on UserAddNonEnumDeviceStartPage dynamic property in object of matlabshared.mediator.internal.Mediator class:
Error using matlab.ui.internal.toolstrip.DropDown/set.SelectedIndex
"SelectedIndex" property accepts an integer between 1 and the number of items.
Error in matlab.hwmgr.internal.toolstrip.ParamTabHandler/populateTab/createDropDown (line 534)
valueWidget.SelectedIndex = 1;
Error in matlab.hwmgr.internal.toolstrip.ParamTabHandler/populateTab/createWidget (line 436)
valueWidget = createDropDown(paramStruct.ParamID);
Error in matlab.hwmgr.internal.toolstrip.ParamTabHandler/populateTab (line 337)
valueWidget = createWidget(paramStruct);
Error in matlab.hwmgr.internal.toolstrip.ParamTabHandler (line 118)
obj.populateTab();
Error in matlab.hwmgr.internal.Toolstrip/showModalTsTab (line 518)
obj.ModalTabHandler = matlab.hwmgr.internal.toolstrip.ParamTabHandler(...
Error in matlab.hwmgr.internal.Toolstrip/showNonEnumDeviceConfigTab (line 363)
obj.showModalTsTab(descriptor, @obj.confirmAddDevice, @()obj.cancelConfiguringDevice(cancelDestination));
Error in matlab.hwmgr.internal.Toolstrip/startNonEnumDeviceConfig (line 394)
obj.showNonEnumDeviceConfigTab(descriptor, cancelDestination);
Error in matlab.hwmgr.internal.Toolstrip/handleUserAddNonEnumDeviceStartPage (line 115)
obj.startNonEnumDeviceConfig(descriptor, "StartPage");
Error in matlab.hwmgr.internal.MessageLogger/logAndInvoke (line 59)
obj.(methodName)(evt.AffectedObject.(propName));
Error in matlab.hwmgr.internal.MessageLogger>@(src,evt)obj.logAndInvoke(src,evt,eventsAndCallbacks(i,2),eventsAndCallbacks(i,1)) (line 83)
@(src,evt)obj.logAndInvoke(src, evt, eventsAndCallbacks(i,2),eventsAndCallbacks(i,1)));
Error in matlabshared.mediator.internal.Publisher/setMediatorProp (line 68)
obj.Mediator.(src.Name) = evt.AffectedObject.(src.Name);
Error in matlabshared.mediator.internal.Publisher>@(varargin)obj.setMediatorProp(varargin{:}) (line 62)
obj.PropEventListenerArray(end + 1) = obj.listener(propList(i).Name, 'PostSet', @obj.setMediatorProp);
Error in matlab.hwmgr.internal.MessageLogger/logAndSet (line 40)
obj.(propName) = propVal;
Error in matlab.hwmgr.internal.ClientAppStartPage/clientAddNonEnumDevice (line 225)
obj.logAndSet("UserAddNonEnumDeviceStartPage", descriptor);
Error in matlab.hwmgr.internal.MessageHandler>@(msg)obj.Subject.(action)(msg) (line 71)
callback (1, 1) function_handle = @(msg)obj.Subject.(action)(msg)
Error in matlab.hwmgr.internal.MessageHandler/callbackHandler (line 157)
feval(obj.Subscriptions(msg.action), msg.params);
Error in matlab.hwmgr.internal.MessageHandler>@(msg)obj.callbackHandler(msg) (line 135)
obj.Subscriber = message.subscribe(obj.PubSubChannel, @(msg)obj.callbackHandler(msg));
Error in message.subscribe
Error in message.internal.executeCallback
> In matlabshared.mediator.internal/Publisher/setMediatorProp (line 68)
In matlabshared.mediator.internal.Publisher>@(varargin)obj.setMediatorProp(varargin{:}) (line 62)
In matlab.hwmgr.internal/MessageLogger/logAndSet (line 40)
In matlab.hwmgr.internal/ClientAppStartPage/clientAddNonEnumDevice (line 225)
In matlab.hwmgr.internal.MessageHandler>@(msg)obj.Subject.(action)(msg) (line 71)
In matlab.hwmgr.internal/MessageHandler/callbackHandler (line 157)
In matlab.hwmgr.internal.MessageHandler>@(msg)obj.callbackHandler(msg) (line 135)
In message.subscribe
In message.internal.executeCallback
Tried this on different Matlab versions R2024a,R2022b,R2020a. Laptop with Win 11
Any fix for this available, if not how to properly report bugs.
0 commentaires
Réponses (1)
Yatharth
le 17 Mai 2024
Modifié(e) : Yatharth
le 21 Mai 2024
Hi Roman,
I am facing the same issue in MATLAB R2023b. I think this might be a bug. You can report the bug here https://www.mathworks.com/support/contact_us.html?s_tid=bug2create
Use >> serialportlist("available") to see the list of available ports. In my case the function is returning an empty string and that is the reason the Modbus Explorer is not able to handle the error.
As a work around I installed a virtual serial port and then the Modbus Explorer was working fine.
Hopefully Mathworks team will resolve it.
0 commentaires
Voir également
Catégories
En savoir plus sur Modbus Communication dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!