LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programmatically send a configuration file to an RT target?

I'm creating an XML configuration file on the host with a configuration VI.  This allows me to parameterize the app VIs to allow changing the number and allocation of ports, controls, and indicators.  The configuration file is used by both the host main app VI and target VI.  When the operator clicks the save button on the configuration VI that exports the XML file, I'd like it to automatically transfer the file to the RT target (a PXI).  How can I do this?

I saw that there is an Internet Toolkit that provides FTP, but I have a hard time justifying $500 just to copy a file over.  I suppose I could flatten out the XML into a string and send that to the target when the app starts rather than send a file.  Any better ideas?

Keith.

0 Kudos
Message 1 of 4
(2,828 Views)

You could create a batch file for ftp commands and run it from a command window in Windows on the host PC.

0 Kudos
Message 2 of 4
(2,804 Views)
Hello,

You can also use the FTP Put File.vi to programmatically transfer a file to your Real-Time Target, however, for this you will need the LabVIEW Internet Toolkit.

Kameralina

Message 3 of 4
(2,787 Views)
Yes, but as I said, it's hard to justify the additional cost.  Regardless, I think sending the XML as a shared variable string will work just fine.  In fact, I can have the target VI block on a changed value event on the SV before it can proceed, guaranteeing the configuration is in-synch with the host.

Keith.

0 Kudos
Message 4 of 4
(2,782 Views)