From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
This is a simple Linked Network Actor example I created in response to questions about how to use them. There are 2014 and 2015 versions.
This example uses a parent class "Interface" that defines the messages to be sent using the LNA. The methods in the Do.vi are dynamic dispatch and abstract in the Interface class. UI Actor and RT Actor both inherit from Interface and implement the methods.
There are 2 projects. "LNA Example.lvproj" is the PC project. "RT Project LNA Example.lvproj" is the RT example. This is a cRIO example, but you should be able to move the code from the RT project to another target.
I have this set up to run the RT first and then the PC.
All that happens here is a number is sent from the PC to the RT via the LNA. The RT adds a random number (0-1) and sends the result back to the PC for display.
I also implement a child of the LNA Connection Status Msg, which is the LNA's Zero Coupling message.
Phoenix, LLC
CLA, LabVIEW Champion
Check Out the Software Engineering Processes, Architecture, and Design track at NIWeek. 2018 I guarantee you will learn things you can use daily! I will be presenting!
Hi Casey,
I've tried to run the example with myRIO target. When it wouldn't work, I found the LNA Connected Status was not correct. It looked like the RT actor didn't send the "Connect" message to the Host actor. I cannot figure out why.
You may have some network settings issues. The LNA uses a pair of network stream connections. One reader and one writer. Windows firewall will prevent connections.
Your PC also needs to have the ethernet adapter used for the connection as the first adapter in the list. You can change the order by:
Hope that helps.
Casey
Phoenix, LLC
CLA, LabVIEW Champion
Check Out the Software Engineering Processes, Architecture, and Design track at NIWeek. 2018 I guarantee you will learn things you can use daily! I will be presenting!
Thanks, Casey.
It really was caused by the firewall. After I closed the firewall for the private network, it works.
You can load a compatible version LV 2013? Thank you.