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
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.
http://zone.ni.com/reference/en-XX/help/371361H-01/lvcomm/reg_event_callback/
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...
https://decibel.ni.com/content/docs/DOC-1154