To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Code that exemplifies how to generate an event on a different VI.
Description
Usually, we create and use User Events in the same VI or in subVIs of this VI. However, it is possible generate User Events in one VI and handle in a different VI just using a global variable.
Requirements
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
1. Run the Main.vi.
2. Modify the numeric control in the Event Generator VI.
3. See the indicator being changed on the Event Handler VI.
4. Stop all VIs.
Additional Information or References
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
How can I open it using LabVIEW 8.6?
This example requires LabVIEW 2009 or higher so you cannot open it with LabVIEW 8.6. You can download the 30-day trial version from:
http://www.ni.com/trylabview/
Will this API work for multiple app instances running on the same machine?
Is it possible to always know, a priori, the Server:Port of the Server process?
This was one of the reasons why I gave up on this approach.
It seems as though the server must be running before the client. If I start the client first I get errors on the Create user Event VI (1032). Once the server is started once it is OK. It seems something to do with the starting of the VI server service. Any comments?