04-18-2012 10:26 PM
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
04-19-2012 12:18 AM
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.
04-19-2012 10:59 AM
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?
04-19-2012 11:10 AM
Maybe because you have a 64 Bit Windows installation with according LabVIEW installation?
01-29-2013 06:05 AM
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.
01-29-2013 10:39 AM
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.