LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

network comunication is slow and jump number

I need to read from a hardware through the serial port of my computer, then I have to transmit the data through the network. Then my computer need to receive and answer from another computer at the network. This is the program lecciclica5.vi that I´m attaching.
Another computer at the network has to receive the data and send an answer, this is the program dataclient32.vi that I´m attaching.
These programs are slow and they are skiping data,can anybady watch the programs and tell me what can I do?
Thanks
Download All
0 Kudos
Message 1 of 2
(2,501 Views)
HI Joe123,

Your posted code will not open without errors so I can not run your examples.

I did get them open so I think I can give you some ideas.

1) Establishing a TCP/IP connection can take a long time. It can go faster if you use the IP addresses instead of the computer name. You should restructure your code so that you opene a connection and keep it open before doing anything else. This will take care of of your biggest delays and missed numbers.

So,
The server should;
1) Listen for connect
2) Do the serial I/O
3) Transmit number
4) repeat 2-3 until done
5) close conncetion when done.

The client should;
1) Open conncetion
2) read data
3) dispaly data
4) repeat 2-3 until done
5) Close TCP conncetion.

I hope this help,

Ben

Ben Ray
ner
Certified LabVIEW Developer
www.DSAutomation.com
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,501 Views)