09-22-2014 03:08 PM
Hi,
I am trying to use a .dll interop created in LabVIEW for use in VB. I am trying to use the .dll on a separate machine from the one on which it was created, but the destination machine has LabVIEW Run-time. However, it seems that the .dll cannot find LabVIEW Run-time. I am wondering if there is another way I can build the interop or something I can do within VB to make sure the .dll understands where Run-time is.
Image attached showing the VB details for the exception.
Thanks in advance for any help or advice.
-Billy Maier
09-23-2014 11:05 AM
Hello Billy,
Does the Interop Assembly work on the machine you developed it on?
What versions of LabVIEW, LabVIEW Run-time, Visual Studio, and .NET are you using?
Can you try to make an installer for the Interop Assembly? This will make sure that the proper version of the LabVIEW Run-time is installed on your target machine. This can be done using the information at the following link:
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/build_installer/
Regards,
09-23-2014 01:52 PM
Yes, it did work on the original machine.
The original machine had LabVIEW 2010 on it. The destination machine has Visual Studio 2008, version 9.0.30729.1 SP; .NET version 3.5 SP1; NI Measurement Studio 8.6.35.465; and LabVIEW Run-time 8.6
Unfortunately the nature of this project requires that we cannot install anything further on the destination machine, so we cannot build an installer.
Thanks,
Billy Maier
09-23-2014 02:27 PM
09-23-2014 02:29 PM
The project adviser did not think the lack of matching would be an issue. He actually was surprised that we even needed Run-time on the machine. Also, we were developing remotely and unable to see which version was on the machine at the time.
09-23-2014 02:47 PM
09-23-2014 02:53 PM
He is actually quite skilled with LabVIEW but not very familiar with interfacing it with VB.
09-23-2014 03:02 PM
If he's that familiar with LabVIEW, then he should have been familiar with the concept of a LabVIEW run-time.
09-23-2014 03:19 PM
09-24-2014 10:26 AM
The system was locked down far before I was put on the project. Not sure why you guys are being so hostile, I thought this forum was supposed to be professional and friendly. Either way, looks like we'll probably just have to come up with a driver in VB.