LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasocket Problem

I have two computers connected together with a LINKSYS ethernet hub. I can successfully ping each computer. I'm running a datasocket server on one computer and am trying to write to it, across the ethernet connection, with the second computer. When I instigate a datasocket write, I can look at the server computer and see the connection being made and the number of packets increasing. I can also see the lights blinking on the ethernet hub. (Because of this I feel that the computer writing to the server is functioning properly.) However, when I try to do a datasocket read, I come up with no data, no error, no nothing. I've configured the data socket server manager, correctly, as far as I can tell. I have permissions set to everyhost, I'm using defaultreaders and defaultwriters. I've turned off my firewall to eliminate that factor. I'm at the point where I don't know what to try. If I were to guess, it appears to me that the server is receiveing the data but for some reason refusing to pass it on, making it impossible for me to read it. Any ideas would be appreciated.
0 Kudos
Message 1 of 14
(3,955 Views)
Hi,

I'd try, as a first test, putting the whole system in the same computer and use the IP address 127.0.0.1 in the URL. Then you could connect the two computers with a cross cable so the network doesn't go through any other machine. This way you may be able to isolate the reason for the problem.

Good luck,

Marce
0 Kudos
Message 2 of 14
(3,950 Views)
I agree with Marce. Use dstp://localhost/data_item instead of dstp://192.168.1.1/data_item (localhost=127.0.0.1).
Maybe you can post your DS read code or a picture of it?

aartjan
0 Kudos
Message 3 of 14
(3,949 Views)
Yes, I've done that. It does work on the same computer useing localhost.
0 Kudos
Message 4 of 14
(3,946 Views)
You mean that the read function works correctly when running on the localhost? Have you tried using the application I shared with you here?

aartjan
0 Kudos
Message 5 of 14
(3,939 Views)
One more comment on how the server is setup: When I configure the DataSocket Server Manager I created 2 Predefined Data Items. I call these data items SCPI_WRITE and SCPI_READ. Each has its Read Access set to DefaultReaders and its Write Access set to DefaultWriters. In the permissions group I have both DefaultReaders and DefaultWriters set to everyhost. Does this sound correct? I've not got much experiment in this arena so it's sort of trial and error.
0 Kudos
Message 6 of 14
(3,937 Views)
I can't use client.llb, I believe you said it was LV 7.1. We only have 6.1 here.
0 Kudos
Message 7 of 14
(3,931 Views)
You shouldn't really change the permissions of the default readers and default writers. You should create your own group(s) (press "new group" button) call it "my project permissions," give this group the proper access permissions and then assign this group to both your data items. You can create two groups if you need diffrent permissions for your read and write item.

hope it helps. Let us know.

aartjan
0 Kudos
Message 8 of 14
(3,929 Views)
Bummer..
Not sure whether you are interested, but in case you want to take a look at it, I attached an html description of Client.llb to this message.

aartjan
0 Kudos
Message 9 of 14
(3,926 Views)
I tried creating my own group, but it didn't alleviate the problem. I've zipped up some code and I'm attaching it for you to look at if you want to. Perhaps you'll see something! Thanks for the help
0 Kudos
Message 10 of 14
(3,732 Views)