LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

question about Conditional Disable Symbols

Solved!
Go to solution
Solution
Accepted by topic author NemoChen

@NemoChen wrote:
[...]

Does  it make sense?


No, it does not make sense. Conditional Disable Structure is a set of instructions for the LV compiler. So changing symbols REQUIRES a recompile of the VI. If you fail to do this, changing symbols will not affect VI execution.

 

What you are looking for is a simple case structure and passing a parameter "as symbol" to select which case you want to execute.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 11 of 13
(1,010 Views)

Yes, you just gave me another easy way to solve it.

thank you!

0 Kudos
Message 12 of 13
(1,008 Views)

Another, "better" option (but requires more LV knowledge) would be implementation of a class based abstration layer.

TS nowadays can directly call LV dynamic dispatches, so a class based abstraction replaces the case structure and the additional parameter.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 13 of 13
(991 Views)