AdvancedHMI Software
General Category => Open Discussion => Topic started by: pk 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
-
- 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
-
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
-
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