09-12-2008 11:37 AM
Hi,
is there a (perhaps 3rd party) solution to connect to NI DataSocket from Python?
Piotr
09-15-2008 01:23 PM
A google search turned up this result http://www.evolt.org/node/60276
Hope this helps
09-15-2008 01:40 PM
yes - Python has built-in library for sockets.
My questions was more if there was/is a lib that encapsulates NI DataSockets.
BTW: is there a technical description what is it 'under-the-hood' when one accessesa data socket via 'dstp://machine/item'
If I understand correctly dstp uses TCP port 3015, right?
Piotr
09-15-2008 03:27 PM
Hi Piotr,
There is no encapsulated library that you could use outside of LabVIEW to work with DataSockets. Here is a link to a white paper on how LabVIEW uses datasockets. To answer your question on what port to use, you can use any of the ports not already being used here. So port 3015 should work fine as long as nothing else is using it.
Regards,
09-15-2008 03:30 PM
09-16-2008 03:37 PM
ActiveX control, a LabWindows/CVI C library, and a set of LabVIEW VIs, so you can use it in any programming environment."
Here you can find the datasocket library for LabWindows\CVI. Here is a link to how to create a Datasocket reader/writer with Measurement Studio ActiveX controls.
You should be able to use the ActiveX controls that are supported by Python to talk to the DataSocket API.
Regards,