11-05-2012 06:15 AM
Can custom conditional disable symbols have multiple values?
If they can, then how are additional values defined?
If they cannot, then what value are they?
When I try to assign a second value to a custom symbol using the symbol/value definition window under project properties, I get a "Symbol already definded" message and my attempt is ignored.
The one example I found here
http://www.ni.com/white-paper/9853/en
does not show multiple multiple values associated with a single custom symbol so it is no help in this case.
11-05-2012 06:29 AM
At any given time, the conditional disable symbol can have only one value and this value is defined in project properties.
However you can define multiple cases for the conditional case structure depending on the values. The value which is set in the project properties, will be the case that will be executed.
Hope this helps.
11-05-2012 08:21 AM
@Javed_H wrote:
At any given time, the conditional disable symbol can have only one value and this value is defined in project properties.
This is not correct for the pre-defined symbols as can be seen below. Are you saying that for the CUSTOM symbols, at the time they are defined, there can only be one value?
11-05-2012 08:26 AM
@WNM wrote:
@Javed_H wrote:
At any given time, the conditional disable symbol can have only one value and this value is defined in project properties.
This is not correct for the pre-defined symbols as can be seen below. Are you saying that for the CUSTOM symbols, at the time they are defined, there can only be one value?
I think you misunderstood what Javed_H was saying. The symbol is basically a variable. It can only be set to a single value at a time. The chart you are showing given possible values for the symbols, but it can only be set to one of those values.
11-05-2012 08:26 AM
The pre-defined symbols change automatically based on the hardware and software. But at any time they have exactly one value. The table just lists the possible values.
For user defined symbols you can change the value, but same thing, exactly one value at any time.
11-05-2012 08:49 AM
I had been trying to define the symbol and its possible values at the Project/Properties level, as per the suggestion in the LabVIEW help that said to do it there. But I see now that the definition of symbols can also take place at the individual target/properties level too.
So on target "A" I can use symbol "X" and define it with a value of "1".
I can then go to target "B" in the same project and again use symbol "X" and this time assign it a value of "2".
I thought that the project/porperties level of definition was a single place to assign all possible values to a given symbol for all targets within the project. I guess in fact the project/properties level definitions of symbols/variables are used to distinguish one project from another.