Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 18, 2008


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Handling .NET Events in LabVIEW

8 ratings | 2.88 out of 5
Print

Downloads

Filename: handling_dotnet_events2.zip
Requirements: View

The attached example program demonstrates how to register for and handle a .NET event in LabVIEW.

The example contains a .NET User Control Library (Assembly) that has a button on it.
This User Control Library is embedded in the LabVIEW Front Panel in a .NET Container.
In the Block Diagram, we get a reference to the button, register for the button click event and specify a callback VI to handle the event.

This can be done with a regular .NET Assembly that doesn't contain a UI as well.

Requirements


Filename: handling_dotnet_events2.zip

Software Requirements


Application Software: LabVIEW Base Development System 8.0, LabVIEW Full Development System 8.0, LabVIEW Professional Development System 8.0
Language(s): C#, Visual Basic .NET, Visual Studio .NET
Additional Software: Visual C# , Visual Studio .NET 2005

 
8 ratings | 2.88 out of 5
Print

Reader Comments | Submit a comment »

The C# code files are empty
Looking at the C# code files in this example revealed nothing - they are empty.
- May 26, 2011

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).