LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Find and Load" library

Solved!
Go to solution

Due to a reinstall, I'm finding a lot of "This VI is connected with a library that LabVIEW cannot find. Find and load the library or select File»Disconnect from Library." errors...

I'm not an expert: I found the "Disconnect from Library." command - but I fear the consequences.

How can I instead "Find and load" the library that my VI is missing? I cannot find that command!

 

Alessandro

 

0 Kudos
Message 1 of 8
(7,652 Views)

Hi alzyx,

 

How can I instead "Find and load" the library that my VI is missing? I cannot find that command!

That's not a command, it's an action you have to take!

 

Find the missing library and place it, where it belongs to.

Easiest would be to check out your current projects from your SCC (source code control) system!

(When you don't use a SCC system so far: use one from now on!)

Otherwise check the backups you made before "reinstalling"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(7,622 Views)
Solution
Accepted by topic author alzyx

When you put the VI into library, it creates two-way relationship:

  • the lvlib file refers to the VI (if you open lvlib in text editor, you'll find something like that: <Item Name="MyVI.vi" Type="VI" URL="../MyVI.vi"/>)
  • the VI refers to lvlib (you may also open VI in text editor and you'll find your library name, surrounded by some binary babble)

(Note: you shouldn't ever edit the contents of lvlib or VI files in text editors!)

The message you get simply tells that your VI "knows" that it should be in the library, but LV can't find the proper lvlib file. If you do Disconnect from library on your VI, it will remove the lvlib reference from the VI. But it would be better if you'll find the missing lvlib file and put it where it should be (there is no option in LV to "Find and load" the library, you must find it manually in your file system).

Now, the real question is - are we talking about your own libraries and VI or the ones that comes installed with LabVIEW? If the latter, you should simply reinstall LabVIEW.

0 Kudos
Message 3 of 8
(7,619 Views)

thanks a lot, very clear explanation.

The libraries I'm worried about are part of a suite that I've been given to deal with a Thorlabs TSI camera.

I'll look into the missing lvlib's and hope for the best

 

alessandro

0 Kudos
Message 4 of 8
(7,604 Views)

mmm... that's strange...

I just checked, and everything is present and happy in the same directory with its lvlib file.

the library Set Parameter.lvlib is this:

<?xml version='1.0'?>
<Library LVVersion="8508002">
	<Property Name="NI.Lib.Icon" Type="Bin">.....</Property>
	<Property Name="NI.Lib.Version" Type="Str">1.0.0.0</Property>
	<Item Name="Set COOLING_MODE.vi" Type="VI" URL="Set COOLING_MODE.vi"/>
	<Item Name="Set COOLING_SETPOINT.vi" Type="VI" URL="Set COOLING_SETPOINT.vi"/>
	<Item Name="Set EXPOSURE_TIME_US.vi" Type="VI" URL="Set EXPOSURE_TIME_US.vi"/>
	<Item Name="Set EXPOSURE_UNIT.vi" Type="VI" URL="Set EXPOSURE_UNIT.vi"/>
	<Item Name="Set FRAME_COUNT.vi" Type="VI" URL="Set FRAME_COUNT.vi"/>
	<Item Name="Set GAIN.vi" Type="VI" URL="Set GAIN.vi"/>
	<Item Name="Set HW_TRIG_POLARITY.vi" Type="VI" URL="Set HW_TRIG_POLARITY.vi"/>
	<Item Name="Set HW_TRIG_SOURCE.vi" Type="VI" URL="Set HW_TRIG_SOURCE.vi"/>
	<Item Name="Set HW_TRIGGER_ACTIVE.vi" Type="VI" URL="Set HW_TRIGGER_ACTIVE.vi"/>
	<Item Name="Set OP_MODE.vi" Type="VI" URL="Set OP_MODE.vi"/>
	<Item Name="Set OPTICAL_BLACK_LEVEL.vi" Type="VI" URL="Set OPTICAL_BLACK_LEVEL.vi"/>
	<Item Name="Set PIXEL_OFFSET.vi" Type="VI" URL="Set PIXEL_OFFSET.vi"/>
	<Item Name="Set QX_OPTION_MODE.vi" Type="VI" URL="Set QX_OPTION_MODE.vi"/>
	<Item Name="Set READOUT_SPEED_INDEX.vi" Type="VI" URL="Set READOUT_SPEED_INDEX.vi"/>
	<Item Name="Set ROI_BIN.vi" Type="VI" URL="Set ROI_BIN.vi"/>
	<Item Name="Set TAPS_INDEX.vi" Type="VI" URL="Set TAPS_INDEX.vi"/>
	<Item Name="Set TURBO_MODE.vi" Type="VI" URL="Set TURBO_MODE.vi"/>
	<Item Name="Set VGA_GAIN.vi" Type="VI" URL="Set VGA_GAIN.vi"/>
	<Item Name="Set XBIN.vi" Type="VI" URL="Set XBIN.vi"/>
	<Item Name="Set XORIGIN.vi" Type="VI" URL="Set XORIGIN.vi"/>
	<Item Name="Set XPIXELS.vi" Type="VI" URL="Set XPIXELS.vi"/>
	<Item Name="Set YBIN.vi" Type="VI" URL="Set YBIN.vi"/>
	<Item Name="Set YORIGIN.vi" Type="VI" URL="Set YORIGIN.vi"/>
	<Item Name="Set YPIXELS.vi" Type="VI" URL="Set YPIXELS.vi"/>
</Library>

 ... and yet all the VI's mentioned are broken with their owning library missing

 

0 Kudos
Message 5 of 8
(7,598 Views)

Are the libraries back in the project and the broke VIs back in them where they should be?

 

If you save all after getting them back where they should be, all should be OK.

 

That kind of problem will happen if we add VIs to a library, save the library and LV crashes before the project and/or library are saved.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 8
(7,578 Views)

Hello,

I am having same the problem. could please tell me what it is that you exactly did?

Best regards 

0 Kudos
Message 7 of 8
(5,706 Views)

I'm sorry,

but so much time elapsed that a) I do not remember anymore if/how I solved it, and 2) I stopped altogether programming in Labview, switching to Python instead.

 

Sorry...

 

Alessandro

 

0 Kudos
Message 8 of 8
(5,698 Views)