12-03-2010 03:04 AM
Hi All,
I want create a XControl which can show shared variable value (double) and variable alarms. When I bind Xcontrol to shared variable I'm able to receive value change events to XControl. This is very good and works well. If variable value move to over its high limit I am able to receive alarm and value in same time. This is also good.
The problem is that I don't receive value change event when user acknowledge the alarm. If there is no value change in same time XControl won't update its status and user get wrong information from GUI. How I can force XControl update its status when alarm is acknowledged?
I don't wire anything to XControl terminal. I want that it reads all information directly from SVE.
- Jim
12-06-2010 08:36 AM
I think you may need to use the DSC alarm event for this.
12-07-2010 12:36 AM
Hi,
I will try that. Do you have an idea should I program DCS alarm event initialization to XControl initializion? In which part of XControl I will register events?
-Jim
12-07-2010 08:35 AM
Ok, I will admit that I have not tried this but here are two possibilities:
1. In the DSC palette use the Enable Alarm Event Notification vi and register as a user event, then add dynamic event node to the x control facade event structure. You can then wire up the alarm event expressed as a dynamic user event.
2. You may also be able to use the same concept except wire the alarm event to a event callback registration node with the x control facade vi as the callback vi.