LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
This content has not been tagged yet
2 Pages V   1 2 >  
Reply to this topic Start new topic
> Conditional Disable in build settings
Ton
post Apr 15 2008, 11:39 AM
Post #1


CCT It
*****

Premium Member
Posts: 1258
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


It would be nice if I could set the conditional disable settings in the build settings.

This would allow for multiple build settings that could incorporate into a single project file.
I have the feeling this can be done with separate lvproj files but that feels like a workaround.

Any thoughts on this?

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post Apr 15 2008, 11:39 AM
Post #















Tags
This content has not been tagged yet
Go to the top of the page
Quote Post
ASTDan
post Apr 15 2008, 12:55 PM
Post #2


Very Active
***

Member
Posts: 133
Joined: 29-May 07
From: Lansing, MI
Member No.: 8614
Using LabVIEW Since:1997
LV:8.5 ,. ,.
United States us_michigan Nothing Selected


I think it would be cool if the disable structure had an input like the Case structure i.e. boolean, enum, string, etc

Dan

--------------------
Certified LabVIEW Developer
NI Alliance Member


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ton
post Apr 15 2008, 01:15 PM
Post #3


CCT It
*****

Premium Member
Posts: 1258
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (ASTDan @ Apr 15 2008, 01:55 PM) *
I think it would be cool if the disable structure had an input like the Case structure i.e. boolean, enum, string, etc

What kind of usage does this have over the current disable structure?

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
ASTDan
post Apr 15 2008, 01:42 PM
Post #4


Very Active
***

Member
Posts: 133
Joined: 29-May 07
From: Lansing, MI
Member No.: 8614
Using LabVIEW Since:1997
LV:8.5 ,. ,.
United States us_michigan Nothing Selected


The advantage would be I could understand how it works. I haven't been able to understand the conditional disable strucure.

Granted it doesn't take much to confuse me.

Dan

--------------------
Certified LabVIEW Developer
NI Alliance Member


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
JDave
post Apr 15 2008, 03:56 PM
Post #5


Extremely Active
****

Premium Member
Posts: 426
Joined: 2-February 05
From: Southern California
Member No.: 1519
Using LabVIEW Since:2004
LV:8.20 ,7.1.1 ,8.0.1
United States Peru us_california


QUOTE (tcplomp @ Apr 15 2008, 04:39 AM) *
It would be nice if I could set the conditional disable settings in the build settings.

This would allow for multiple build settings that could incorporate into a single project file.
I have the feeling this can be done with separate lvproj files but that feels like a workaround.

Any thoughts on this?

Ton

I also have wanted this, and made a feature request for it a while ago. Seems like a pretty reasonable request. Conditional disable flags affect the entire project, and the build settings build the project into an executable.


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Yair
post Apr 15 2008, 04:49 PM
Post #6


Extwemely Active
*****

Premium Member
Posts: 1551
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:7.0 ,7.1 ,.
Israel Nothing Selected Nothing Selected


QUOTE (ASTDan @ Apr 15 2008, 04:42 PM) *
The advantage would be I could understand how it works. I haven't been able to understand the conditional disable strucure.

You set symbols for the entire project (by right clicking on the project in the project tree, if memory serves) and then you choose one of the symbols to switch all the structures throughout the project. I assume the help for the structure covers this in more detail.

--------------------
More than meets the eye...


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
ASTDan
post Apr 15 2008, 05:09 PM
Post #7


Very Active
***

Member
Posts: 133
Joined: 29-May 07
From: Lansing, MI
Member No.: 8614
Using LabVIEW Since:1997
LV:8.5 ,. ,.
United States us_michigan Nothing Selected


Wow I never realized it was tied to the project. No wonder I missed that. Thanks!

Learn something new every day

--------------------
Certified LabVIEW Developer
NI Alliance Member


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
David Wisti
post Apr 15 2008, 05:31 PM
Post #8


Very Active
***

Member
Posts: 66
Joined: 23-March 04
From: Wallingford, CT USA
Member No.: 319
Using LabVIEW Since:2001
LV:8.5.1 ,8.2.1 ,7.0
United States us_connecticut Philippines


QUOTE (Yen @ Apr 15 2008, 11:49 AM) *
You set symbols for the entire project (by right clicking on the project in the project tree, if memory serves) and then you choose one of the symbols to switch all the structures throughout the project. I assume the help for the structure covers this in more detail.


Conditional Disable are project and target based. So you could have symbols just for specific targets or global symbols that effect all targets.


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
orko
post Apr 15 2008, 06:57 PM
Post #9


Extremely Active
****

Premium Member
Posts: 509
Joined: 18-October 05
From: Seattle, WA
Member No.: 3266
Using LabVIEW Since:2005
LV:8.5 ,8.2.1 ,7.1.1
United States us_washington Nothing Selected My Blog


