LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

. Copy and Paste

Solved!
Go to solution

I want to copy part of a front panel and paste it to an empty VI.  I want the block diagram and wiring to come along for the ride.  If I select the items on the front panel, the block diagram icons show up in the new VI but not the wiring.  There has to be an easy way to do that, right?

0 Kudos
Message 1 of 8
(4,423 Views)

Yes, select the code and the controls/indcators from the block diagram and copy it. Then one your new VI and paste it on the block diagram.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 8
(4,421 Views)

Easier might be to copy the entire diagram to a new VI diagram, then delete the obsolete front panel items you no longer want.

0 Kudos
Message 3 of 8
(4,420 Views)

 


@altenbach wrote:

Easier might be to copy the entire diagram to a new VI diagram, then delete the obsolete front panel items you no longer want.


The decision comes down to how much will be kept and how much will be deleted. If you will keep more than you delete simply copy the VI and do some surgery. If you will be deleting significantly more than you keep and simple copy and paste should work pretty well.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 8
(4,417 Views)

 


@Mark Yedinak wrote:

If you will keep more than you delete simply copy the VI and do some surgery.  


 

This is most easily achieved using "save as...".

 

In addition to the default "substitute for original", you also have options to create an unopened disk copy or open an additional copy with a new name.

0 Kudos
Message 5 of 8
(4,415 Views)

Yes, I have saved a copy and cut up the copy.  I wondered if there was a way to copy and paste without doing the surgery.

0 Kudos
Message 6 of 8
(4,411 Views)
Solution
Accepted by topic author martyop

Yes, by copying and pasteing from the block diagram as I mentioned in my first post.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 7 of 8
(4,408 Views)

That's the ticket.

Thanks

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