11-06-2011 03:15 PM
Hi!
Creating .Net objects, I can call a constructor, with EventHandler parameter. Is this parameter revelant in Labview? So Can I use this constructor for Event handling for LV event handlers, or not? ( Not beacuse I have to register a .Net event with a special method. "Register .Net Event")
ToolStripItem(String, Image, EventHandler, String)
Thanks!
11-07-2011
08:04 AM
- last edited on
11-06-2024
03:08 PM
by
Content Cleaner
You can create a VI that will receive the .NET event. This VI can in turn be registered in LabVIEW to be handled by an event structure.
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/register-event-callback.html
I created an example long ago that uses the .NET PowerModeChanged Event to detect when the computer switches between UPSbattery and AC power. It also works for laptops...