12-07-2011 04:53 AM
Hi all
Is Acknowledges alarms:
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.
12-08-2011 10:36 AM
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.
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.
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
12-08-2011 02:22 PM
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
12-09-2011 05:50 PM
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
12-14-2011 06:53 AM
Hi Danny
Yhanks
I understand all.
But please explain me next.
When I created the Acknowledges alarms:
This input have Clear User and clear time.
Why don't work this inputs?
Regards
Iskander
12-15-2011 03:26 PM
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