LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasockets

Can some one help me concerning datasockets please?.

I am currently writing an app in CVI where there is need to communicate through datasockets to a separate app written in Visual Basic.

I have run the CVI examples Reader and Writer and they communicate with each other using the url "dstp://localhost/wave" and I can see that it has been assigned tcp adress 127.0.0.1 port 3015. Could you tell me please where the dstp URL has been assigned these adresses and port no?.

How can I make the socket talk to, for example, tcp adress 127.0.0.5, port 7011?. Can I assign these somewhere or can I assign this to "dstp://otherhost/mystuff" for example?. Can I define this in the socket somewhere?.

The VB app I want to communicate with has the ability to change tcp adresses and port numbers and I want to do the same to suit.

Many Thanks
MikeK
0 Kudos
Message 1 of 3
(3,275 Views)
The datasocketserver is needed to exchange data on the network or between PC's.
The server is often located on the computer, where the data is generated.
To send data from the computer to the data socket server the ip-adres is then local.
The portnumber is fixed to default data socket. The other computer can read the data from anywhere on the network.
Only the computername or ip-adres is important, when connecting the server the asking application comes with a popup window. There you choose the computer in question, then you will see the data socket server, wo is active. You also connect to the datastream you want to read.

You can connect the reader in a auto-update mode or manual. Auto-update means, that the server will send new data if it is available, it will trigger a callback function.


succes hans willemsen
0 Kudos
Message 2 of 3
(3,252 Views)
Hi Hans.

Thanks for your reply.

As it turns out I ended up ditching datsockets all together. It appears to be at a higher level and a bit too proprietary. Instead I used straight TCP/IP client/server software. Now I have control over the IP address, the port number and it can talk to any other application (with the appropriate ip address etc).

I followed the examples in CVI client.prj and server.prj.

Thanks again
Cheerio
Mike
0 Kudos
Message 3 of 3
(3,208 Views)