12-20-2010 01:41 PM
I created a .Net interop assembly with LV2009 and added it to a Visual Studio 2005 VB.net project. When I run the project I get a "Invalid LV Client" error when it calls one of the functions in the interop assembly.
Anyone got any ideas on this?
Thanks!
12-21-2010 07:01 AM
Hi there!
It may be one of a couple of issues.
Firstly, does your VI contain any dynamic loading of other VIs, and if so are they set to be always included - essentially a missing dependency?
If this does not move any distance to solving the issue, could you let me know what OS you are using please.
12-28-2010 10:18 AM
As far as I know this doesn't call any dlls. This is running on Windows XP SP3. It's the Eurotherm 35xx instrument driver package found on the NI instrument drivers site that I converted over to an interop assembly.
Thanks
01-05-2011 04:06 AM
Hi there again!
Which version or versions of LabVIEW are you running or have you installed on the machine previously?
I will continue to look into this in the meantime.
01-05-2011 09:00 AM
I have 6.1, 8.5.1, 2009 SP1, and 2010 installed.
01-05-2011 09:02 AM
Are these all 32 bit or do you have 64 bit installed also?
01-05-2011 09:03 AM
32bit only
01-05-2011 09:12 AM
Is this error occuring on the computer that you have created the .NET on or another, and do you have the NI VISA Run-time engine?
01-05-2011 09:27 AM
This has not been deployed yet - so yes, the error happens on the dev pc. I have everything installed that comes with the developers suite. NI Visa RT 4.6.1 is installed.
01-05-2011 11:03 AM
Hi there,
Here are a couple of things that you could perhaps try to resolve this issue.
Below is the Help link on how to build a .NET Interop,
http://zone.ni.com/reference/en-XX/help/371361F-01/lvhowto/building_a_net_assembly/
it might be a case of making the .NET interop again following the guidance above ensuring every function prototype is properley defined, as this may cause a problem.
Otherwise, you could use the Driver export wizard in LabVIEW 6.1, this is no longer included since LabVIEW 8.2.
Please let me know if this helps!