LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

In LabWindows/CVI, how can I have one library set for one project and another library for a different project

In LabWindows/CVI, using the project menu, instrument (.fp) drivers are loaded using the Options/Library Options... Menu. Project A uses these drivers. I need to load project B that uses different instruments (some instruments for project B have the same name as the instruments for project A, but have different functions). The problem I see is that if the instrument driver list is changed for project B, the list of libraries for project A is no longer correct (the instruments for project B are loaded when LabWIndows/CVI is launched). Is there a way to have project A have one set of instrument drivers and project B have another set?
0 Kudos
Message 1 of 3
(2,799 Views)
When you load .fp files using the Options/Library method the libraries are loaded every time CVI is started - regardless of the project you are working on - you can see this by closing any open projects within the CVI workspace - they should still be accessible from the usual menus.

If you need to specify specific .fp files for different projects, the simplest way is to add the .fp file to the project (look for menu options that allow you to add new files to current project - I forget if this is in the File or Edit menu).

What you will see is that the instrument driver is loaded into memory at the same time as the project and accessed in the usual way. However, the instrument driver will be unloaded when the project is closed.

Jeremy
0 Kudos
Message 2 of 3
(2,799 Views)
You can load instruments in a few different ways. One is from the instrument menu which loads the instrument into the CVI environment for all projects during that session of CVI. That is not the way you want to load the instrument drivers in this case. You can also add instrument drivers to the project. (Project Windows Edit->Add Files To Project->Instrument(*.fp)). This way the instrument driver is loaded whenever the project is loaded and unloaded when the project is unloaded. This is what you want to use in this case. Open each project and add the FP files that are used in that project to the project file list.

Best Regards,

Chris Matthews
0 Kudos
Message 3 of 3
(2,799 Views)