cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with FGEN Driver in VB

William.Maier
Member

Problem with FGEN Driver in VB

Message contains an attachment

Hi,

 

I am trying to use a .dll driver I created with LabVIEW in VB.  However, when I try to debug a VB project using functions from the .dll, I get the error shown in the attached image.  The text reads "Could not load file or assembly 'NationalInstruments.LabVIEW.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=daeb5dc76be4e32a' or one of its dependencies. The system cannot find the file specified."

 

I should note that this computer does not actually have LabVIEW on it.  I am suspecting that may be related to the problem.

 

I am using Visual Studio 2008, version 9.0.30729.1 SP.  I am also using .NET version 3.5 SP1.  I am also using NI Measurement Studio 8.6.35.465

 

Let me know if there are any other important details I should provide related to this.

 

Thanks,

Billy

 

note:  This is a cross-post from the Measurement Studio forum.

10 REPLIES 10
Dennis_Knutson
Knight of NI

Re: Problem with FGEN Driver in VB

Do you have the LabVIEW runtime installed?

It's also not clear off the type of dll you created. A c type or .net.
William.Maier
Member

Re: Problem with FGEN Driver in VB

It is a .net Interop dll.  I'm fairly certain LabVIEW runtime is not installed.  Is there a way to verify this?

 

Thanks

Dennis_Knutson
Knight of NI

Re: Problem with FGEN Driver in VB

Why don't you just install it?
William.Maier
Member

Re: Problem with FGEN Driver in VB

The nature of this project requires that we can't install any new software on this machine.  The idea to use a LabVIEW-generated driver was conceived by someone who didn't have an exact knowledge of the machine itself and what NI software it already has.

 

If there is no LabVIEW runtime on the machine, is it still possible to use this dll?

 

Thanks

Highlighted
Dennis_Knutson
Knight of NI

Re: Problem with FGEN Driver in VB

No.
William.Maier
Member

Re: Problem with FGEN Driver in VB

Is there a way to wrap the driver such that it can be used?  Is the NI FGEN .net wrapper usable without LabVIEW Runtime?

 

Thanks

Dennis_Knutson
Knight of NI

Re: Problem with FGEN Driver in VB

If you use LabVIEW, the runtime is required. Does NI not provide a .NET api?
William.Maier
Member

Re: Problem with FGEN Driver in VB

Okay, so after running a search I have determined that the machine does in fact have LabVIEW runtime.

 

Given that, is there another possible cause for the error in my inital post?

 

Thanks

Dennis_Knutson
Knight of NI

Re: Problem with FGEN Driver in VB

I don't have enough experience with .NET to suggest anything other than double checking the path as the error mentions, sorry.