06-23-2015 07:25 AM
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?
06-23-2015 02:34 PM
@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?
06-23-2015 09:48 PM
06-24-2015 03:41 AM
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
06-24-2015 05:05 AM
06-24-2015 07:36 AM
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?
06-24-2015 02:25 PM - edited 06-24-2015 02:29 PM
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
06-25-2015 04:03 AM
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)