LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasocket Problem

For some reason my client and server programs (attached) do not work when I use Datasocket on my LAN. I have tested the VIs by running them on the same machine and they both work ok. I also checked both machines are on the same subnet and I opened port 3015 in my router but nothing works - the client app. still cannot read from the DS server.
 
Can anyone help? Thanks
Download All
0 Kudos
Message 1 of 13
(3,907 Views)

If they work on the local machine, then either you aren't configuring them right to talk across the network, or the network is not letting them talk...pretty much the only options there...Talk to the system admin about the network configurations.

What errors (if any) do you get when trying to send/receive?

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 2 of 13
(3,888 Views)
I don't get any error message from the Client when I use it on the other machine. All I notice is the "Datasocket Status" field for the connection flipping between "ConnectionActive" and "Connecting".
 
If I watch the DataSocket Server window on the PC running the server it only ever reports 1 Process Connected. Obviously neither of these occur when I am running the client locally so it must be network related.
 
I opened port 3015 - what else could be blocking DataSocket? Windows Firewall reports the DataSocket Server is listed as an exception.
0 Kudos
Message 3 of 13
(3,879 Views)

I just noticed, when I first run the client app the DataSocket Server Status window reports 2 Processes Connected, but the client doesn't connect and remains "Connecting". This then crashes the DataSocket Server on the other PC until I STOP the client app.

0 Kudos
Message 4 of 13
(3,878 Views)

There is one VI missing, can you send that?

Not too sure at the moment what is going on, but DataSockets are being phased out, you may want to switch to TCP or PSP anyways...

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 5 of 13
(3,873 Views)
Sorry I can't see a missing VI - there are two attached to the first post - Client.vi and Server.vi.
 
I am using LabVIEW 7.1 with this application, and that is fixed, so I don't see a move to Shared Variables etc. as an option.
0 Kudos
Message 6 of 13
(3,861 Views)
"The Launch DS Server if Local URL.vi" is a 7.1 example vi that I don't have, and is in your Server.vi
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 7 of 13
(3,846 Views)
Launch DS Server if Local URL.vi attached.
0 Kudos
Message 8 of 13
(3,841 Views)
OK, the NI example Reader for DataSockets shows that you have to start the datasocket server on the client machine as well...So add that Start Server vi (the horribly named  "Launch DS Server if Local URL.vi" ) you sent me to the client and check it.


Message Edited by TWGomez on 04-08-2008 07:03 AM
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 9 of 13
(3,834 Views)
I've tried that but it hasn't made any difference.
 
I tried using the DS Reader.vi and DS Writer.vi on the same network and they also don't work - although this time the reader reports Error 56 - "The network operation exceeded the user-specified or system time limit".
 
This makes it look like a network issue, but I can't see what's wrong or what I need to change on my router to allow Datasocket to work?
0 Kudos
Message 10 of 13
(3,825 Views)