12-05-2017 06:35 AM - edited 12-05-2017 06:47 AM
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
Solved! Go to Solution.
12-05-2017 06:45 AM
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…
12-05-2017 06:50 AM
Hi Gerd, I uploaded a screenshot with probes in my first post.
12-05-2017 06:54 AM - edited 12-05-2017 06:55 AM
12-05-2017 06:56 AM
TCPRead shows me "No Error",
any idea where the problem could be ?
12-05-2017 07:14 AM
@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.
12-05-2017 07:17 AM
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?
12-05-2017 07:23 AM
I hope that I connected the Error frame in the right way (sorry I work for only like 2 weeks in LabVIEW -_-)
12-05-2017 07:29 AM
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.
12-05-2017 07:36 AM
TCP is only a transport layer, you need to know the protocol that your device is sending the data with.