LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Compiler defines for different configurations.

I have several different hardware configurations that I need to deal with I am writing the code to deal with that but I don't want the compiler to compile the code so I am using #ifdef statements to do this. In other compilers that I worked with I could save a debug and Release version of several different configurations in the compiler define statement. I could then save the setup as Release Hardware Config 1, Release Hardware Config 2 Then All I would need to do to get the .exe for one of the configurations is go to build options and select the hardware configuration that I needed to compile. Is there a way to do this with CVI? If so How?

Greg
0 Kudos
Message 1 of 2
(2,893 Views)
Hi Greg,

Unfortunately, there isn't a way to do this with CVI, other than manually making flags and your defines in your actual code to determine what configuration to use. I'll go ahead and file a product suggestion for this to our development group to let them know that there is an interest for this. I would suggest you do the same thing as well at the product suggestion center. Thanks again for the feedback!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 2
(2,893 Views)