LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

text file transfer with datasockets

Hi,

I have a little problem with datasockets. I don't know how to transfer a text file from one computer placed in my local network to another computer placed in another remote network. I want to use dstp protocol with datasockets but I don't know how to do it, some ideas?

I have been testing an example from national instruments, I attach here, but this example send images instead of files. I would like to modify it in order to send text files... but I don't know how can I do it.

Another question: I have been testing this example in the same computer and it works but I have tested it remotely and it doesn't work, I am running DS sendImage.vi in one computer and DS receiveImage.vi in the another one but doesn't work. What changes I must have in order it works remotely?

Thanks,

ToNi.
0 Kudos
Message 1 of 7
(3,247 Views)
Hi,

I have found a very useful example from national instruments. I attach here. I have to pass data from one computer (computer A) in my local network to another computer (Computer B) in a remote network.

In my computer A is running DS Buffered Writer Example.vi and also the DataSocket Server. In computer B is running DS Buffered Reader Example.vi and not DataSocket Server. DataSocket Server only runs in computer A.

In the target field of DS Buffered Writer Example I put the IP address of computer B (dstp://BBB.BBB.BBB.BBB/buffer)and in the target field of DS BUffered Reader Example I put the IP address of computer A (dstp://AAA.AAA.AAA.AAA/buffer). It seems that computer B connects to computer A because datasocket server puts processes connected to 1 and packets received and sent increases but the problem is that in computer B it says to my an error: Not permitted to create new items. In computer A the error is different, it says to me:

Error -2146810225 occurred at DataSocket Read Variant.vi
Error: Not Connected: Connection refused. No application on the host machine to service the connection.

Do I have to configure the datasocket server manager? If so, how? In datasocket server manager I create a new item named buffer (the same it appears in the target field I indicated above).


Please, I need help.

Thanks,

ToNi.
0 Kudos
Message 2 of 7
(3,237 Views)
The connection is refused from computer A to computer B because of to connect to computer B it is not direct, computer B depends on an another computer (the host), for this reason the IP i put in the target field of the writer vi can not connect to computer B through a host computer. How can I solve it?

and how can I solve the problems I explain in the previous post? why computer B can connect to computer A but It can not read from it? I understand because computer B can connects to computer A, and it is because to connect to computer A there is no host computer to access it but I don't understant why I can read ....

Thanks very much,

ToNi.
0 Kudos
Message 3 of 7
(3,235 Views)
Hi again,

please I need help...

Why all examples with datasockets works OK in the same computer (local network) but don't work when I put the server (DS Buffered Writer Example.vi)in one computer placed in a local network and the client (DS Buffered Reader Example.vi)in another computer placed in a remote network? They can not communicate.... when they are in different networks.... What is the problem? I attach here an example.

Thanks very much,

ToNi.
0 Kudos
Message 4 of 7
(3,207 Views)
0 Kudos
Message 5 of 7
(3,206 Views)
Perhaps... is it possible datasocket uses a port that I have closed in my router? If so, How can I change the port for connecting?

Thanks,

ToNi
0 Kudos
Message 6 of 7
(3,199 Views)
I have seen in DataSocket Server Diagnostics that I have 2 subscriptions for my item 'buffer', my computer in the local network and the computer in remote network, but for some reason, computer on remote network (reader) can not read the value of the item that computer in local network (writer) writes to DataSocket Server..... Why? Computer (reader) in remote network connects successfully to dataSocket server that is placed in the same computer as the writer.

Can anyone helps me please?

I don't know what to do....

ToNi.
0 Kudos
Message 7 of 7
(3,186 Views)