LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with multiple sub-panels through Enum case structure: "The VI is not in a state compatible with this operation"

Solved!
Go to solution

Hello,

 

I am using LabVIEW 8.0 and I am attempting to create a sub-panel that displays the front panel of a sub-vi depending on the selection made by the user via the Enum dropdown menu.  I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.  However, I receive an error "The VI is not in a state compatible with this operation."  I was able to successfully make a single sub-vi work within a sub-panel using a true/false case structure and the exact same coding.  However, now that I am using an Enum box wired to a case structure, I receive this error.  I have attached my block diagram as well.  Could anyone assist me as to where it is that I am going wrong?

 

Thanks in advance!

0 Kudos
Message 1 of 4
(2,805 Views)

@torm wrote:

I have attached my block diagram as well


I only see a picture. Can you attach the VI instead? At what point do you close the reference?


@torm wrote:

I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.


Well, if the code is identical except for the source, only the source should be inside the case, right? Why duplicate code?

 

0 Kudos
Message 2 of 4
(2,788 Views)
Solution
Accepted by topic author torm

Could it be that your VI is running already when you try to run it? That would return the error you get.

Check the VI state before trying to run it or do some error handling.

 

0 Kudos
Message 3 of 4
(2,776 Views)

Hey torm,

 

Could you run your code in highlight execution mode and see where in your code that error occurs? Also, is there a number associated with that error description? 

 

Also, here are a few links that talk about that error that you may find useful. 

 

What Is the Meaning of "Error 1000: The VI is not in a state compatible with this operation" in LabV...

 

Discussion Forum: Display VIs in subpanel

 

 

Regards,

Travis Ann

Customer Education Product Marketing Manager
National Instruments
0 Kudos
Message 4 of 4
(2,749 Views)