LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to file on another computer

How can I write to a file on another computer using labview. My
computers are networked together using Windows networking.

thanks,
stephen
0 Kudos
Message 1 of 3
(2,920 Views)
If file sharing is enabled use the usual file functions with UNC paths i.e.

\\MACHINE\C\DIR1\FILE.EXT

--
Jean-Pierre Drolet
Scientech R&D inc.
Cap-de-la-Madeleine (Quebec)
CANADA


"Stephen Gray" a écrit dans le message news:
3A1586EB.434A5D19@swri.org...
> How can I write to a file on another computer using labview. My
> computers are networked together using Windows networking.
>
> thanks,
> stephen
>
0 Kudos
Message 2 of 3
(2,920 Views)
> How can I write to a file on another computer using labview. My
> computers are networked together using Windows networking.
>

This is something that is a little different with each
OS. You either need to mount the drive of the remote
computer, or you use a string that includes the computer
name, usually called a UNC name.

Assuming you are on a PC, try using something like
\\PCName\d:\directory\file.

This is the path to the file, Open it, Write to it, and
Close it. If you have problems, it may very well be a
permissions problem. The remote computer will have to
allow you to write to the disk. Typically this will
involve going to the remote computer and publishing
the drive or directory.

Once you have permission and figure out what the path
looks like, you
just use the regular file I/O functions.

This is the most straightforward approach and like I say,
its done slightly different on different OSes. For
computers that are more remote, or when you are changing
OSes, you can use ftp client VIs or lots of other tools.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,920 Views)