Author Topic: Need a very basic tutorial on Alarms list... Thanks  (Read 2678 times)

pk

  • Newbie
  • *
  • Posts: 9
    • View Profile
Need a very basic tutorial on Alarms list... Thanks
« on: August 24, 2022, 03:04:45 PM »
Hi

Just downloaded Advanced HMI with Visual Studio 2019
Did a small project with a Gauge, Digital Panel meter and a couple of Alarm lights
Used Modbus simulator and it works great

I am trying to add a form with a simple basic alarm list
Trying the controls Messagelistbybit, Messagelistbyvalue and the ini file with all alarms in it
Not much of success

Can someone type out a very basic tutorial for dummies like me.

Appreciate your help

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Need a very basic tutorial on Alarms list... Thanks
« Reply #1 on: August 24, 2022, 03:35:59 PM »
- In Solution Explorer, expand down the AdvancedHMI project
- Expand down the SampleINIFiles folder
- Right Click Alarms.txt and select copy
- Right click the AdvancedHMI Project and select Paste
- You will now have a copy of the file in the top level
- Click once on the new copy of Alarms.txt
- In the Properties Windows, change Copy To Output Directory to Copy If Newer

- Go to the Design View of the MainForm
- From the ToolBox add a MessageListByValue
- Set the property IniFileName to  .\Alarms,txt

gamtekin

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Need a very basic tutorial on Alarms list... Thanks
« Reply #2 on: September 21, 2022, 06:36:29 AM »
Dear Archie,

I've been tried that procedure, but my alarm list is not worked.

I also try the same methods on messagedisplaybyvalue, but the result is show "InvalidValueReturned!True."

Did i missed a step?

Thanks before Archie.  ;)

Thanks,
Halim

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Need a very basic tutorial on Alarms list... Thanks
« Reply #3 on: September 21, 2022, 09:20:30 AM »
I also try the same methods on messagedisplaybyvalue, but the result is show "InvalidValueReturned!True."
This sounds like you are using a boolean tag. The MessageDisplayByValue needs and integer to indicate the alarm number to display