LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
This content has not been tagged yet
2 Pages V   1 2 >  
Reply to this topic Start new topic
> Labels, labels, labels... and controls in the functions pallette, A mishmash of requests to reduce repetitive tasks
Daklu
post Nov 21 2007, 07:59 PM
Post #1


Very Active
***

Member
Posts: 101
Joined: 26-January 07
From: Seattle, WA
Member No.: 7603
Using LabVIEW Since:2006
LV:8.20 ,. ,.
United States us_washington Nothing Selected


As I've been working with Labview for the past year and a half I've noticed there are several trivial tasks I am *constantly* doing that don't matter much individually, but when taken as a whole become annoyances. For most vi's I write 98% of my time is spent on the block diagram. The following suggestions would go a long way towards lowering my irritation factor:
  1. Enhance the options for default position for labels. On sub vi's I typically put the control labels on the left and the indicator labels on the right. This leaves the wiring path unblocked and occupies less precious vertical space. I also like to put loop labels in the top-left position. Being able to have different default label positions for different types of block diagram objects would stop the constant repositioning.
  2. Free label word wrapping. When using free labels I prefer to use automatic word wrapping as opposed to a hard cr-lf. This lets me easily resize it to fit in the best location. What I end up doing now is typing out enough text to be roughly the width I want, clicking on the box and doing a slight resize to fix the width, then going back and finishing the text. It would be nice to have a keyboard shortcut that essentially says "I'm using automatic word wrapping but I want to stop growing horizontally now and wrap to the next line." Ctl-Enter puts a hard stop in the label; maybe Shift-Enter could be used for this.
  3. Working in the block diagram I'm baffled as to why there aren't controls and indicators in the funtion pallette. All the time I'm dragging constants onto the block diagram and then right-clicking to change them to a control or indicator. Why not use modifier keys to change the object being placed on the BD? For instance, if I hold Ctl down while dragging a boolean constant onto the block diagram it would drop a boolean control rather than a boolean constant. Holding down Shift could drop a boolean indicator.
  4. Block diagram zooming. I brought this up with an NI rep at a conference and the response I received was (to paraphrase), "We don't want people to create block diagrams more than one screen size." Bleh. Forcing the customer to adhere to your preconceived notions of coding style is a bad idea. Imagine if Visual Studio only allowed 25 lines in each code module because "functions should never be longer than one screen." What would happen? Aside from mass migration to other programming environments people would cram more code onto each line. Goodbye readability.
    Being able to zoom out to get a complete view of the block diagram is important for me to get a better understanding of what is happening. Yes, BDs *shouldn't* be larger than one screen, but sometimes they are. (We have one engineer who has dual 30" monitors at his desk. His vi's aren't larger than his screen, but they are certainly larger than mine!) I have also found that trying to limit the size of my block diagram actually makes it harder to follow. I squeeze wires and objects closer together in an attempt to make use of the limited space. Being able to zoom out would relieve me of the need to pack everything in. I could layout my objects in a way that is logical and allow more whitespace to ease reading.
  5. Integrated Development Environment. This is another request I made to the NI rep. He had an answer that sounded reasonable but I forgot what it is. The fact that fulfilling the wish is impossible doesn't stop me from requesting it. (Yes, please move that mountain 2 miles south so I have a better view of it.) Labview windows all over the place drives me absolutely nuts. I connect my laptop to multiple monitors at home and at work; it is not uncommon for me to open a vi and have the window be located completely off the screen!
    I might have 8-12 block diagrams (and by extension, front panels) open at any one time. Throw in additional windows for pallettes and contextual help and I feel like I'm stuck in 1995 coding in VB5. Labview really needs an IDE with dockable toolbars, tabbed code windows, etc.
  6. Front panel auto-home. The front panel has a home location indicated by the large dot on the grid. Sometimes front panel objects get shuffled around such that the home location is either covered by an object or way off the screen somewhere. How about an easy way to automatically return the home location to the top left corner of the FP window?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post Nov 21 2007, 07:59 PM
Post #















Tags
This content has not been tagged yet
Go to the top of the page
Quote Post
Michael_Aivaliot...
post Nov 21 2007, 08:13 PM
Post #2


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2320
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


I agree with all of your comments. I can help with #2. You should read the tips and tricks wiki page.

http://wiki.lavag.org/Tips_and_tricks#Stri...ht_while_typing

So, shift+enter works.

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Daklu
post Nov 21 2007, 09:34 PM
Post #3


Very Active
***

Member
Posts: 101
Joined: 26-January 07
From: Seattle, WA
Member No.: 7603
Using LabVIEW Since:2006
LV:8.20 ,. ,.
United States us_washington Nothing Selected


