04-12-2018 07:28 AM - edited 04-12-2018 07:31 AM
I always accepted this as a "default behavior". But really, why this cannot be done using LabVIEW? I often face the following scenario:
Strangely, the other direction works however: if you select and "Ctrl+C" a FP control, you get its constant version in a BD when you do "Ctrl+V".
But why we cannot copy-paste a control from BD to FP? This would be also useful when we open a Typdef cluster, and we want to paste a copied control from the BD. No, it does not work, only from the FP!
EDIT: oh yes, it is not only me, fire your Kudos people! 😄
https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Copy-control-from-BD-but-paste-on-FP/idi-p/1466502
04-12-2018 08:46 AM
I don't get it! If you have a Control (or Indicator) in LabVIEW, it exists on both the FP and BD. They look different (a Graph on the FP looks like "a graph", with axes, grid lines, etc., while on the BD it looks like an Icon or a Terminal (depending on whether Icon View is turned on), but they are merely manifestations of the same entity.
You copy/paste the FP representation to FPs, the BD representation to BDs, and the "other" representation will appear (at least, on my machines, and on all versions of LabVIEW I've used, from LabVIEW 7.0 through LabVIEW 2017) on the other "view".
Is it possible that you are dealing with "out-of-control" Block Diagrams that span 20 screens? I've seen situations where it appears that the "new entity" is on only one screen because it has moved "far away" from the other elements on the other screen (i.e. "copy and paste on BD, but the copy doesn't seem to be present on the FP because it's 5 screens away"). There are two solutions to this problem:
Bob Schor
04-12-2018 08:59 AM - edited 04-12-2018 09:00 AM
Sorry, but I do not know why it is not clear 🙂 And all my FPs and BDs fit into a single screen (edit: or in worst case, a bit larger, but maybe max 50% in one direction, vertical or horizontal)...
It is NOT the problem that I cannot locate the pasted object. The problem is that it cannot be pasted! Imagine, you work on a BD of a VI. You select a control which you want to copy-paste into another VI, but into its another VI's FP, not into its BD (if you paste it into the BD, you get it placed randomly on the FP!).
So the problem is that, you cannot do this directly. Neither you can select a control in your BD, and paste it directly into a Typdef!
Yes, what I do, instead of selecting the control in the BD, I double click on it, this takes me to the FP if this very VI. Then, I can copy-paste this control from this FP, into another FP or Typdef cluster. But bad! LabVIEW took away the focus from the BD where I was just working, so I have to bring the BD again to front, etc...
It would be just much more straightforward to be able to copy/paste from BD to any FP (or into an open Typdef cluster control)...
04-12-2018 09:36 AM
Copying from the block diagram and pasting onto a front panel just seems counterintuitive and I am not surprised it does not work.
Interestingly enough you CAN copy a Numeric Constant from a block diagram and paste it into a front panel, and it will paste a Numeric Control onto the panel.
04-12-2018 09:40 AM - edited 04-12-2018 09:42 AM
I made a short screen capture to show what is my actual problem, why I find this missing option uncomfortable:
In this video, I put the on-screen Keyboard visible, to indicate when I press either the Ctrl+C, or the Ctrl+V combos.
Note: these are little simple VIs, imagine when you work with a project, and many VIs are open. You lose focus from the BD where you are working because of the above issues, and it takes time to bring back the BD, etc...I do not say this is a big issue, but for sure, for me, it is not comfortable! 🙂
04-12-2018 09:43 AM - edited 04-12-2018 09:46 AM
@Blokk wrote:
Yes, what I do, instead of selecting the control in the BD, I double click on it, this takes me to the FP if this very VI. Then, I can copy-paste this control from this FP, into another FP or Typdef cluster. But bad! LabVIEW took away the focus from the BD where I was just working, so I have to bring the BD again to front, etc...
NO LabVIEW did NOT take away the focus.
YOU changed the focus when you moved from working on a block diagram to working on a front panel.
04-12-2018 09:52 AM