Author Topic: Error Display  (Read 994 times)

mourazo

  • Newbie
  • *
  • Posts: 31
    • View Profile
Error Display
« on: November 13, 2019, 06:04:41 AM »
I would like specific message to show in a basic label when I did not receive data from the driver, how could I do it?
« Last Edit: November 13, 2019, 07:34:43 AM by mourazo »

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Error Display
« Reply #1 on: November 13, 2019, 07:47:24 PM »
And how would you know that you didn't receive the data?

There is usually a message from the driver that shows in the label: "No values received from the driver" (or similar)
« Last Edit: November 13, 2019, 08:08:40 PM by Godra »

mourazo

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Error Display
« Reply #2 on: November 15, 2019, 02:21:36 AM »
That is what I ask, if there is any method to modify that message or if there is any property that returns me connection == true or false. The problem I have is that the display error is too long and does not fit in the panel, I would also like to change the color of the panel to red when it has no connection with the plc

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Error Display
« Reply #3 on: November 15, 2019, 03:07:40 PM »

mourazo

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Error Display
« Reply #4 on: November 19, 2019, 12:24:23 PM »
I hadn't seen the comError event, thanks