BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

aaaand I just discovered Snippets ಠ__ಠ... What features did you wish you had come across earlier?

Naturally you learn new tricks and techniques along the road but sometimes you bump into things that are obvious for many but for some reason you never learned about. Today, for me, it was the Snippet "screenshot". Oh that's what those special screenshots were the whole time. And what was that? You can even drag them into the block diagram you say? You have got to be kid...oh most evidently you can!

 

Any similar embarrasing and/or glorious moments to share?

Message 1 of 18
(9,643 Views)

The most common story I used to hear was what has to some been called the "switcheroo".  You wired two controls/constants to a function with two inputs.  Ooops.  You wired them backwards.  Instead of deleting the wires and rewiring, hold down the CTRL key and put your cursor over one of the terminals.  The cursor will change into a weird loopy.  Click the terminal and the wires will swap.  That saved me so much time once I figured it out.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 18
(9,626 Views)

Figuring out that "index array" is resizable... wait, In LabVIEW 4.0 it actually wasn't! 😄

Message 3 of 18
(9,621 Views)

I got one.  Within the last year I found the "Vertical Compress" button when organizing things.  So lets say you have 20 controls on the block diagram and you want to put them as close together as possible vertically.  Just press this button.  I knew about the vertical gap button so I would just put them all as close together as possible then distribute them evently. 

 

In my defense I started developing in LabVIEW before that button existed so I guess I never looked at any of the other functions when new ones were added.

Message 4 of 18
(9,615 Views)

ctrl-shift-3 (or ctrl-#) to resize FP objects without snapping to grid. Several years ago, I would go into the settings to turn off snap. More recently, I would move the control left two pixels with the arrow keys, drag a control border to snap to the 2-pixel away grid point, then arrow two pixels back over.

Message 5 of 18
(9,580 Views)

@altenbach wrote:

Figuring out that "index array" is resizable... wait, In LabVIEW 4.0 it actually wasn't! 😄


Well, That should be covered in LabVIEW Basics I,  and IS NOT!

 

I was working with a rather experienced LabVIEW developer when he bitched about writing the document to validate some run-time custom menu options (14 "Tools>>Export Data" Items that would take the data from one of several graphs and format it into an Excel file.)  The execution of that menu item had taken a team of developers hours and hours (man weeks) to perfect! "Why didn't you use the graph's built in RCM option 'Export To Excel method'?" I asked...."The WHAT?" <After that I heard rumblings against the company's policy of prohibiting guns on the premises>

 

Well, they were really proud of how they had duplicated a set of methods that already existed.  And surprised that they hadn't added some of the existing features.

 

With me, it was custom probes!  I'll post a copy of "Stretchy String"  on request.  its pretty simple but, a must for debugging "Chatty Cathy" UART serial comms.  (Show n\*x, +'fit to screen' on a string control)  Sweet!

 

These moments are priceless--- Also check out the u-Nuggets thread  "Micro-nuggets  Post em if you got em"


"Should be" isn't "Is" -Jay
Message 6 of 18
(9,570 Views)

@JÞB wrote:

These moments are priceless--- Also check out the u-Nuggets thread  "Micro-nuggets  Post em if you got em"


Great resource, thank you. I also found a few other nugget threads and Darren's Weekly Nuggets.

 

EDIT: wrong url

0 Kudos
Message 7 of 18
(9,550 Views)

@altenbach wrote:

Figuring out that "index array" is resizable... wait, In LabVIEW 4.0 it actually wasn't! 😄


Well look at that! So... Are you saying I don't get to do this anymore 🙂 ?

 

snippet.png

 

EDIT: P.S. my first snippet, a good one

 

0 Kudos
Message 8 of 18
(9,542 Views)

@vekkuli wrote:

@altenbach wrote:

Figuring out that "index array" is resizable... wait, In LabVIEW 4.0 it actually wasn't! 😄


Well look at that! So... Are you saying I don't get to do this anymore 🙂 ?

 

snippet.png


Even a resized "index array" would be overkill. Here's equivalent code. 😄

 

 

Message 9 of 18
(9,538 Views)

@altenbach wrote:Even a resized "index array" would be overkill. Here's equivalent code. 😄

 

 


Of course if the input array is in a floating point representation, you need to be very careful. It will not work the same if the input array has elements that are NaN, Inf, or -Inf. They would turn into NaN in the output array instead of zeroes. With an integer input as in the above case, there is no such problem.

 

 

0 Kudos
Message 10 of 18
(9,481 Views)