LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tftp on Labview 2010 and windows 7

I am having difficulty running tftp on my Labview 2010 on windows 7 using the system exec vi. I already enabled tftp client on windows 7. What is interesting is that tftp runs when I execute it directly from the command prompt but gives an error when I try using the system exec vi. The error says tftp is not recognized as an internal or external command, operable program or batch file . Please help. I have attached the vi I used

0 Kudos
Message 1 of 6
(4,576 Views)

If you use system exec, you either have to specify the entire path to the executable or if it is a system utility, launch the Windows Command Shell utility first with "cmd /c" and prepend the rest of your command after that. System Exec is NOT the Windows command shell but simply a way to spawn a new process. As such it has no notion of "Windows", "System32" and what else directories to search for unqualified command utilities. The only paths it probably will recognize for such unqualified commands is the "current directory path" and possibly the directories in the PATH environment variable. It won't look for directory paths that are specified for the Windows Shell in the registry.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 6
(4,567 Views)

My problem is this, if I initiate command prompt from the system exec vi using the cmd \c command and execute tftp afterwards, it doesn't work. It doesn't recognise tftp even when I cd into the system32 folder where the TFTP.exe is located. However when I do the same thing from Run (in windows 7) the command prompt recognises tftp. Why?

0 Kudos
Message 3 of 6
(4,545 Views)

Maybe because you have a 64 Bit Windows installation with according LabVIEW installation?

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 6
(4,541 Views)

I too faced similar issue when I am relying on cmd.exe. I referred the useful link https://decibel.ni.com/content/docs/DOC-8301 that talks about lower level tftp details.

My issue was solved by this.

0 Kudos
Message 5 of 6
(4,205 Views)

Here is a simple TFTP implementation written in LabVIEW. This only does the TFTP write. It does not support an external application sending data to a LabVIEW applicatoin.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 6
(4,194 Views)