Dan DeFriese Posted May 4, 2010 Report Share Posted May 4, 2010 I can't upload my example. But on option is to execute the build spec(s) programmatically using a pre-processing VI. Using the Project API you can obtain the project root refnum using the Project::Root property node which feeds the Project::SetTag invoke node. For Project::SetTag invoke node inputs: TagName = "CCSymbols" Value = A semicolon separated string in the form "SYMBOL_1,VALUE;SYMBOL_2,VALUE;SYMBOL_n,VALUE" (e.g. "DEBUG,F;SIMULATE_A429,T") Hope this helps... I'll try to post an example after work. ~Dan Quote Link to comment
LogMAN Posted May 5, 2010 Report Share Posted May 5, 2010 QUOTE (tcplomp @ Apr 15 2008, 10:47 PM) Maybe I'm doing this wrong, but when I switch between conditionals, I right-click the project in the "Project Explorer" window and select "Properties..." In the "Conditional Disable Symbols" section, the only options I see are "Add" and "Remove Selected Items". So far, my only solution is to first remove my symbol, then re-Add it with a new value. Is there a cleaner way to change Symbols in a project? That would surely make my day. Cheers, -H Just click at the particular entry and change it (as shown in the picture) Quote Link to comment
Dan DeFriese Posted May 5, 2010 Report Share Posted May 5, 2010 I can't upload my example. But on option is to execute the build spec(s) programmatically using a pre-processing VI. Using the Project API you can obtain the project root refnum using the Project::Root property node which feeds the Project::SetTag invoke node. For Project::SetTag invoke node inputs: TagName = "CCSymbols" Value = A semicolon separated string in the form "SYMBOL_1,VALUE;SYMBOL_2,VALUE;SYMBOL_n,VALUE" (e.g. "DEBUG,F;SIMULATE_A429,T") Hope this helps... I'll try to post an example after work. ~Dan Here's the example code for setting the CCSymbols programmatically. CCExample.zip 2 Quote Link to comment
Popular Post drjdpowell Posted February 6, 2017 Popular Post Report Share Posted February 6, 2017 On 05/05/2010 at 0:43 PM, Dan DeFriese said: Here's the example code for setting the CCSymbols programmatically. CCExample.zip Thanks. Here's a more developed subVI that I've used successfully inside a Pre-build action. I use it to set a Build CC symbol to be equal to the Build Name, so different builds can enable different code. Set CC Symbol.vi 3 3 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.