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.
08-13-2012 11:45 AM
I am doing a project on obstacle avoidance using a LIDAR sensor and DaNI1.0. I have to separate my VI into two portions as the sbRIO keeps crashing when I deploy my VI. I want to run the LIDAR data acquisition and obstacle avoidance part of my project on the laptop and send the resulting steering frame to the motion control VI on the sbRIO. I am not sure how to achieve this. Can anyone help with this?
Solved! Go to Solution.
08-13-2012 12:46 PM
I think global variables might be of use in your case.
08-13-2012 01:19 PM
You mean to say that you have to send the data from the Host to the FPGA target?. You may have to use shared variables to transfer through the TCP/IP connection.
08-13-2012 02:24 PM
Network Streams is a good option as well, on 2010 and later.
08-13-2012 02:36 PM
I am sending the data from the host to the Real-Time processor as my LIDAR sensor does not ineract directly with the FPGA. I wish to use the TCP/IP connection but I have never done it before and I am finding it difficult to follow the TCP VIs and functions in LabVIEW. Are there any examples I can review to help me? I am using LabVIEW 2010.
08-13-2012 02:40 PM
Have you tried the Example Finder in LabVIEW (Help->Find Examples...)? If you do a search for TCP, there are several examples. The ones that got me going were the Data Client.vi and Data Server.vi. They work together.
08-14-2012 12:10 PM
I have looked at the examples and I have developed a TCP/IP communication between the my two VIs but I am getting an error (ERR(1)) from the Resolve Machine Alias VI. Anyone knows what this means and how to solve it?
08-14-2012 12:48 PM
@PB_robotics wrote:
I have looked at the examples and I have developed a TCP/IP communication between the my two VIs but I am getting an error (ERR(1)) from the Resolve Machine Alias VI. Anyone knows what this means and how to solve it?
That VI simply resolves information in the aliases file in your project. Wire the name of the target into Machine Alias and you'll get an IP.
For example, if your alias file looks like:
[My Computer] My Computer = "10.0.0.77"
[RT Target] RT Target = "162.136.1.99"
Then wiring "RT Target" into Machine Alias will give you 162.136.1.99. Is that not working?
OT: To get help, don't mark a response as the Solution until you've got all you need. Especially don't mark your own response, which besides being tacky 9 times out of 10, defeats the purpose the thread. When people are surfing the site looking for ways to help, if there's a Solution marked, they think "that user got what he wanted, I can't help there".