LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why does labview load vis from exe instead of vi.lib?

Solved!
Go to solution

Hi,

 

I have a small but annoying problem.

 

My project calls an exe that we created using labview. In the project folder there is folder "SpectrumAnalyzer" with "Spectrumanalyzer.exe". Every time I open my project, Labview is conflicted about the same 4 VIs and asks me if to load them from vi.lib or from SpectrumAnalyzer.exe (screenshot attached). Why does it do this? How do I tell labview not to load VIs from witthin EXEs?

 

Thanks,

Danielle

 

"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry Pratchett
0 Kudos
Message 1 of 20
(3,942 Views)

remove the .exe from the project. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 20
(3,936 Views)

Its a cnflict issue for sure. 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 20
(3,931 Views)

Yamaeda, I can't do that because I want the installer to have the exe as well, so that we need to run only one installer to install our program and the exe (which can be called by the customer separately). We have done this before and not had any problems. Is there another way? Why does it make sense for LabView to search in an exe anyway? It can't use the VI from there (it shows File not Found). Isn't there some setting I can change for this?

 

Thanks,

Danielle

"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry Pratchett
0 Kudos
Message 4 of 20
(3,926 Views)

@dsavir wrote:

Yamaeda, I can't do that because I want the installer to have the exe as well, so that we need to run only one installer to install our program and the exe (which can be called by the customer separately). We have done this before and not had any problems. Is there another way? Why does it make sense for LabView to search in an exe anyway? It can't use the VI from there (it shows File not Found). Isn't there some setting I can change for this?

 



It makes sense for LV to search for files in the project. 🙂 Cant you in the installer include the exe directly from disk without having it in the project?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 20
(3,922 Views)

Hi,

 

Not that I know of. I can choose things in the installer only from the project. Like I said, we've done this before, we have both a post installer exe and a TCP-based communicator exe in the project. LabView doesn't ask me about all the TCP VIs, only about these 4.

 

Well, if this is the only solution, we'll either live with it or find another way to add it to the installer.

 

Thanks,

Danielle

"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry Pratchett
0 Kudos
Message 6 of 20
(3,917 Views)

Yeah it sounds annoying for sure. I'd assume after you've told the project once it should use the vi.lib it shouldn't really ask again, unless there's some rights issue preventing this information to be written, or similar.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 20
(3,913 Views)

During the building of your application why dont you browse from lib file instead of exe file i.e. when you include your file in project.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 8 of 20
(3,904 Views)

Hi,

 

I don't take from the lib file, I take my built exe. the exe includes some VIs from vi.lib. Because of this, every time I open my project it tries to take some of the VIs from the exe instead of Vi.lib. So far, no problems when building the application, only when opening the project.

 

Thanks,

Danielle 

"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry Pratchett
0 Kudos
Message 9 of 20
(3,900 Views)

 

@dsavir wrote:

Hi,

 

I don't take from the lib file, I take my built exe. the exe includes some VIs from vi.lib. Because of this, every time I open my project it tries to take some of the VIs from the exe instead of Vi.lib. So far, no problems when building the application, only when opening the project.

 

Thanks,

Danielle 


Are you have some file which is common and have different place, which is called by exe and from lib file

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 10 of 20
(3,883 Views)