简体   繁体   中英

How do I make a TCP connection between LabVIEW server and Python client where (data) angles from Python are to be transferred to LabVIEW?

如何在LabVIEW服务器和Python客户端之间建立TCP连接,将来自Python的(数据)角度传输到LabVIEW?

To answer your "how do I do this" question. First, start from the basics. Do not start with a more complicated program that has some error as you showed in robotic wrist mimicking - Kinect as a Sensor(Python Coded) to a labview Simulation using TCP .

With almost any LabVIEW problem, first check the LabVIEW examples in the Example Finder. Start with the LabVIEW "Simple Data Client.vi" that can be found in the LabVIEW examples, accessible via Help->LabVIEW Examples-> (search on tcp/ip server). For reference here also the code snippet:

在此处输入图片说明

From the Python side, just send a simple number or list of numbers. If this is working then you know you have set up your server and client correctly. Until that is working, you should not worry about more complicated code. After the communication working then you can expand your code.

In case it is not working, ask a very specific question about the part that is not working. Include any error codes and describe what you did, what the responses of the program were, and what responses you expected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM