LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ftp dos script

Solved!
Go to solution

Hello,

 

i have a question about ftp use

i recover openg tools it works but awfully long more than 3s for a 1ko file

 

so i took a look at Dos command line with system exec palette .I

It works well (~ 250ms)  but i'm forced to use scipt file each time i want to do an action

because command has to be done in one shot

 

Is there a way to do the same using special caracters like pipe or so to do the same without using files but just string variables ?

 

Regards

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 7
(3,433 Views)

Hi Tinnitus,

 

Thank you for posting your question on National Instruments Forum.

 

I guess you are french so I'll continue in french from here.

 

 

 

Je ne suis pas sûr d'avoir saisi toute votre problématique. 

 

Actuellement vous êtes obligé de lancer chacune des lignes de commande une à une à l'aide du VI Cmde Système, c'est bien cela ?

 

Vous souhaiteriez donc créer un regroupement global des instructions dans une seule chaine.

 

Avez vous essayé de concaténer une chaine avec des constantes de retour chariot entre chaque instruction ?

 

 

Je vous remercie par avance pour vos réponse.

 

Cordialement,

Guillaume H.
National Instruments France

0 Kudos
Message 2 of 7
(3,407 Views)

Hi,

 

Thanks Guillaume for your reply

 

For the moment i succeeded using a temp file containing all instructions i want to execute,  see attached vi.

 

At the top, code that works using tmp.file, at the bottom a failing try with simple string variable.

 

I would like to know if there is a way to do it without writing a temp.file each time and maybe if commands could be done

without establishing and quitting ftp connection each time

 

Regards

Tinnitus

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Download All
0 Kudos
Message 3 of 7
(3,398 Views)

I had found at FTB library (not mine Smiley Tongue ) sometime ago that may work for you. It uses TCP interface.

 

See http://forums.ni.com/t5/LabVIEW/send-picture-on-a-server/td-p/380957/highlight/true/page/2

 

Hope this helps

 

David

 

0 Kudos
Message 4 of 7
(3,390 Views)

Hello,

 

thanks for reply

 

yes it works but looks like  openg llb, and take took much time , more than 3s to upload a 1k file

 

while dos command line take 250ms open and quit included

 

reagards

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 5 of 7
(3,377 Views)
Solution
Accepted by topic author tinnitus

hello,

 

no other way ?

 

Regards

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 6 of 7
(3,354 Views)

I'm using the NI internet toolkit to send files using FTP protocol. Maybe you should have a look at it.

 

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 7 of 7
(3,345 Views)