LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why won't my vi run outside of the LV2011 project explorer?

I've created a LV2011 project. The vi's within this project open executables to perform measurement functions. When I open the vi's from within the project explorer window the executables open with no issues. However, with the LV project closed and opening the vi's from "windows explorer" the executables won't launch. It seems like I need to have the LV project explorer window open. However that does not work very well in a manufacturing environment. What is the dependency relationship of running vi's in or out of the LV project? How can I remove this dependence?

0 Kudos
Message 1 of 10
(3,510 Views)

@JGmitter wrote:

However that does not work very well in a manufacturing environment.


You shouldn't even have LabVIEW on the floor of a manufacturing environment.  You should be building executables from your LabVIEW code and those should be on the floor.

 

Can you share any of your code?  Are you getting any errors?


GCentral
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
Message 2 of 10
(3,505 Views)

 

 

 

0 Kudos
Message 3 of 10
(3,493 Views)
Why on earth would you spend the money for a development system on each production pc instead of building an exe? Do you actually have that many licenses? I don't think a perfect world is an apt description.
0 Kudos
Message 5 of 10
(3,450 Views)

Dennis,

The customer has an enterprise software license agreement.  They tend to do a very long new product introduction.  30% of the design is finalized / tweaked in low volume manufacturing.  Yea, its kind of silly but that’s how they do it.  So I take it you don't know the answers to my questions?

0 Kudos
Message 6 of 10
(3,440 Views)

tyk007,

Thanks that was helpful.  I added the root C: directory to the search paths with no luck.  😞  Thanks though.

0 Kudos
Message 7 of 10
(3,431 Views)

@JG-MACK wrote:

@tyk007

Thanks that was helpful.  I added the root C: directory to the search paths with no luck.  😞  Thanks though.


If you read through that help item then you probably realise that Fusion will start locating your assemblies from the LabVIEW executable path (eg. C:\Program Files\National Instruments\LabVIEW) if you load without a project. Adding search paths to the labVIEW environment will make no difference; LabVIEW is not the one performing the search - the CLR is.

 

This is why NI strongly recommend a project - this adds your project folder where your lvproj lives to Fusion's search path.

 

If you don't want to budge from using teh development environment - and don't want to add the .NET assemblies to the LabVIEW folder, then you could add them to the GAC if they are signed. The GAC is always in Fusion's search path.

0 Kudos
Message 8 of 10
(3,407 Views)

TYK007,

Thanks for the info.  🙂

 

"If you don't want to budge from using teh development environment - and don't want to add the .NET assemblies to the LabVIEW folder, then you could add them to the GAC if they are signed. The GAC is always in Fusion's search path."

 

I need to do some research on fusion and the GAC.  I have not had to use these tools as of yet.  Do you have any good step by step resources?

 

0 Kudos
Message 9 of 10
(3,375 Views)

@JG-MACK wrote:

TYK007,

Thanks for the info.  🙂

 

"If you don't want to budge from using teh development environment - and don't want to add the .NET assemblies to the LabVIEW folder, then you could add them to the GAC if they are signed. The GAC is always in Fusion's search path."

 

I need to do some research on fusion and the GAC.  I have not had to use these tools as of yet.  Do you have any good step by step resources?

 


It might be best to check to see if it is a fusion loading problem first. You should be able to error the error messages in Event Viewer. What do you see there?

0 Kudos
Message 10 of 10
(3,321 Views)