LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set conditional disable programmatically?

Solved!
Go to solution

Does anyone know how to set a conditional disable flag programmatically? I'm sure there's the old chestnut "how can you factor our code when it's already running?" but you seem to be able to edit project files programmatically so I assume you can edit the flag with one program, then call the next program, then reset the flag using the first program again with separate calls e.g. from a build server.

0 Kudos
Message 1 of 4
(3,832 Views)

I posted a picture of how to edit the conditional disable properties, but I misread your question so I deleted it, woops!

 

0 Kudos
Message 2 of 4
(3,819 Views)
Solution
Accepted by topic author rik_aspinall

There is this, but I don't know if it will help you - http://lavag.org/topic/7454-conditional-disable-in-build-settings/page__view__findpost__p__74161

 

If you actually want to do things dynamically, you should have something along the lines of a global variable and a case structure to run the correct case. If it's a matter of not being able to load the code, you could try moving the offending code into subVIs and dynamically load and run those.


___________________
Try to take over the world!
Message 3 of 4
(3,783 Views)

Thanks!

0 Kudos
Message 4 of 4
(3,719 Views)