10-16-2008 02:44 AM
Hi all, I am trying to develop a client-server application to stream some data over a few random port numbers (defined by myself) to stream data over to the TCP server (i.e another computer) in LabVIEW. So far, I have created my application using the NI examples for "Simple Data Client + Server" and it works fine. I also understand that the "TCP Listen" VI is only able to listen for 1 TCP connection only and a way around this is to use queueing idea to receive & process the incoming data.The downside to the idea is that the "base port" (i.e initial port) needs to be the same (on every TCP client) with the TCP Server and it is not fit for the purpose I intended.
Basically on the TCP server side, i need to chart/monitor the data on different port numbers that is being streamed real-time from the one TCP client computer. Is this possible in LabVIEW?
Can anyone (incl. NI gurus) advise and point me in the right direction?
*lost*
Solved! Go to Solution.
10-16-2008
03:08 AM
- last edited on
03-25-2024
09:35 AM
by
Content Cleaner
Hi,
It is possible to view/monitor the data and also you can transfer the data to Host PC through TCP using Functional Global.
https://www.ni.com/en/support/documentation/supplemental/21/simple-messaging-stm-communication-libra.... Hope this helps you.
10-16-2008 03:15 AM
10-16-2008
03:59 AM
- last edited on
03-25-2024
09:35 AM
by
Content Cleaner
Hi
https://www.ni.com/en/support/documentation/supplemental/21/simple-messaging-stm-communication-libra... Here you can download that component.But you can also use TCP icons which is available in Data Commmunications>Protocals>TCp for communication and to read and write data use variant to flattened string. I have attached a small example where i will transfer a constant string to the host PC to check the link between client and the server. Hope this helps you.
10-16-2008 04:21 AM
May I just add another question....I have an external data streaming into TCP Server with data length of 1024bytes. I understand that the the conventional way for LabVIEW is to use the two TCP Read VIs to process the incoming TCP data. currently, I have set the 1st TCP Read VI to read 4 bytes first while the 2nd TCP Read VI to read 1024bytes. The VI runs fine but I am unable to see any data received on the chart/indicators on the receiving end.
Please point out my mistake. Thanks.
10-16-2008 04:25 AM
10-16-2008 04:28 AM
10-17-2008 12:25 AM