取消
显示结果 
搜索替代 
您的意思是: 

TCP Data stream

已解决!
转到解答

Hey people, I want to stream EMG Signals via TCP into Labview.

 

When I connect my hardware for the sensors, it shows the signals in the manufacturer software, so the hardware works fine.

In the manufacturer software you can look up the port, and in the manual it says it transfers the data via TCP.

 

So I tried via TCP port to input the data and show it in a graph, however the graph only shows me a flat line. When I write some random number in the port, it shows me an error. So that means the port is ok. The manufacturer software shows me the signals, so the hardware is also working.

 

I think the problem is in the data conversion or something, has anyone an idea how to fix this ?

 

I made screenshots of the blockdiagram and the user manual where the data type is discused.

thanks

 

lepina

 

EDIT: I added a screenshot with the diagram and probes. maybe it will help

Probes.png

下载全部
0 项奖励
1 条消息(共 43 条)
6,303 次查看

Hi lepina,

 

I think the problem is in the data conversion or something

Maybe…

Do you get any errors from TCPRead?

Which string do you receive? How does it look (in Hex display mode)?

 

You don't need this TimedWhileLoop, just remove it…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
2 条消息(共 43 条)
6,291 次查看

Hi Gerd, I uploaded a screenshot with probes in my first post.

0 项奖励
3 条消息(共 43 条)
6,289 次查看

Hi lepina,

 

the screenshot doesn't answer (all) my questions…

Do you get any errors from TCPRead?

 

From the probes you can see the received string is empty. An empty string will give you "zeros" in the chart!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
4 条消息(共 43 条)
6,282 次查看

TCPRead shows me "No Error",

any idea where the problem could be ?

0 项奖励
5 条消息(共 43 条)
6,279 次查看

@lepina wrote:

TCPRead shows me "No Error",


Are you sure?  You are currently not handling the error.  Since you are getting an empty string, I would expect to see a timeout error.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
6 条消息(共 43 条)
6,258 次查看

How many bytes are you trying to read ? 

 

What is the protocol that your device is using? 

Do you have any manual for the device? 

0 项奖励
7 条消息(共 43 条)
6,255 次查看

I hope that I connected the Error frame in the right way (sorry I work for only like 2 weeks in LabVIEW -_-)

 

Error.png

0 项奖励
8 条消息(共 43 条)
6,254 次查看

According to the manual it sends data via TCP

I dont know how many bytes I want to send, my first goal is just to get the real time signal on a graph.

T Server manual.png

0 项奖励
9 条消息(共 43 条)
6,251 次查看

TCP is only a transport layer, you need to know the protocol that your device is sending the data with. 

0 项奖励
10 条消息(共 43 条)
6,241 次查看