08-29-2012 12:35 AM
I am trying to use System Exec to call Irfanview to open a Jpeg file, and the following error occurs:
"Error 2 occurred at System Exec.vi. Command was "iview32 c:\test3.jpg /hide=3 /pos=(30,30)"
"LabVIEW: Memory is full."
"NI-488: No Listeners on the GPIP"
I then tried to add "cmd /c" in front of the command but the DOS windows just flash open and close and then nothing happen.
I have no problem opening the jpeg in DOS command window.
Anyone can help?
Solved! Go to Solution.
08-29-2012 02:15 AM
did you try to give the full path to 'iview32'? (as in 'c:\program files\iview32\iview32.exe' (I'm just guessing at the actual path information, you'll have to find the real path))
08-29-2012 09:39 AM - edited 08-29-2012 09:43 AM
you do not need to specify the full path as long as you have the path in your path variable
I think the problem may be that you are using the wrong program name I think it is i_view32 not iview32
08-29-2012 10:08 AM
The name "i_view32.exe" is the correct executable name. However, the path will also be dependent on the bitness of the OS. If installed in the default directory, this will be "C:\Program Files (x86)" on 64-bit operating system.
08-29-2012 10:34 AM
At least on my system I also get error 2 when I don't specify the path. I think IrfanView does not add its installation directory to the path variable so it is not found when only providing the exe name.
08-29-2012 10:44 AM