11-10-2011 12:31 AM - edited 11-10-2011 12:38 AM
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!
Solved! Go to Solution.
11-10-2011 02:35 AM
@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?
11-10-2011 03:30 AM
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.
11-11-2011 09:27 AM
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.
Discussion Forum: Display VIs in subpanel
Regards,
Travis Ann