Skip to content

Instantly share code, notes, and snippets.

View TomW-Skyline's full-sized avatar

Tom Waterbley TomW-Skyline

View GitHub Profile
@TomW-Skyline
TomW-Skyline / GenerateInformation.cs
Created April 15, 2024 16:28
Generate DataMiner information event
/// <summary>
/// Generate an information event. (SLProtocolScripts.dll needs to be imported) ("using Skyline.DataMiner.ProtocolScripts;" is needed)
/// </summary>
/// <param name="protocol">Link with Skyline DataMiner</param>
/// <param name="sValue">Value of the event</param>
/// <param name="iPid">ID of the concerned parameter</param>
/// <returns>A boolean indicating if the event creation is a success or not.</returns>
public static bool CreateInformationEvent(SLProtocol protocol, string sValue, int iPid)
{
Alarm oAl = new Alarm();