Shift-Enter works for string constants but not for free text labels which is where I would like to see it. I suppose I could comment my code with string constants but that seems so... wrong.


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Nov 21 2007, 09:49 PM
Post #4


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2320
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


QUOTE (Daklu @ Nov 21 2007, 01:34 PM) *
Shift-Enter works for string constants but not for free text labels which is where I would like to see it. I suppose I could comment my code with string constants but that seems so... wrong.

oops.gif Ah, yes. They got merged in my mind as one and the same... so you're right I guess there's no solution there.

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Yair
post Nov 21 2007, 09:53 PM
Post #5


Extwemely Active
*****

Premium Member
Posts: 1594
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:7.0 ,7.1 ,.
Israel Nothing Selected Nothing Selected


Some of these points already have possible solutions you can implement yourself or answers:


QUOTE (Daklu @ Nov 21 2007, 09:59 PM) *
Block diagram zooming.


Not that it helps that much, but LabVIEW has the zoom window which displays an image of your entire diagram and allows you to pan it. Not as nice as a zoom, but it works.

QUOTE
Integrated Development Environment. This is another request I made to the NI rep. He had an answer that sounded reasonable but I forgot what it is.


Are you refering to this?

QUOTE
Front panel auto-home


You can write a simple VI which will be accessible through the Tools or File menu and will set the Origin property on the VI you call it from to [0,0]. To do this, you need to put the VI in the LabVIEW\Project folder and then use a specific property. You can see in example here.

--------------------
More than meets the eye...


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Nov 21 2007, 10:09 PM
Post #6


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2320
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


QUOTE (Yen @ Nov 21 2007, 01:53 PM) *
Are you refering to this?

Yes he is.
All I have to say is... Nobody asked me. thumbdown.gif

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
crelf
post Nov 21 2007, 11:27 PM
Post #7


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3635
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


QUOTE (Yen @ Nov 22 2007, 07:53 AM) *
Are you refering to this?

I remeber seeing a mock-up of this years and years ago, and I've got to admit that I was pretty excited by it. I can understand Stephen's comments, but I wonder if it can be revisited?

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ton
post Nov 22 2007, 07:35 AM
Post #8


CCT It
*****

Premium Member
Posts: 1288
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (Daklu @ Nov 21 2007, 08:59 PM) *
3. Working in the block diagram I'm baffled as to why there aren't controls and indicators in the funtion pallette. All the time I'm dragging constants onto the block diagram and then right-clicking to change them to a control or indicator. Why not use modifier keys to change the object being placed on the BD? For instance, if I hold Ctl down while dragging a boolean constant onto the block diagram it would drop a boolean control rather than a boolean constant. Holding down Shift could drop a boolean indicator
4. Zooming[...]


For 3 you could quite easily (with scripting and the .mnu toolkit) create merge VIs that would contain the items you need.

About 4, as Yen mentioned there's the overview, but that is a navigation window, what did you want to do in a 10 times zoomed window for programming, please enlighten me since I don't see the point.

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Yair
post Nov 22 2007, 05:34 PM
Post #9


Extwemely Active
*****

Premium Member
Posts: 1594
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:7.0 ,7.1 ,.
Israel Nothing Selected Nothing Selected


QUOTE (tcplomp @ Nov 22 2007, 09:35 AM) *
For 3 you could quite easily (with scripting and the .mnu toolkit) create merge VIs that would contain the items you need.

I knew I forgot something. I was thinking of merge VIs as well, but for the issue raised in item 1 (styled loops).

--------------------
More than meets the eye...


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
bono02
post Nov 23 2007, 03:08 AM
Post #10


Active
*

Member
Posts: 19
Joined: 10-November 07
From: Jinju, South Korea
Member No.: 9835
Using LabVIEW Since:2006
LV:8.5 ,8.2.1 ,8.20
Indonesia Saudi Arabia Korea, South


