LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net error 1172 in LabVIEW

Hello

 

I am using LabVIEW 2014(32-bit) on my Windows 7 PC. I want to acquire images from a camera and for that I used .net configure dialog box.

The installed version of Microsoft .NET framework on my PC is 4.5 and I viewed the .net assemblies in my memory from View>.net assemblies in labview. It says:

Target CLR is v2.0 while LabVIEW is using CLR version 4.0. 

I have attached a screenshot of the problem.

What should i do to fix this?

 

 

0 Kudos
Message 1 of 8
(5,166 Views)

@mahim wrote:

Hello

 

I am using LabVIEW 2014(32-bit) on my Windows 7 PC. I want to acquire images from a camera and for that I used .net configure dialog box.

The installed version of Microsoft .NET framework on my PC is 4.5 and I viewed the .net assemblies in my memory from View>.net assemblies in labview. It says:

Target CLR is v2.0 while LabVIEW is using CLR version 4.0. 

I have attached a screenshot of the problem.

What should i do to fix this?

 

 


This isn't really an error per se. What it is saying is the .NET assemblies you are using were designed to run under CLR 2.0 but LabVIEW 2014 uses CLR 4.0 by default (SxS not enabled) and thus the assemblies have been promoted to run under CLR 4.0. This is informational.

 

Do you have any acutal error with your execution? Or just curious what the message means?

 

0 Kudos
Message 2 of 8
(5,130 Views)
Also be aware that the error code you specified is VERY generic. The real cause of the error is in the source text.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 8
(5,116 Views)

No I am getting this error:

 

Error 1172 occurred at Invoke Node , (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception: System.ApplicationException: Error 1: StopAcquisition: Invalid handle)

 

(The screenshot is attached)

 

I made a .net refnum for camera and used it to get the number of devices, but it is not detecting any camera(through .net).
I tried "camera enum VI" (built in) of labView and it is returning the camera ids and all.

So I think the main problem is because I am using different .net assemblies.

How should I solve this on windows 7. If its not clear, you can ask for more information

 

0 Kudos
Message 4 of 8
(5,098 Views)
The .net constructor node will use whatever assembly you tell it to. How do you have the constructor configured?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 8
(5,082 Views)

I read this:

The .NET Common Language Runtime (CLR) uses configuration settings to determine the assembly version to load and These configuration settings might override our request for a specific assembly version.

 

But how do i see the configuration settings and change them?

0 Kudos
Message 6 of 8
(5,070 Views)

Please post your code including the camera assembly files. The error message you posted doesn't contain the whole text so it's hard to help further without guessing.

 

Oh and a quick google search revealed this: http://digital.ni.com/public.nsf/allkb/567F6EFFC5669C348625739B003739CD

0 Kudos
Message 7 of 8
(5,055 Views)

I already tried doing that but no success.

 

I have attached the screenshots of VIs I am trying to do.

Main contains what I am actually trying. (Taking images from the camera) but it is giving error in "get number devices".

and other attchment contains sub VIs (create and get number devices)

Download All
0 Kudos
Message 8 of 8
(5,030 Views)