Example Code

Using the Windows Event Log from LabVIEW

Code and Documents

Attachment

These VI's wrap calls to the .NET Framework and allow the caller to create new entries in the Windows Event Log, which can then be viewed from the Event Viewer, generate SNMP traps, etc.

Full description is given on my blog.

Other requirements:

.NET Framework and a Windows Operating System

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
richardscheff
Member
Member
on

As far as I know I need to create or modify a message file so that eventIDs are known.  I believe if I use a WriteEvent using an eventInstance, I can create a new eventID message.  Except I do not know how to declare values.  Any thoughts?Capture.PNG

Contributors