LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending data from python to Labview Robotics using TCP

Hi

 

I have a python code run using .bat that I need to interface to my labview robotics code. I'll be continuously getting an angle value through my python code and send this data to my labview robotics and later be fed to my robot. 

 

From my research, I arrived at thought of using a TCP where the labview will be the server and python as the client. There are some downloadable samples of interfacing labview and python using TCP, but the problem is no resources taught you on how to connect/apply that labview sample on your own actual labview code (in my case, my labview robotics code). Basically I'm having trouble on coding the labview part.

 

Can someone please provide me guidance with this? Or probably provide suggestions for my interfacing problem? I badly need a help.

 

Thanks

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

Hello Audrey, 

 

I have provided a link below. I was wondering if you have already taken a look at this link. 

 

Link: Python TCP/IP socket communication

http://forums.ni.com/t5/Example-Program-Drafts/Python-LabVIEW-TCP-IP-socket-communication/ta-p/35370...

 

I also feel like it would be helpful for you to check out NI's documentation on TCP/IP in LabVIEW. I will provide a link below for that as well. I would also recommend checking out the TCP/IP examples that are in the LabVIEW example finder which you can find under the Help tab in LabVIEW. 

 

Link: Basic TCP/IP Communication in LabVIEW 

http://www.ni.com/white-paper/2710/en/

 

Regards, 

 

Shezaan Noorani

Applications Engineer

Message 2 of 2
(3,054 Views)