11-17-2011 10:39 PM
I don't remember installing anything from Cognex. Is there a way to check.
11-18-2011 05:14 PM
You should be able to check under Control Panel>> Add or Remove Programs. If you don't see anything installed from Cognex, then you shouldn't have any of their software installed. They are a machine vision company, so if you do not do image processing, then it is likely that you do not have their software installed.
Just to clarify, you are no longer having issues with your .NET assembly, right?
Best,
Dan N
Applications Engineer
National Instruments
11-18-2011 11:56 PM
I am still having the same problem. Please help.
11-21-2011 08:24 AM
I apologize; from earlier in the forum, I thought that you had reinstalled .net support and then were able to successfully use it in Labview. What version of Labview are you using?
Best,
Dan N
Applications Engineer
National Instruments
11-21-2011 08:27 AM
I'd also suggest doing a repair on the LabVIEW install, or as a last resort a full uninstall and reinstall. It's amazing how many problems this fixes. Does the same thing happen on another machine?
11-21-2011 11:01 AM
I am using LabVIEW 2011. I also have LabVIEW 8.6 on my machine. However, LabVIEW 2011 is the one having problem with .NET. In the "Select .NET Constructor" dialog, there is a browse button. Maybe I can browse to the correct .NET classes? How do I do that?
I want to save the re-installing labview option at the end.
11-21-2011 11:52 AM
I followed the instruction on http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/configuring_clr_version/, and the now it works. If I do this, I will be using CLR 4.0. It seems LabVIEW recommand CLR 2.0. How do I use CLR 2.0 instead of CLR 4.0? Thanks!
11-21-2011 12:09 PM
@jyang72211 wrote:
I am using LabVIEW 2011. I also have LabVIEW 8.6 on my machine. However, LabVIEW 2011 is the one having problem with .NET. In the "Select .NET Constructor" dialog, there is a browse button.
If it were me I'd click on the button that says "Browse...". But that's just me. I'm funny trying the obvious things.
I followed the instruction on http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/configuring_clr_version/, and the now it works. If I do this, I will be using CLR 4.0. It seems LabVIEW recommand CLR 2.0. How do I use CLR 2.0 instead of CLR 4.0?
If it were me I'd change the Framework version in that file in the line that says <supportedRuntime version="v4.0.30319"/> to the 2.0 version. But that's just me. Look in the "C:\Windows\Microsoft.NET\Framework" directory for the ones that are installed.
11-21-2011 12:26 PM
haha. I did try the browse button, but I didn't know where to browse. I change the line in the file to <supportedRuntime version="v2.0.50727"/>. When I drop a constructor node on a block diagram, LABVIEW will exit/crash.
11-21-2011 01:10 PM
I think you have a corrupted installation. Creating that configuration file is only necessary if you explicitly use a specific version of .NET. Without that file placing a .NET constructor on the block diagram should pop up the constructor select dialog with all of the assemblies in the GAC listed. The Browse button is used to select a private assembly.