LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create XControl which can receive alarm ON/ACK status from shared variable?

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

0 Kudos
Message 1 of 4
(2,836 Views)

I think you may need to use the DSC alarm event for this.

0 Kudos
Message 2 of 4
(2,806 Views)

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

 

0 Kudos
Message 3 of 4
(2,795 Views)

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.

0 Kudos
Message 4 of 4
(2,784 Views)