LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

property node for case

I am trying to find information on my case structure programatically (current case in action, highest case and lowest case....etc) using a propert node.  I was reading some older posts from 2005 and at that point there was no option for this, Is this still the case in LV8.5 and higher?  I understand that this can be done indirectly with a ring enumerator wired to the case selector but I am trying to do this with minimal programming change and having to remember to update the enumerator is not always as easy as it sounds.
0 Kudos
Message 1 of 5
(3,056 Views)

This can be done with scripting, but it is hard and not offcially released.

The more important question is: Why?

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 5
(3,051 Views)

TonP wrote:

The more important question is: Why?


Im curious about thus too. 😄

 

It's not that any of these things can change at runtime anyway, so what's the purpose?

0 Kudos
Message 3 of 5
(3,049 Views)

altenbach wrote:

TonP wrote:

The more important question is: Why?


Im curious about thus too. 😄

 

It's not that any of these things can change at runtime anyway, so what's the purpose?


I have to build several test programs each month which are basically just variations on a core program.  My goal is to make the core program more modular so that it can be more easily and quickly modified.  My thinking behind this was to have the program know which case it was under so that if I added a case the rest of them could automatically adapt to the new numbering.  This (in the crazy world inside my head) would prevent me from having to go back through each case and make sure that all of the decisions point to their correct case.  

 

I am always trying to make life easier and I figure that if I throw some of my ideas out here that people may have tried them and can tell me if they work or not.

0 Kudos
Message 4 of 5
(2,981 Views)

ssilk wrote:
... so that if I added a case the rest of them could automatically adapt to the new numbering.  This (in the crazy world inside my head) would prevent me from having to go back through each case and make sure that all of the decisions point to their correct case.  

 

I am always trying to make life easier and I figure that if I throw some of my ideas out here that people may have tried them and can tell me if they work or not.


It sounds like you are looking for type-def'd enum. They will allow you to edit the type def and the changes are automatically propgated to all instances of the type def.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 5
(2,977 Views)