QUOTE (JDave @ Apr 15 2008, 08:56 AM) *
I also have wanted this, and made a feature request for it a while ago. Seems like a pretty reasonable request. Conditional disable flags affect the entire project, and the build settings build the project into an executable.


I agree thumbup1.gif

So far I've just been having to remember to set the right conditional variables before I build (and make sure everyone els knows about them...)

Setting this up as two builds inside the project would be cool...

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Doon
post Apr 15 2008, 07:14 PM
Post #10


More Active
**

Member
Posts: 41
Joined: 25-October 05
Member No.: 3343
Using LabVIEW Since:2006
LV:8.0.1 ,. ,.
United States Philippines Colombia


QUOTE (orko @ Apr 15 2008, 11:57 AM) *
Setting this up as two builds inside the project would be cool...


Ditto,

One case in point, I have two target test stands for automated testing as part of product delivery. One has additional functionality (mine) and the other has non-disimilar equipment performing the same task (theirs). In the mid-level equipment code, I have added Conditional Disables to handle the differences between the two test stands.
Countless times, I went to deliver new code, only to realize that I forgot to change the Conditional Symbol.

Having the Build Spec's handle this would certainly make multi-targetting much more streamlined.

Unfortunately, I still follow the practice of Remove Symbol, Add Symbol.


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
jdunham
post Apr 15 2008, 09:02 PM
Post #11


Very Active
***

Member
Posts: 130
Joined: 6-March 05
From: Mountain View, CA
Member No.: 1764
Using LabVIEW Since:1994
LV:8.5 ,. ,.
United States us_california Nothing Selected


QUOTE (Doon @ Apr 15 2008, 12:14 PM) *
Ditto,

One case in point, I have two target test stands for automated testing as part of product delivery. One has additional functionality (mine) and the other has non-disimilar equipment performing the same task (theirs). In the mid-level equipment code, I have added Conditional Disables to handle the differences between the two test stands.
Countless times, I went to deliver new code, only to realize that I forgot to change the Conditional Symbol.

Having the Build Spec's handle this would certainly make multi-targetting much more streamlined.

Unfortunately, I still follow the practice of Remove Symbol, Add Symbol.


I totally agree. We are actually reading the lvproj file (it's XML) and modifying the Conditional Disable symbols programmatically and then reloading the project so that we can build multiple flavors of our product. It's not terribly hard, but there should most certainly be VI server access to the symbols.


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ton
post Apr 16 2008, 05:47 AM
Post #12


CCT It
*****

Premium Member
Posts: 1258
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (Doon @ Apr 15 2008, 08:14 PM) *
Unfortunately, I still follow the practice of Remove Symbol, Add Symbol.

You can just use a Symbol Setup with a string mine and theirs. In your code you use the same symbols with these values.
Or just use mine and default.
QUOTE (jdunham @ Apr 15 2008, 10:02 PM) *
... there should most certainly be VI server access to the symbols.

Well I don't think that's necessary, changing the Conditional Disable Symbol forces a recompile of the code. That means all of the code inside the project shouldn't be running, which can be a challenging task.
The possibility to select another lvproj for a build is probably intended to cover this gap. But an additional page in the build settings is preferable.

This item shows a problem in my developing workflow. I considered the lvrproj file as code independent. But now it seems like it is tied to the code as well, and should be checked in and out.

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Doon
post Apr 16 2008, 02:48 PM
Post #13


More Active
**

Member
Posts: 41
Joined: 25-October 05
Member No.: 3343
Using LabVIEW Since:2006
LV:8.0.1 ,. ,.
United States Philippines Colombia


QUOTE (tcplomp @ Apr 15 2008, 10:47 PM) *
You can just use a Symbol Setup with a string mine and theirs. In your code you use the same symbols with these values.
Or just use mine and default.

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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
orko
post Apr 16 2008, 03:18 PM
Post #14


Extremely Active
****

Premium Member
Posts: 509
Joined: 18-October 05
From: Seattle, WA
Member No.: 3266
Using LabVIEW Since:2005
LV:8.5 ,8.2.1 ,7.1.1
United States us_washington Nothing Selected My Blog


QUOTE (Doon @ Apr 16 2008, 07:48 AM) *
So far, my only solution is to first remove my symbol, then re-Add it with a new value.

I seem to remember this with LV8.0. Starting with LV8.2 (I think) you can double-click on the value you want to change in the list and edit it straight away.

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Doon
post Apr 16 2008, 04:58 PM
Post #15


More Active
**

Member
Posts: 41
Joined: 25-October 05
Member No.: 3343
Using LabVIEW Since:2006
LV:8.0.1 ,. ,.
United States Philippines Colombia


QUOTE (orko @ Apr 16 2008, 08:18 AM) *
I seem to remember this with LV8.0. Starting with LV8.2 (I think) you can double-click on the value you want to change in the list and edit it straight away.


Even More reason for me to push (read: beg) for an upgrade. Thanks.


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action