03-05-2009 08:09 AM
03-05-2009 08:22 AM
falkpl wrote:
... I have used Labview since 1997 activly and this is just one feature I have been slow to adopt.
You have a year on me but I was slow to adopt them as well.
What made the difference in my case was LVOOP where many of the features of libraries are exploted.
The draw-backs?
If you have loaded the NI-Report Generation Toolkit you will see something that could qualify as a limitaion. In older version of this tool-kit we were able to enhance it with any extra method we need since it was all open.
The new version has been implemented using LVOOP and due to the way the library was structured we can no longer get at or use any of the references since they are all private data and only members of teh class are allowed to get at the private data. While this if good for the integrity of the toolkit, we are faced with the situation "if the tool does not do the job, we have to start all over from the begining."
So if you have re-use code that is rock-solid and you want to share it while also ensuring nobody can mees with your stuff, libraries are useful.
If you aren't doing that and not LVOOPing then we fall back to the old draw back of libraries bieng "all of your eggs (VIs) in one basket (llb)".
Ben
03-06-2009 08:15 AM
Thanks. I have not adopted OOP much despite going to grad school in computer science and OOP was all the rage (no one in my program even knew of labVIEW). I am considering using libraries for the sets of functions I have developed for internal use. My bigest concern is when I transfer projects between computers. I like having all the projects seperate and sharing these common libraries could be more difficult. If a have a library in my vi.lib and add a copy to my project will there be conflicts. I dont want have to install the library on every machine I mave my code to. Alse can I have multiple versions (Both labVIEW and project library versions) of the same library in my vi.lib and manage this. I fear that if I modify a library it could break old code, and in that case it would be nice to roll-back to the original linked version of the library)
03-06-2009 08:26 AM
falkpl wrote:Thanks. I have not adopted OOP much despite going to grad school in computer science and OOP was all the rage (no one in my program even knew of labVIEW). I am considering using libraries for the sets of functions I have developed for internal use. My bigest concern is when I transfer projects between computers. I like having all the projects seperate and sharing these common libraries could be more difficult. If a have a library in my vi.lib and add a copy to my project will there be conflicts. I dont want have to install the library on every machine I mave my code to. Alse can I have multiple versions (Both labVIEW and project library versions) of the same library in my vi.lib and manage this. I fear that if I modify a library it could break old code, and in that case it would be nice to roll-back to the original linked version of the library)
I avoid putting stuff in vi.lib or User.lib just because of the issues you listed. It's no big deal if you only have one big app and you never have to switch back and forth or move projects between developers. So all of my re-use code lives in a folder on my server and wahtever I need gets copied into my source Code folder. The Re-Use code seldom gets updated so I am not concerned with pushing it back to the server. If the app gets updateed to a new version of LV the whole Source Code folder get updated but what was on the server does not get touched.
But I am alone in the avoidance of VI/lib and User I fear.
If you want to go the path of using vi.lib then I suggest you look closely at The VIPM offered by JKI. I have evaluated it for our use and if we were using VI/lib and User.lib then we would be uisng it as well. But since I put the sqaush on User.lib about 8 years ago, we don't have a need for it.
Like I said, I am alone in avoiding User.lib.
Just trying to help (and possibly stirring up some conversion re: "To User.lib or not to SUser.lib, that is the question."
Ben
03-09-2009 08:12 AM