LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

loadExternalModule cannot find file

I am running the Test Executive Toolkit with LabWindows 5.01 under Windows NT. I specify an absolute pathname for LoadExtModule such as "c:\dir\subdir\extModule.obj" and I get a return module_id code of -2 which means the file cannot be found. I have created the .obj using LabWindows compiler. When I print the pathname to stdio I get 'cdirsubdirextModule.obj' Any suggestions?
0 Kudos
Message 1 of 4
(3,228 Views)
You probably know this, but \ is an escape character in string types for special characters. So \ is represented as \\ in formatting so your file string should be "c:\\dir\\subdir\\extModule.obj". Is that what you are sending in?

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,228 Views)
Thanks Chris, the pathname is now registering correctly, but the test exec still can't find the object module even when I specify an absolute pathname to the file. Is it legal to use loadExtModule in a function called by the test exec?
0 Kudos
Message 3 of 4
(3,228 Views)
As another point of attack on this problem, do you know if the .obj file was built using the same compatibility mode under which Test Exec is running? If the error code is now -4(invalid file format) (vs the previous -2) then you will want to rebuild the .obj file under a different compatibility environment.

Daniel R. Barbour (CertTech, L.L.C.)
0 Kudos
Message 4 of 4
(3,228 Views)