LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Running in Compiler Define Switch?

Difficult to know how to ask this question?  Is there a #define that lets me know if I am running in CVI or as an executable.  Would be nice for debuggging, as I can put in test code that would not execute when I create the executable for distribution.

 

Just wondering..

 

Thanks, David

0 Kudos
Message 1 of 3
(3,622 Views)

Hello Microanalytics,

 

If I understand well, you're asking if there's a define that allows you to separate code run in the Debug configuration from the one run in the Release configuration. If that is so, I think this resource might be of help.

 

Best regards,

= Nelu F. || National Instruments.

 

0 Kudos
Message 2 of 3
(3,618 Views)

You can use BeingDebuggedByCVI () instruction too.



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 3 of 3
(3,614 Views)