LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net constructor nothing show up

Solved!
Go to solution

I don't remember installing anything from Cognex.  Is there a way to check.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 11 of 23
(1,442 Views)

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 

0 Kudos
Message 12 of 23
(1,426 Views)

I am still having the same problem.  Please help.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 13 of 23
(1,421 Views)

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 

Message 14 of 23
(1,411 Views)

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?

Message 15 of 23
(1,408 Views)

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.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 16 of 23
(1,402 Views)

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!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 17 of 23
(1,397 Views)
Solution
Accepted by topic author jyang72211

@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.

Message 18 of 23
(1,395 Views)

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.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 19 of 23
(1,392 Views)

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.

Message 20 of 23
(1,388 Views)