LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get a library function error when running system()?

I am running a DOS program through a system() command from within a CVI program in CVI 2010. 

It works on my laptop, but on my PC it crashes with a library function -3 error.  Why is that?

thanks,

Joel

 

 

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

As you can see in the online help, return code -3 stands for "File not found": it could be that you are passing a wrong pathname to the function.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(2,881 Views)

The function panel help says:

-3 File was not found.

I guess you did allready check that this command exists on your PC.

How do you call that command ? With full path ? Or just the command? Then there may be differences in $PATH.

 

 

0 Kudos
Message 3 of 4
(2,880 Views)

Thank you for your courteous answers.

joel

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