LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for 6.1 code to send XML string over FTP to NI R/T Computer

I am looking to send an XML string using FTP over an ethernet connection to an NI-8176 R/T computer in a PXI rack. Any VI examples will be much appreciated.
0 Kudos
Message 1 of 6
(2,685 Views)
There's the Internet Toolkit that includes FTP VIs and some examples. Info on that can be found here. If you don't want to spend any money, you can use the FTP client that's part Windows and the System Exec function. NI Devleoper zone has some articles/examples here and here on using the FTP server on the PXI controller and System Exec.
0 Kudos
Message 2 of 6
(2,685 Views)
Dennis. First off, I appreciate the response.
Except for this one application, I have limited used for the NI Internet Toolkit, so I would prefer to assemble something using my current LabvIEW package. Using either DOS or Explorer doesn't seem to fit well with what I am doing. I simply want to take a large chunk of numerical data, which is in XML format, and send it to the R/T computer using FTP. At that point, the VI's running on the R/T computer will decode the XML file and use it to command a simulation profile to a motion simulator. NOTE: The sending of the XML file to the NI-8176 R/T computer will occur as the user is stepping through a GUI on the host. So, the FTP send to the R/T computer needs to be transparent to the user, if possible.

Th
anks for the help.
0 Kudos
Message 3 of 6
(2,685 Views)
If you look at the second example, you'll see that there is no user involvement required if you call it as subVI (though yoou'll need to wire the terminals to the connector pane first). The example shows a FTP GET from the server to a client. With the FTP server running on your PXI chassis, what you would do is a FTP PUT from your client computer. I do it all of the time.
0 Kudos
Message 4 of 6
(2,685 Views)
In article <50650000000500000028290100-1042324653000@exchange.ni.com>,
"utlax88" wrote:

> Dennis. First off, I appreciate the response. Except for this one
> application, I have limited used for the NI Internet Toolkit, so I would
> prefer to assemble something using my current LabvIEW package. Using
> either DOS or Explorer doesn't seem to fit well with what I am doing. I
> simply want to take a large chunk of numerical data, which is in XML
> format, and send it to the R/T computer using FTP.

Use the OGIC FTP library on OpenG.org:
http://openg.org/tiki/tiki-index.php?page=OpenG+Internet+Connectivity+Tools

Pure G.

-Kevin
0 Kudos
Message 5 of 6
(2,685 Views)
Just to through another idea out there...

WHy the requirement for FTP?

I have written a number of RT apps and generally avoid FTP except when I want to manualy blow away some files etc.

I make use of the VI server technology. it is Pure G, fast and easy to use. I can debug on my development machine and watch both ends at teh same time. When its ready, I target the RT platform and BINGO it works there the same way.

You could set up the VI on the RT target to write th XML file just like you have asked.

But with the VI server approach, you are just one Functional Golbal and a "skip if busy" click away from being able to updae your operating parameters on the fly ine your RT loop.

Trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(2,685 Views)