LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is you most reused VI you came up with?


@paul_cardinale wrote:

paul_cardinale_0-1660843195231.png

 


Love the icon.

 

 

My recently most used is a sub-milisecond delay. 

AeroSoul_0-1661324222397.png

When i need just a tiny bit of delay when sending single characters with VISA.

0 Kudos
Message 21 of 34
(1,112 Views)

WfrmRename.png

today I'm allowed to add something... so here my wfrm renamer ..  the false case just forward the wires

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 22 of 34
(1,091 Views)

@JÞB wrote:

@raphschru wrote:

@JÞB wrote:

@raphschru wrote:

 - A simple and compact error inserter:

Insert Error.png


You want to right-click that Merge Errors and select "Retain all errors" it changes the glyph so, I know you missed that additional option in 2020.


Indeed I never used that functionality, but I usually only care about the first occuring error, as subsequent errors may be a consequence of the first error.

I agree it may add useful infos, but then the default error dialog becomes unreadable and a more complex error management is required too.


Then you should:

  • Remove the merge errors
  • Slap an error case in there
  • Slap yourself silly for that

You have written add error if error in is no error


Here is my implementation of inserting an error.

Frozen_0-1661349018684.png

 

Error - Modify chain.png

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 23 of 34
(1,081 Views)

In agreement with @JÞB, my most reused VI is "TEMPLATE Basic VI.vit" (I think I created this more than a decade ago), which I invoke every time I create a new VI (and I tend to create a lot of them, possibly "more than are necessary", but it keeps the "messy details" from obscuring what a VI is "supposed to be doing").  When invoked (from the File, New ... menu option), it creates a new VI in the standard 4-2-2-4 Connector design, with Error In and Error Out (I prefer to use these names, with Proper Case naming) wired to the lower corners, and a blank Icon (to "force" me to create something before I drop an otherwise "invisible" VI on my evolving Block Diagram.  But I also use a lot of Channel Wires ...

 

Bob Schor

0 Kudos
Message 24 of 34
(1,068 Views)

@AeroSoul wrote:

@paul_cardinale wrote:

paul_cardinale_0-1660843195231.png

 


Love the icon.

 

 

My recently most used is a sub-milisecond delay. 

AeroSoul_0-1661324222397.png

When i need just a tiny bit of delay when sending single characters with VISA.


Why not the high-resolution polling wait?

It is the same technique you've implemented but with better precision since it leverages some windows dll

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 25 of 34
(1,049 Views)

It's a pet peeve of mine, but I always disliked how to add units to numbers on frontpanel indicators. It's either 3.14kHz (%.2pHz) or 3.14k Hz (%.2p Hz).

The standard notation is 3.14 kHz (with a space between the number and prefix), which isn't natively supported. So for frontpanel indicators needing a unit I almost always use this vi that formats it correctly.

Convert to string with SI unit.png

Message 26 of 34
(1,016 Views)

@Basjong53 wrote:

.

The standard notation is 3.14 kHz (with a space between the number and prefix), which isn't natively supported. So for frontpanel indicators needing a unit I almost always use this vi that formats it correctly.

 


Nope, Mathematically it is 3.14*1000*Cycles/Second or "3.14kHz" where "*" is implied the space breaks the math.


"Should be" isn't "Is" -Jay
0 Kudos
Message 27 of 34
(1,005 Views)

@Basjong53 wrote:

Convert to string with SI unit.png


You might get a little better performance if you changed your lookup to be a map.  This would eliminate the FOR loop and it would use a binary search instead of a linear search.


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 28 of 34
(1,000 Views)

"%.2{Hz}p" works, but has the drawback of only working for frequency.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 29 of 34
(991 Views)

@Basjong53 wrote:

It's a pet peeve of mine, but I always disliked how to add units to numbers on frontpanel indicators. It's either 3.14kHz (%.2pHz) or 3.14k Hz (%.2p Hz).

The standard notation is 3.14 kHz (with a space between the number and prefix), which isn't natively supported. So for frontpanel indicators needing a unit I almost always use this vi that formats it correctly.

Convert to string with SI unit.png


Try this

fnwu.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 30 of 34
(978 Views)