08-09-2012 08:17 AM
Hi,
I have been working with Labview FPGA+RT for robotic applications (impedance control, tendon driven robotics etc.) for some time now. I was wondering if anyone has successfully been able to communicate with
shared variables being sent over a network by a labview RT program using C/C++ on a non labview Linux PC. I have been working on this for sometime and have read about CVI and Datasocket protocols. I am in the
process of making a library on my RTAI patched Linux installation to have a high level control loop on the Linux PC communicate with low level motor control and sensor data acquisition codes running on the labview RT
pc. In the worst case scenario I am planning to use basic network port sniffing to atleast acquire data.
Just thought I will ask here before wasting time reinventing the wheel. Any suggestions and ideas would be greatly appreciated as well.
Thank you for your time.
Prashant
08-10-2012 01:39 PM
Morning Prashant,
You are on the right track. You can use datasockets from any environment to interface with a network shared variable. I've pulled some of the examples from CVI which show how to call network shared variables. These should help. You should search how to call data sockets in C then pass the address to them to read and write from.
Look into the polling example for the basics.
08-10-2012 02:51 PM
Thank you very much Kyle!!
This was exactly what I was looking for. I will implement this and if the thread is still open, post how it worked out.
Prashant Rao