QUOTE (Daklu @ Nov 22 2007, 04:59 AM) *
  1. Block diagram zooming. I brought this up with an NI rep at a conference and the response I received was (to paraphrase), "We don't want people to create block diagrams more than one screen size." Bleh. Forcing the customer to adhere to your preconceived notions of coding style is a bad idea. Imagine if Visual Studio only allowed 25 lines in each code module because "functions should never be longer than one screen." What would happen? Aside from mass migration to other programming environments people would cram more code onto each line. Goodbye readability.
    Being able to zoom out to get a complete view of the block diagram is important for me to get a better understanding of what is happening. Yes, BDs *shouldn't* be larger than one screen, but sometimes they are. (We have one engineer who has dual 30" monitors at his desk. His vi's aren't larger than his screen, but they are certainly larger than mine!) I have also found that trying to limit the size of my block diagram actually makes it harder to follow. I squeeze wires and objects closer together in an attempt to make use of the limited space. Being able to zoom out would relieve me of the need to pack everything in. I could layout my objects in a way that is logical and allow more whitespace to ease reading.
  2. Integrated Development Environment. This is another request I made to the NI rep. He had an answer that sounded reasonable but I forgot what it is. The fact that fulfilling the wish is impossible doesn't stop me from requesting it. (Yes, please move that mountain 2 miles south so I have a better view of it.) Labview windows all over the place drives me absolutely nuts. I connect my laptop to multiple monitors at home and at work; it is not uncommon for me to open a vi and have the window be located completely off the screen!
    I might have 8-12 block diagrams (and by extension, front panels) open at any one time. Throw in additional windows for pallettes and contextual help and I feel like I'm stuck in 1995 coding in VB5. Labview really needs an IDE with dockable toolbars, tabbed code windows, etc.
  3. Front panel auto-home. The front panel has a home location indicated by the large dot on the grid. Sometimes front panel objects get shuffled around such that the home location is either covered by an object or way off the screen somewhere. How about an easy way to automatically return the home location to the top left corner of the FP window?


"We don't want people to create block diagrams more than one screen size." blink.gif

I agree with you, zooming would be better. It's painful by dragging the slider right and bottom, also by using navigation window, we still have to click on that
small window, a shortcut would be better!

For writing comment I usually did shift+right click, and choose the Text icon (I think this is a standard one), why do you need string constant?

Also the front panel, sometimes in the Back Panel I create a ctrl or indicator, then when I switch to FP, I have to -again- drag the slider to find the control/indicator
which has been created

And another one, for XP user maybe you can consider of installing a free add-on from Windows, Powertoy the alt-tab replacement, you can click on the small-screen when you are switching window using alt-tab.


Bondhan
~Another Certified LabView Newbie

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Justin Goeres
post Nov 23 2007, 03:21 AM
Post #11


Extremely Active
****

Member
Posts: 541
Joined: 13-September 05
From: Cary, NC USA
Member No.: 2992
Using LabVIEW Since:1997
LV:8.5 ,8.2.1 ,7.1.1
United States us_north_carolina us_iowa


QUOTE (bono02 @ Nov 22 2007, 08:08 PM) *
I agree with you, zooming would be better. It's painful by dragging the slider right and bottom,

I do almost all my scrolling by using the draggy-hand-tool (does it have a real name?).

I mean the thing you get by doing shift-right-click, then selecting the draggy-hand (as distinct from the pointy-hand). Then you can click+drag to scroll the diagram (or front panel) around. It saves trips back & forth to the scroll bars, and is a pretty easy dance to perform once you get used to it. I do wish there was a slightly easier way to activate it (like ctrl+shift+drag or something).

EDIT: Here's what I mean: Attached Image

--------------------
If you don't like this post, you might also not like my widgets!


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
JDave
post Nov 23 2007, 06:32 AM
Post #12


Extremely Active
****

Premium Member
Posts: 430
Joined: 2-February 05
From: Southern California
Member No.: 1519
Using LabVIEW Since:2004
LV:8.20 ,7.1.1 ,8.0.1
United States Peru us_california


QUOTE (Justin Goeres @ Nov 22 2007, 07:21 PM) *
I do almost all my scrolling by using the draggy-hand-tool (does it have a real name?).

I mean the thing you get by doing shift-right-click, then selecting the draggy-hand (as distinct from the pointy-hand). Then you can click+drag to scroll the diagram (or front panel) around. It saves trips back & forth to the scroll bars, and is a pretty easy dance to perform once you get used to it. I do wish there was a slightly easier way to activate it (like ctrl+shift+drag or something).


The "draggy-tool" (is it the 'Pan' tool perhaps?) can be invoked by ctrl+shift+drag if you have the auto-tool on.


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Yair
post Nov 23 2007, 12:35 PM
Post #13


Extwemely Active
*****

Premium Member
Posts: 1594
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:7.0 ,7.1 ,.
Israel Nothing Selected Nothing Selected


QUOTE (JDave @ Nov 23 2007, 08:32 AM) *
The "draggy-tool" (is it the 'Pan' tool perhaps?) can be invoked by ctrl+shift+drag if you have the auto-tool on.

And creating a comment is as easy as double clicking an empty part of the diagram and typing.

That's two points in favor of the auto-tool which are not immediately apparent.

P.S. Yes, I would agree that it's called "Pan".

--------------------
More than meets the eye...


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Justin Goeres