08-22-2018 09:05 PM
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?
08-23-2018 01:13 AM
08-23-2018 02:52 AM
It's a good way to structure your code and should make reuse and new design easier.
/Y
08-23-2018 03:19 AM
08-23-2018
07:13 AM
- last edited on
04-28-2025
02:53 PM
by
Content Cleaner
For many good reasons: https://www.ni.com/docs/en-US/bundle/labview/page/using-libraries-in-labview-projects.html
08-23-2018 07:46 AM
@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.
08-23-2018 07:52 AM - edited 08-23-2018 07:52 AM
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.
And when I think back, I don't want to either.....
08-23-2018 08:53 AM - edited 08-23-2018 08:55 AM
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.
08-23-2018 09:30 AM - edited 08-23-2018 09:31 AM
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.
08-23-2018 09:39 AM
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