LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dot net event handler

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!

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 1 of 2
(2,403 Views)

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


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 2 of 2
(2,385 Views)