LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file transfer from host PC to PXI 8186 controller

How can I transfer a text file for use in a VI from my host computer to the hard drive of my 8186 controller? Is this just a case of using networking, or is there some function in LabVIEW that will allow me to do this?

Otherwise, is it possible to include a networked device when constructing a path name using strings? If so how would this be done and will accessing a file from a networked device work?
0 Kudos
Message 1 of 3
(2,994 Views)
Hi

If you have Internet Toolkit installed on your computer, then you can use FTP vis available for transferring files using file transfer protocol.
Even If you don't have the toolkit you can write your own vis to serve the purpose.
Follow these steps to transfer file through TCP

on host Side
1. Read the file. (If Files are too large then you should read them in parts and show progressbar on panel so that user will not find your program 'Not Responding')
2. Send the read data(either entire file or part of file)to the RT controller user TCP Vis

On RT side

1. Listen for the connection and then Read data from TCP
2. Append the Read data to specified file.


The description given above is not in detail, but I think it clarifies the concept.

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 2 of 3
(2,984 Views)
Hello Tom,

If this is a one-off transfer you could use a USB connected device, such as a USB flash drive or a USB floppy drive to transfer the file between controller and host PC.

Also you could use FTP. Look at the following links to see how this can be done and instructions to follow.

http://digital.ni.com/public.nsf/websearch/3CFA792CB50D1F3A862568CD008053CE?OpenDocument
http://digital.ni.com/public.nsf/websearch/EF2C5AE37FE3672186256C3D005489A0?OpenDocument

These links also give details of how to transfer the files programmatically if this is the application that you require.

Regards

Hannah
NIUK and Ireland
0 Kudos
Message 3 of 3
(2,974 Views)