LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dsc

Hi all

Is Acknowledges alarms:

 

DSC_Alarm.png

 

This Acknowledges alarms has inputs alarms: clear time & clear user....

If I set this inputs the clear time & clear user must to log in MSSQL.

But this inputs don't log in MSSQL.

Why don't  this inputs log in MSSQL?

Best regards

Iskander.

 

0 Kudos
Message 1 of 6
(3,014 Views)

Hello Iskander,

 

If your using a Citadel databse for logging your data then if you can use the same database for logging alarms and events. Here's where that option can be set by right clicking on your library in the project and selecting properties.

citadel alarms.png

 

If you using a Relational Database there is an option for setting username and password when logging alarms and events. This option is found in the same place, but on the Relational Database tab.

loginDatabase.png

 

If your still having problems can you post a screenshot of the login screen that is preventing you from using the acknowledge alarm function.

 

Regards,

Danny F

Danny Funk -- Senior Group Manager -- Software R&D -- NI
0 Kudos
Message 2 of 6
(2,995 Views)

Hi Danny F.

Thanks

I use a Citadel databse .

And all work very well.

I can write to database the ack time and ack user

But I can't write to database the clear time & clear user only  when I use  Acknowledges alarms

Best regards

Iskander

0 Kudos
Message 3 of 6
(2,987 Views)

Iskander,

 

You cannot manually control the Set or Clear fields on an alarm that is not diagram-generated (ie an alarm that is configured on some object in the variable engine). The Set fields are generated by the engine when the alarm condition is triggered, and the clear fields are generated when the alarm condition passes. The alarm server will only accept updates generated internally by the variable engine.

 

The Ack user should correspond to the user logged into LabVIEW when you call the Acknowledge Alarm VI. If you create User Defined alarms using the VIs provided, I would also expect the Set/Clear user information to correspond to the LabVIEW login.

 

Regards,

Danny

Danny Funk -- Senior Group Manager -- Software R&D -- NI
0 Kudos
Message 4 of 6
(2,973 Views)

Hi Danny

Yhanks

I understand all.

But please explain me next.

When I created the Acknowledges alarms:

Input Ack.png

This input have Clear User and clear time.

Why don't work this inputs?

Regards

Iskander

 

0 Kudos
Message 5 of 6
(2,944 Views)

Iskander,

 

The instance of the Acknowledge alarms that you are referring to provides this input cluster because it allows for easier usability when wiring together the block diagram. The normal use case is that the alarm had been read earlier in the code by using the Read Alarms.vi then wiring the output directly into the Acknowledge. This way is more convenient than having to extract the alarm URL from the array of alarms.

 

If you do not have the alarm structure to provide the Acknowledge Alarm VI, then I suggest looking at the different instance of the polymorphic VI.

 

Regards,

Danny

Danny Funk -- Senior Group Manager -- Software R&D -- NI
0 Kudos
Message 6 of 6
(2,927 Views)