LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Scripting - Add a nested Case Structure

Solved!
Go to solution

I am trying to add a case structure to the diagram of another case structure (see picture of example)

Kenny_K_0-1687351729486.png

 

I created a VI to try to automatically find the outer case structure, and add the new case structure.

 

However, the new case structure does not appear to be getting created, but I do not see any errors generated.

 

Here is the code as I have it at the moment

 

Kenny_K_2-1687352127931.png

 

Kenny

0 Kudos
Message 1 of 3
(762 Views)
Solution
Accepted by topic author Kenny_K

Hi,

 

I see nothing wrong with the script itself.

However, you should do a Save of the VI at the end to make sure the changes are persistent.

Since your VI is opened dynamically and closed at the end of the script, I bet all modifications are lost.

raphschru_0-1687353910285.png

Regards,

Raphaël.

Message 2 of 3
(744 Views)

DOH!

 

That was it, thank you!

Kenny

0 Kudos
Message 3 of 3
(734 Views)