09-24-2009 06:25 AM
I cannot figure out how to copy code from a block diagram in an example program to a block diagram in a new program.
Please help.
Thanks.
09-24-2009 06:50 AM
Select the region of interest by clicking down and dragging to define a box, press Ctrl+C to copy the region to the clipboard, go to the other block diagram, and press Ctrl+V to paste from the clipboard.
You can also press Ctrl+A in the source block diagram to select the entire diagram.
Ed
09-24-2009 07:23 AM
Thanks for the information.
I tried the Ctrl-c and Ctrl-v method in two ways.
1. Program A has code in the Perioidic Tasks.vi that I want to copy to Program B Periodic Tasks.vi.
I cannot have the two vi's open at the same time. Therefore, I opened Program A Periodic Tasks.vi and did the "box" thing followed by the Ctrl-c
I closed Program A and opened Program B Periodic Task.vi.
When I did the Ctrl-v all I got was an image of the code. No editable code.
2. I opened Program A, Periodic Tasks.vi and Vision Processing.vi. I was able to use the Ctrl-c and Ctrl-v method to copy block diagram code from one vi to the other..
It looks like something is done to the Clipboard data when the Program A is closed and then Program B is opened.
Any other suggestions?
09-24-2009 08:54 AM
How about this: Do a "Save As" on your source file to a temporary file with a different name, then open your destination file.
09-24-2009 12:11 PM
Sounds like you are trying to copy and paste code between two difference version of LabVIEW, which would result in a picture being pasted instead of the code. Is that the case?
-Mark
09-24-2009 12:52 PM
I am using the same version of LabVIEW. The programs that I am dealing with have been created in the last few months.
It is version: 8.1.5f5
09-24-2009 02:18 PM
Interesting.... Why is it you cannot have both of these VIs open at the same time?
01-16-2010 08:37 AM
Thank you.
08-24-2015 04:14 PM
I just had this same thing happen where copying and pasting code made a picture instead of copying the code. I closed everything down and reopened and everything worked fine. When i was closing it down though, I noticed I have two instances of the main labview project screen open (the one where you select create a project or open an existing project).
Theory is one program was being run through one instance of labview and the other in a different. This would make labview think its a separate instance.
08-24-2015 07:22 PM
How about trying drag and drop?