LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Datasocket server diagnostics in a VI

Is there any way of getting the diagnostics e.g. subscriptions and Rx/Tx packet info into a VI progmatically? I would like to show my users Datasocket activity without having them leave the front panel.
0 Kudos
Message 1 of 5
(3,012 Views)
Looking through some LabVIEW info on the main NI site (http://www.ni.com/datasocket) I can see examples with a "DS Status" module. I can't see this in my version (7.1). Is there an equivalent? Thanks
0 Kudos
Message 2 of 5
(3,010 Views)

I founda  property node to get the Buffer Utilistation and Connection Status.

 

I'm still not sure how to get more diagnostics information - similar to the DataSocket Server Diagnostics tool, if that's possible!?

0 Kudos
Message 3 of 5
(3,004 Views)
Ok, In my voyage of discovery I think I've found all that I need except one thing:
 
I don't understand which DataSocket Connection Status Codes relate to the following "statuses":
 
Invalid
Unconnected
ConnectionActive
ConnectionIdle
ConnectionError
Connecting
 
There is no info in help (or that I can find online) to describe which is which.
0 Kudos
Message 4 of 5
(2,995 Views)
Solution found:
 
Invalid = 0
Unconnected = 1
ConnectionActive = 2
ConnectionIdle = 3
ConnectionError = 4 + Error Code
Connecting = 5
0 Kudos
Message 5 of 5
(2,988 Views)