LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lvlib for single-programmer projects

I have inherited a huge LabVIEW program where the programmer made extensive use of LabVIEW lvlib libraries.

He was the lone programmer in the company.

 

Is there a reason for doing this?

 

 

0 Kudos
Message 1 of 12
(4,077 Views)

- Bundling related code? 20 years ago you would have used LLBs to do so…

- Creating an API for a certain functionality?

 

(I have to admit I don't use/create lvlib(p) files so much until now.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(4,045 Views)

It's a good way to structure your code and should make reuse and new design easier.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 12
(4,035 Views)

I don't see anything wrong with that. It doesn't matter if you're a single developer or a team of 20 developers, libraries are still for organizing the code, and keeping the code in order is beneficial for everyone.

Message 4 of 12
(4,031 Views)
0 Kudos
Message 5 of 12
(4,015 Views)

@nyc_(is_out_of_here) wrote:

Is there a reason for doing this?


Modularization.  Of course, I am assuming the libraries were actually organized by function, which also helps a lot with reuse.


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
0 Kudos
Message 6 of 12
(4,007 Views)

Well, think of yourself in two years as a different programmer to today and it becomes very clear why Libraries make sense.

 

Or can you remember every detail about all code you have ever written?  I'm at it over 20 years, I certainly can't.

 

Spoiler

 

And when I think back, I don't want to either.....

 

0 Kudos
Message 7 of 12
(4,005 Views)

I do it for namespacing purposes.  Using libraries, I rarely get cross-linked files.  An added benefit is that all the library VIs and controls get the same icon.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 12
(3,995 Views)

Hmmm, I have to say I have never came up with a reason myself for them at all, but I guess there are a couple good reasons here.

 

I may have to give them a try someday. 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 9 of 12
(3,982 Views)

Full disclosure: I DO NOT lurk here looking for thread where I can link to my blogs.

 

In this blog I wrote about lvlib's and why they are a nice feature. Please check out that blog where I try to offer an introduction and illustrate how to exploit libraries.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 12
(3,976 Views)