I have put together a small demo project to try and use the MpAlarmX and AlarmList widget. I’ve set up a web-based HMI using mappview, created a content in a page and added the AlarmList widget, then I configured it following the instructions on the help browser and I’ve set the binding attribute pointing to the MpAlarmXCore object.
As soon as I start the HMI applicatiion I’m presented with a grayed out AlarmListWidget, and, changing page and coming back to the former, i get the following
When checking the logger everything seems to be normal…
I even compared my project with a working example from one of my colleagues and it seems like they’re the same…
Do you have any suggestions?
Do you have the MpServer library in your project? If not try adding it through the toolbox by selecting it from “B&R Libraries”.
The MpServer library is needed for the internal communication for widgets, which use MpLink bindings.
1 Like
Thanks for your reply,
in the beginning, I forgot to add the Server library, ran the project, and got the same error. Then I added the server library as shown in the answer, but I still receive the error.
There is likely something missing in your Visualization file. Navigate to the Configuration View and then open up the .vis file. Check the following:
-
The Alarm page is listed under Pages
-
The Alarm binding file is listed under BindingSets
-
Set autoUpdate to true if it is not already. If it was false, this may have been the reason the bindings did not automatically update.
-
Make sure your AlarmListContent.binding file has updated automatically and that you can see the binding listed inside it.
Two additional notes:
-
make sure the MpLink binding is READ/WRITE
-
to display data in the AlarmList, you will need to add AlarmListItems. These will appear in the toolbox when you select the AlarmList. Drag an Item into the AlarmList widget and then configure the Item in the Properties window. More info can be found here in the AlarmList Help Page.
Thanks for sharing the solution; I was indeed missing the new content binding in the Visualization file.
1 Like