LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Transfer from PXI RT (pharlap) to Host

I'm gathering data using a PXI RT system running pharlap, the acquisition system is controlled from a host, a laptop running Windows XP.  LabVIEW 2011.

 

As the data files on the PXI are created, I'd like them automatically transferred to the host.  That is, I want the files automatically pushed from target to host during periods where it will not effect the determinism of the RT code.  Can you please advise on the best method and point me to some suitable example code.  I've looked at TCP, then FTP, but so far I've been unable to successfully debug and run the examples. 

 

Is an add-on required to use the FTP files?

Are there certain places where forward and back slashes must be used in paths? I frequently get error 1, related to bad file path characters.

I'm definitely communicating with the PXI okay, I can see files on the target using Internet Explorer.

TCP is also working for me, but I'm finding it difficult to flatten string, then unflatten and reconstruct the file on the host.

0 Kudos
Message 1 of 4
(3,153 Views)

Hello,

I usually collect files that are on the RT target from the Host PC via FTP, I don't think it slows down the code that executes on the RT target, but one thin is that since on most NI's RT targets there is an FTP server you can use an app that's on the host PC to connect to it to import the files you need and you don't need additionnal code on the target.

 

That would be my advice, it's this could be ok for your application I could post some code to help you with that if you need.

 

To use FTP functions I think you need to have the Internet toolkit for LabVIEW, and there is no need for a runtime licence for deployment.

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 4
(3,152 Views)

hi, sounds reasonable, I could pull the files to the host, same end result.  I'd take a look at any code you have if it's easy enough for you to post.

 

Seems a bit strange to pay £429 just to achieve something that can be normally be done from the command line of a dos prompt.  If you've bought LabVIEW Full and LabVIEW RT, you would think you would get the capability to transfer files automatically from target to host.

0 Kudos
Message 3 of 4
(3,148 Views)

I'll have a look to see what I can post but you can start by looking at the example that ships with the toolkit called "FTP Browser.vi" (Help >> Find examples... >> search tab >> FTP)

 

NI knows one thing : if you want to implement an FTP in LabVIEW it will cost your company much more than £429 in terms of development time... so they'd be silly to not make you spit it. Smiley Tongue


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 4
(3,147 Views)