LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV2010 Failure: Duplicate Case

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 1 of 8
(2,520 Views)

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

0 Kudos
Message 2 of 8
(2,515 Views)

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.

 

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 8
(2,509 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 8
(2,503 Views)

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

Customer Education Product Marketing Manager
National Instruments
0 Kudos
Message 5 of 8
(2,461 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 6 of 8
(2,440 Views)

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

Customer Education Product Marketing Manager
National Instruments
0 Kudos
Message 7 of 8
(2,418 Views)

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 !

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 8 of 8
(2,401 Views)