07-11-2011 09:24 AM
Hi,
I'm using LV 8.6.1.
Is there any chance to move the three library folders outside LabVIEW directory and modify the LV installer to
automatically put the files in the modified locations?
Thanks
07-11-2011 09:31 AM
No.
Obvious question: why? vilib is a core folder.
07-11-2011 09:35 AM - edited 07-11-2011 09:36 AM
1. No for both parts of the question or only for one of them?
2. To control the source code of course. I'd like to be sure that every machine is using the same set of libraries.
07-11-2011 09:49 AM
@MimiKLM wrote:
1. No for both parts of the question or only for one of them?
Yes.
2. To control the source code of course. I'd like to be sure that every machine is using the same set of libraries.
The source code of what? LabVIEW? Those folders are populated during the LabVIEW install or other installers, like DAQmx. Anything after that is placed in by the user. As I noted, vilib is where the core LabVIEW stuff is. You shouldn't be messing with this at all. instrlib is where instrument drivers go. userlib is where you put additional stuff, such as OpenG. If you are trying to control your source code then I suppose you could put instrlib and userlib under source code control, but uninstallation/reinstallation of LabVIEW will probably screw it up since it would blow away these directories.
07-11-2011 11:55 AM - edited 07-11-2011 11:56 AM
@smercurio_fc wrote:The source code of what? LabVIEW (...)
Two reasons:
1. What I'm trying to gain doing so is to create a sole, controlled source of VIs for the team.
2. What I'm trying to gain doing so as well is to to prevent mass compiling operation to modify the files and loosing the control of what has been changed.
Do you think that I could achieve point 2 by locking the user.lib and the instr.lib folders to be read only or setting the RO credentials?
Let assume I moved these two folders outside the LabVIEW. Shall I then let LV know I moved them somewhere else than search paths? Would it be enough that I would made the fresh LV instalation, import these two folders into the repo, check them out to some network share (RO), delete them off from LV folder and modify the search directories to point to the new locations?
K.
07-11-2011 01:20 PM
It would probably be easier to keep your controlled source of VIs in a separate location that's under source code control. Then each developer can include that directory in their search path and whenever there are updates to this core set of files they can just pull down the updates. I don't think messing around with the LabVIEW core directories is a good idea.
07-11-2011 03:22 PM
This is what I and a lot of other developers do: use VIPM. Primary reuse-code is maintained under SCC. A benefit is that you don't need a giant repo, but have a dedicated repo for the reuse code; seperated from the projects. Then make a package out of it, a feature now included in the free community edition. There was always versioning enforced with the packages.
This package goes into the project repo if in use. Deploy it (automated copy into vi.lib, user.lib, instr.lib and a lot more locations). Use it. Spending some money on VIPM (Pro or Enterprise) makes this process more comfortable, e.g. generate a snapshot of all reuse packages of a project.
Please note, I'm not working for or getting any money from JKI. I'm just using their free edition, and I think it's good SW.
Felix