ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

取消
显示结果 
搜索替代 
您的意思是: 

Missing items when building project application

Hi.

 

I am having a big problem the paths regarding libraries in my project. When I go to build my application Labview informs me that some source files are missing and to look for the missing items. In the project explorer there are two versions of the driver library and neither have the correct path to where the folder actually is and have conflictions and not loaded warnings.

 

So I drag the actual library from windows explorer into labview project and remove the other ones from the project. Then I go to find missing items and click on on of the vi's which has the wrong path. I right click and select run to try and change the path but theis generates  an instrument library in dependancies that are locked and I cannot remove from my project. This is in the upper red circle.

 

LV Project.jpg

 

How can I remove the files with the incorrect paths and leave the correct ones. This does seem like a trivial task but Labview keeps forcing these old nonixisting paths which is really annoying.

 

Thanks,

 

Mark.

0 项奖励
1 条消息(共 9 条)
8,554 次查看

Not sure why they are locked, but for instrument drivers, you either need to leave them in instr.lib or you need to copy the entire library into your project directory.  The lvlib means that all of the associated files must be there.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
2 条消息(共 9 条)
8,549 次查看

Are you sure all the SubVis that you use on your project are calling the same library?

 

could be that you have subvi A calling to library on location X and SubviB calling location Y

 

 

Also you could try opening the labview project file as a txt file and mess with the xml  and delete stuff from there

CLAD, CTD
3 条消息(共 9 条)
8,541 次查看

Take for example the second highlighted one below. That folder does not even exist so where is LV getting it from. Is it possible to somehow delete this from the project or change the path?

 

LV Project1.jpg

 

Mark.

0 项奖励
4 条消息(共 9 条)
8,540 次查看

I just rebuilt the project instead. It solved the problem so I shouldnt of had to in the first place.

0 项奖励
5 条消息(共 9 条)
8,507 次查看

@MarkGreally wrote:

Take for example the second highlighted one below. That folder does not even exist so where is LV getting it from. Is it possible to somehow delete this from the project or change the path?

 

LV Project1.jpg

 

Mark.


I believe that when you use the instrument builder wizard that comes with LabVIEW, it sets everything up so the files expect to be in instr.lib. It's been a little while since I have downloaded instrument drivers, so I forget how you fix it, maybe by just opening the .lvproj in your downloads folder, it realizes it's not going to be instr.lib.

 

I think the instr.lib folder had good intentions, but I really don't like the effects of it sometimes. The biggest issue is that if you move your project to a new computer, you have to make sure you update instr.lib as well. I find it easier to just keep the drivers in the same folder as the rest of the project, which unfortunately means having duplicate driver files if you work with the instrument in multiple projects. The nice thing about keeping them in the project folder, rather than instr.lib, is that you can modify them. Some drivers come with a lot of errors, and it is nice to be able to modify them without screwing up another project that relies on instr.lib.

 

Example: I was working with Ocean Optics spectrometers from instr.lib when I realized the data was improperly shifted. Other projects also used those drivers from instr.lib, most likely with a different model of spectrometer since no one reported this issue before, so I didn't want to modify them. My quick fix was to take the output and pad the amplitude array with zeroes, so that it lined up with the wavelength array. But if I had a separate copy of the drivers, which I did in a later project, I could modify the actual drivers to take the right number of data points.

6 条消息(共 9 条)
8,496 次查看

I would be inclined to copy them to the project folder. I do sometimes tweak them for the specific project and wouldnt want to screw up the other projects that depend on them. I did some folder resructuring on my pc and that caused havoc with labview. At least I know how sensitive it is and not to do it in the future.

0 项奖励
7 条消息(共 9 条)
8,491 次查看

Yes, I think the best way is to press ctrl+e in the project to get the file view. In this way you can move files on disk and LabVIEW still knows where they are.

8 条消息(共 9 条)
8,488 次查看

Thanks, I will keep this in mind.

0 项奖励
9 条消息(共 9 条)
8,483 次查看