LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a file to a remote computer

I have built a remote front panel ( web publication) to operate a controller connected to the Server computer. Now I want to get some data from the Server VI to be stored at the Client Computer. How can I transfer a file from the server computer to the client computer. I am aware of the TCP, Datasocket communication. I want to know whether this will require two VIs...(Server VI and Client VI). Currently I have only one VI which I want to access remotely. Is there a way to program the Server VI to store data at the client computer. I am a new user of LabVIEW, could you please detail the answer even though it is obvious thing -:).
 
Please advice asap,
Thanks in advance,
Dsur 
0 Kudos
Message 1 of 6
(3,752 Views)
Dsur,

So your are trying to transfer a file to another computer and you don't want to have LabVIEW installed?  If that's the case you would not be able to use the Server-Client VI arrangement since you would need to have LabVIEW on both sides (you might search the Example Finder for some Server-Client VIs for DataSocket, TCP, etc.).  You could try to build the Client VI into an EXE and use that on the client computer.  Some other options are on the Communications palette (Functions >> Communications).  It is basically up to you when determing how you would like to communicate.  If you have the Internet Connectivity Toolkit you could also do FTP as well.  There are a lot of options for you to choose from. 

Repost if you have any other information.
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 6
(3,717 Views)
I am aware of the TCP, Datasocket communication. I want to know whether this will require two VIs

Yes it will. DataSocket requires LabVIEW at both ends.

Can you mount the Client drive as a shared drive on the server computer? That's a bit backwards from usual, but if you can do it, then just treat it as another drive and write your file on the shared drive to begin with.

Or you could write it to a SHARED folder on the server, and let the client pick it up with ordinary networking stuff.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 6
(3,707 Views)
Hi,

Thanks a lot for your help. I was wondering whether Datasocket requires LAbVIEW full version or just The Run-time Engine. I was under the impression that run-time engine would be sufficient with a executable file to run the Data socket VIs. Please correct me if I am wrong. Thanks again,

Dsur.
0 Kudos
Message 4 of 6
(3,695 Views)
I was under the impression that run-time engine would be sufficient with a executable file to run the Data socket VIs.

You are correct, it will run with the RTE on one end (or both).

You asked if it required a VI on each end, and it does. But the VIs can be in apps if need be, that works fine.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 5 of 6
(3,690 Views)
One other question: This is regarding Web Publication. I have created a Remote Front Panel for an executable file at the server using the Web Publizing Tool and I have included the executable in ' Startup' to run when the server computer starts up. When I do this and try to access this application from a remote computer, it gives a 'page not displayed'. Instead If I go to the folder where I have stored this executable and " www" folder with the publized page and opened from there and then try to access it remotely from a client computer..it works fine..... What may be the reason that the Remote access dont work when the executable runs at startup. One reason I could think of was that the "www" and the executable are not at the same directory when the executable is run at startup..so I placed the "www" folder also at the startup...But this dont help??  Have anyone faced this problem before or have any clue which this is happening?....
Please advice asap,

Thanks in advance.
0 Kudos
Message 6 of 6
(3,683 Views)