LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

file dependent debug mode

Hello

I would like to avoid that my equipment  drivers are also in debug mode because the executable gets very large (15Mbytes compared to 3Mbytes in release mode). Can I set somewhere to exclude equipment drivers from being in debug mode? Using the dll for the equipment would help, but using dll is not an option since the program would not run on machines where the equipment was not installed (visa32.dll not found).
Any tips?  
0 Kudos
Message 1 of 3
(3,128 Views)

Compile your instrument drivers to obj files in release mode then add the obj files to your project or just place the obj in the instrument directory.  I can not remember if you need to remove or rename the .c file to prevent the compiler from using the c file in favor of the .obj file when you switch back to debug mode, but suspect that you do need to make the .c file unavailable.

To access Create Object File option; with the C source window open select the Options menu drop down.

Message 2 of 3
(3,110 Views)
Thanks, this is a very good suggestion and so far it seems to work.
0 Kudos
Message 3 of 3
(3,100 Views)