LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating between Labview RT code running on windows using Linux C code over network

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

0 Kudos
Message 1 of 3
(2,645 Views)

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.

 

 

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 2 of 3
(2,627 Views)

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

0 Kudos
Message 3 of 3
(2,622 Views)