取消
显示结果 
搜索替代 
您的意思是: 

Drag functions across large block diagram

II have a very large block diagram (at Least 10000x 50000 pixels)

 

I use the Navigation pane to move around quickly, however is there a quick way to drag opbjects/functions from one area to another quickly.

 

At the moment I drag them one screen distance at a time, which takes forever. If I drag only until the scoill bar, scrolling does occur while the drag is in process but it is very slow (faster to do what I am doing)

0 项奖励
1 条消息(共 15 条)
5,294 次查看
If you hold down the shift key, that will accelerate the drag but the real solution is make your block diagram size something reasonable. An established rule-of-thumb is to make the block diagram size no larger than a single screen. You do this by using subVIs and avoiding flat sequence structures.
2 条消息(共 15 条)
5,290 次查看

RS7 wrote:

II have a very large block diagram (at Least 10000x 50000 pixels)

 

I use the Navigation pane to move around quickly, however is there a quick way to drag opbjects/functions from one area to another quickly.

 

At the moment I drag them one screen distance at a time, which takes forever. If I drag only until the scoill bar, scrolling does occur while the drag is in process but it is very slow (faster to do what I am doing)


 

First!

 

Backup that code!*

 

Please follow Dennis' suggestion about avoiding flat seq structures and using sub-VI's.

 

Ben

 

* When last I heard, a LabVIEW diagram will blow up when one of the dimension reaches 65k or there abouts. You are in danger of loosing all of your work if you fail to back it up and the diagram grows too large.

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
3 条消息(共 15 条)
5,284 次查看

If for some reason I have to move something accross a large distance (either FP or BD), select the object to move, move the panel (via scroll bars or navigation window) and select something in the target region, then I align the items or distribute them next to each other.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
4 条消息(共 15 条)
5,271 次查看

TonP wrote:

If for some reason I have to move something accross a large distance (either FP or BD),

1) select the object to move,

2)move the panel (via scroll bars or navigation window) and

3)select something in the target region, then I

4)align the items or distribute them next to each other.

 

Ton


[Enumeration added] 

 

Nice Nugget Ton!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 项奖励
5 条消息(共 15 条)
5,268 次查看
Shift and drag does move things faster.  However, if the block diagram is that large, having the navigation window open makes things slower as LabVIEW has to recalculate what to show in the Navigation window at each step of the move.  So for long moves in a large block diagram, close the navigation window first.
0 项奖励
6 条消息(共 15 条)
5,251 次查看

I too struggle with large block diagrams :(.  I'll get about 100 or so SubVIs going, and still have a large block diagram. 

 

I'm getting better at breaking things into smaller chunks... but it is still a challenge for me.  I did not know about the "shift" feature.  Thanks!

 

That will come in handy.

 

Still, a nice future feature of LabVIEW would be the ability to "zoom out" on the block diagram :).

0 项奖励
7 条消息(共 15 条)
5,243 次查看

You could also just cut (Ctrl-x) and paste (Ctrl-v) the code snippet to move. This will break all wires connected, but I guess you don't want to move items 10000 pixels while still connecting to the same wires?! 眨眼表情

 

 

0 项奖励
8 条消息(共 15 条)
5,232 次查看

dan_u wrote:

..., but I guess you don't want to move items 10000 pixels while still connecting to the same wires?! 眨眼表情

 

 


I fear you may be wrong about that one.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
9 条消息(共 15 条)
5,223 次查看

Ben wrote:

dan_u wrote:

..., but I guess you don't want to move items 10000 pixels while still connecting to the same wires?! 眨眼表情

 

 


I fear you may be wrong about that one.

 

Ben


I actually fear so, too 眨眼表情

I just hope it's not the case 高兴表情

 

I hope I'll never have to work on that VI 冷淡表情

 

 

10 条消息(共 15 条)
5,219 次查看