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
> [Wiki] Tips and tricks
Aristos Queue
post Sep 13 2007, 02:13 AM
Post #1


LV R&D Envoy
*****

NI
Posts: 1226
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.5.1 ,. ,.
United States Nothing Selected Nothing Selected My Gallery


This is the discussion topic for the wiki article: Tips and tricks

I added one.

--------------------
"A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Sep 13 2007, 02:13 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
David Boyd
post Sep 13 2007, 03:22 AM
Post #2


Very Active
***

Premium Member
Posts: 145
Joined: 13-November 03
From: Kennesaw, GA USA
Member No.: 195
Using LabVIEW Since:1997
LV:8.5 ,8.2.1 ,.
United States us_georgia us_pennsylvania


QUOTE (Aristos Queue @ Sep 12 2007, 10:13 PM) *
I added one.
Doggonit, Stephen, now that one (the Shift+Enter on string constant entry) I really never heard before anywhere. thumbup1.gif Most of the others I've seen here are the ones that I either use already, or would if I could remember which modifier to hold down while dragging, etc, but this one is new to me, and immediately useful.

Can you tell us in which version of LabVIEW it made its debut?


Dave

--------------------
David Boyd
Sr. Test Engineer
Respironics


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
PJM_labview
post Sep 13 2007, 04:32 AM
Post #3


Extremely Active
****

JKI
Posts: 612
Joined: 19-June 03
From: Bay Area, CA (USA)
Member No.: 121
Using LabVIEW Since:1998
LV:8.5.1 ,8.6 ,8.2.1
United States France Nothing Selected My Blog


Ya, this (the Shift+Enter on string constant entry) is pretty usefull and I wish it would work on floating label.

I constantly catch myself trying to shift+enter floating labels...

PJM

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

Got VIPM?

JKI . VIPM . EasyXML . OpenG . LAVA . Builder . Blog



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aristos Queue
post Sep 13 2007, 01:01 PM
Post #4


LV R&D Envoy
*****

NI
Posts: 1226
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.5.1 ,. ,.
United States Nothing Selected Nothing Selected My Gallery


QUOTE (PJM_labview @ Sep 12 2007, 11:32 PM) *
I constantly catch myself trying to shift+enter floating labels...

Same here. I actually wrote this feature (David: I *think* it first appeared in LV8.0) out of frustration with the string constants. Unfortunately, free labels have a different code path, and I've never gotten back to the project to learn that section of the code. Perhaps someday I'll get around to it. Or someone else will. I filed a CAR (4229R4F2) at the time so that I'd keep thinking about it. You know, in my spare time. ;-)

--------------------
"A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Jim Kring
post Sep 13 2007, 03:24 PM
Post #5


Changing the world, one VI at a time.
*****

JKI
Posts: 1700
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


QUOTE (Aristos Queue @ Sep 13 2007, 06:01 AM) *
Same here. I actually wrote this feature (David: I *think* it first appeared in LV8.0) out of frustration with the string constants. Unfortunately, free labels have a different code path, and I've never gotten back to the project to learn that section of the code. Perhaps someday I'll get around to it. Or someone else will. I filed a CAR (4229R4F2) at the time so that I'd keep thinking about it. You know, in my spare time. ;-)


Here's some ammunition that might help push it through. Just say...

"Anyone (using LabVIEW) who doesn't see this as a critical feature (for free labels) is obviously not commenting thier code enough!"

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Phillip Brooks
post Sep 13 2007, 05:29 PM
Post #6


Extremely Active
****

Premium Member
Posts: 694
Joined: 3-November 04
From: Boston, MA
Member No.: 949
Using LabVIEW Since:1999
LV:7.0 ,8.20 ,8.0
us_massachusetts France Thailand My Gallery


QUOTE (Jim Kring @ Sep 13 2007, 11:24 AM) *
Here's some ammunition that might help push it through. Just say...

"Anyone (using LabVIEW) who doesn't see this as a critical feature (for free labels) is obviously not commenting thier code enough!"


