LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

invalid lv client error

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!

0 Kudos
Message 1 of 12
(4,113 Views)

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.

Liam A.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 12
(4,093 Views)

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

0 Kudos
Message 3 of 12
(4,067 Views)

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.

 

 

Liam A.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 12
(4,018 Views)

I have 6.1, 8.5.1, 2009 SP1, and 2010 installed.

0 Kudos
Message 5 of 12
(4,009 Views)

Are these all 32 bit or do you have 64 bit installed also?

 

Liam A.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 12
(4,007 Views)

32bit only

0 Kudos
Message 7 of 12
(4,005 Views)

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?

Liam A.
National Instruments
Applications Engineer
0 Kudos
Message 8 of 12
(4,000 Views)

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.

0 Kudos
Message 9 of 12
(3,989 Views)

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!

Liam A.
National Instruments
Applications Engineer
0 Kudos
Message 10 of 12
(3,981 Views)