LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a DataSocket Spy? (like NI Spy for VISA)

I have a distributed application, running on NT, 24/7. It collects a constant stream of serial data and records it/distributes it w/ Datasocket. Periodically, the program halts for ~10 secs. I'm trying to figure out what is happening. NI Spy was handy for teh serial, is there similar code for Datasocket? Has anyone had simialr problems?
0 Kudos
Message 1 of 6
(3,102 Views)
If you do a little research on the net, you can find what is called a "packet sniffer" which will log all network packets that hit a network adaptor. You can probably configure it to look at only one TCP/IP port. Do a search on download.com for "packet sniffer" - you will find several results. The DataSocket server is on port 3015 and the clients are randomly assigned a port number.

-Jim
0 Kudos
Message 2 of 6
(3,102 Views)
Thanks, I found Ufasoft's "Sniffer" at Download.com. It did display the UDP communication of the DataSocket. I assume DataSocket is UDP, because I didn't see any TPC communication with the Sniffer. Either that, or the Sniffer was picking up UDP traffic on the LAN, and missing Datasocket entirely.
0 Kudos
Message 4 of 6
(3,102 Views)
Yes, DataSocket probably does use UDP instead of TCP. This would be due to that fact that UDP does not require a gaurantee that a packet will make it to its destination (thus making it faster). DataSocket is an instantaneous snapshot of values are therefore it would be a waste of time to resend packets with old data, just because they didn't get there.
0 Kudos
Message 5 of 6
(3,102 Views)
Is "Find Fast" Running?

If so, shut it down. It will occationally wake-up and do silly stuff just to make MS products load faster.

While it is being stupid, it interupts other tasks.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 6
(3,102 Views)
One more thing that I forgot to mention is that, I am pretty sure that DataSocket is a proprietary protocal, which means that NI has not published the spec. It is however, not encrypted. That may and should change in the future. Hopefully NI will add authentication, as well.
0 Kudos
Message 6 of 6
(3,102 Views)