My LabVIEW coding style is so elegant that the code is 'self-documenting'. No need for additional comments laugh.gif

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



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Jim Kring
post Sep 13 2007, 05:38 PM
Post #7


Changing the world, one VI at a time.
*****

JKI
Posts: 1700
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


QUOTE (LV Punk @ Sep 13 2007, 10:29 AM) *
My LabVIEW coding style is so elegant that the code is 'self-documenting'. No need for additional comments laugh.gif


Yes, it's saying "this section of the code needs coments and/or rewriting" tongue.gif

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
neB
post Sep 13 2007, 05:46 PM
Post #8


Certified Kool-Aid Kid
*****

Premium Member
Posts: 1161
Joined: 6-December 02
From: Pittsburgh PA USA
Member No.: 29
Using LabVIEW Since:1998
LV:7.1 ,. ,.
United States Germany Nothing Selected


QUOTE (Jim Kring @ Sep 13 2007, 01:38 PM) *
Yes, it's saying "this section of the code needs coments and/or rewriting" tongue.gif


[OT]

I taught myself to code in C prior to taking a college course in same. book.gif

After submitting my first project and anxiously awaitng feedback I was disappointed that the only comments the T/A had about my code was;

"Too many comments! It is hard to find the code." frusty.gif

I have yet to see "self-documenting code" that revealed the "big picture".

Ben


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Phillip Brooks
post Sep 13 2007, 05:59 PM
Post #9


Extremely Active
****

Premium Member
Posts: 694
Joined: 3-November 04
From: Boston, MA
Member No.: 949
Using LabVIEW Since:1999
LV:7.0 ,8.20 ,8.0
us_massachusetts France Thailand My Gallery


QUOTE (Ben @ Sep 13 2007, 01:46 PM) *
I have yet to see "self-documenting code" that revealed the "big picture".


And we never will, at least until Alfa starts showing us his code.

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



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aristos Queue
post Sep 13 2007, 06:36 PM
Post #10


LV R&D Envoy
*****

NI
Posts: 1226
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.5.1 ,. ,.
United States Nothing Selected Nothing Selected My Gallery


QUOTE (Jim Kring @ Sep 13 2007, 10:24 AM) *
"Anyone (using LabVIEW) who doesn't see this as a critical feature (for free labels) is obviously not commenting thier code enough!"

Or you've started using string constants on the diagram for documentation.

--------------------
"A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
neB
post Sep 13 2007, 06:42 PM
Post #11


Certified Kool-Aid Kid
*****

Premium Member
Posts: 1161
Joined: 6-December 02
From: Pittsburgh PA USA
Member No.: 29
Using LabVIEW Since:1998
LV:7.1 ,. ,.
United States Germany Nothing Selected


QUOTE (Aristos Queue @ Sep 13 2007, 02:36 PM) *
Or you've started using string constants on the diagram for documentation.


Just popped into my head....

Durring the very first LabVIEW Coding Challenge (bit banging?) I beleive it was Jim that posted after we saw the general trend that the speed of the VI approximately follows the size on disk (smaller VI smaller run time) that a VI with no comments will run faster than a VI with comments. I did a quick check at that time and was suprised it was true! I wonder if that is still true...

I guess I will just have to test it huh?

Ben


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Jim Kring
post Sep 13 2007, 09:22 PM
Post #12


Changing the world, one VI at a time.
*****

JKI
Posts: 1700
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


QUOTE (Aristos Queue @ Sep 13 2007, 11:36 AM) *
Or you've started using string constants on the diagram for documentation.


Oh yes, that's a great way to document your compiled binary code tongue.gif

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Yair
post Sep 15 2007, 09:58 PM
Post #13


Extwemely Active
*****

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


QUOTE (Jim Kring @ Sep 14 2007, 12:22 AM) *
Oh yes, that's a great way to document your compiled binary code tongue.gif

Plus, with a string constant you can't double click an empty space in the diagram and then start typing, which is something you can do with a standard comment if you use the auto tool.

--------------------
More than meets the eye...</