10-06-2011 07:31 AM
LV 2010; Win Vista
I have a VI with a FUNCTION input (a strict TypeDef ENUM).
A WHILE loop houses several shift registers and a CASE structure which decides what to do based on the FUNCTION input.
I added a new item (Shut Down") to the ENUM typedef and saved it.
That breaks the CASE structure - there is no DEFAULT case, so nothing can handle the new function - I understand that.
The SHUT DOWN function is similar to the WRITE RESULTS function, so I try to duplicate that case, and change just a little.
LV refuses to let me. It creates the SHUT DOWN case for a moment; then takes it away. No error message, it just refuses.
Several times.
I've used Duplicate Case before with no surprises; why here?
Restart Windows has no effect.
See the video: http://screencast.com/t/r5MxZyAQp7
As you can see, I can CREATE CASE and it works fine.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-06-2011 09:09 AM
If you temporarily pull the cluster control terminal out of the SHUT DOWN case before you attempt to duplicate, what happens? Duplicating a case with a terminal duplicates the control. I am wondering if there is something about the control which leads to the problem. And, you probablly do not want a duplicate of the control anyway.
Lynn
10-06-2011 09:37 AM - edited 10-06-2011 09:38 AM
I tried deleting the control and THEN duplicating - no difference - it still refuses.
You're right that I didn't want the duplicate control - I was figuring on deleting the duplicate, as I've done before.
I deleted the control and all wires in the WRITE RESULTS case - no difference.
I deleted the control, and I wired all the terminals in the WRITE RESULTS case - no difference.
There is a NOTHING case, where all the terminals on the left go straight across. I can duplicate that just fine.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-06-2011 09:59 AM
Here's another video: http://screencast.com/t/CVgMnVLf
Here, I've already inserted the SHUT DOWN case I wanted.'
If I remove it, I can duplicate other cases just fine, but not the WRITE RESULTS case.
If I move the control out of the CASE, I still cannot duplicate it.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-07-2011 06:47 PM
Hi CoastalMaineBird,
Are you able to replicate this error using a simple case structure? If so, please post your code, and we will try to replicate this on our end. If not, try to pull your code out of the existing case structure and delete that case structure. Then replace that case structure with a new one and see if you get the same error. Lastly, if can't confirm the error in the other ways and you are comfortable posting your code, you could post it and we could try to duplicate your error that way.
Travis Ann
10-09-2011 07:26 AM
I have removed all the subVIs from the problem VI and the problem remains.
Simply Open the Library (in LV 2010.0 - I don't know about others) and open the top-level VI within it.
Instructions are on the panel.
The WRITE RESULTS case will not duplicate, others will.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-10-2011 05:59 PM
Hey Steve,
After looking at your vi, I was able to reproduce your issue. I, then, connected your ENUM to a new case structure and populated it with your cases. From there, I was able to get the "Write" case to duplicate. Therefore it may just be something got corrupted with your existing case structure. I would try making a new case structure and populating it with your existing internal case code, and trying again.
Regards,
Travis Ann
10-11-2011 12:43 PM
For more entertainment, take a look at this video: http://screencast.com/t/5aG2UgX1DM
If you move the CONTROL outside of the case, then delete the CASE, the control disappears too !
Blog for (mostly LabVIEW) programmers: Tips And Tricks