LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Referencing .Net Assemblies

Hi, hopefully a quick and easy question...

I've written a .Net DLL in VB.Net and am trying to make use of it through LabVIEW 7.1.

I place the dll in the appropriate vi directory and reference it under Tools>Advanced. Then I place a constructor node in the block diagram, choose the object I want... but I don't seem to get a list of constructors? What can cause this, all my objects seem to have no constructors... or so it would appear (which is wrong btw). Am I doing something silly, any help would be greatly appreciated.

Thanks,

Mike
0 Kudos
Message 1 of 15
(3,796 Views)
Are the constructors declared to be public or internal? LV only shows the public constructors.

Also, just to be clear - you put the assembly in the same directory as the VI that you run, correct?

If they are public, can you either post the assembly or email it to me? I can take a look to see what is going on.
0 Kudos
Message 2 of 15
(3,789 Views)
Yes most of my constructors are public and yes it is in the same directory as my VI.

I created a brand new assembly in .Net and created a simple class with two constructors and they seem to work fine, the only difference seems to be the amount of objects and namespaces in my original dll. Are there any other factors that affect LabVIEW interpretation of .Net assemblies?

I don't have a problem posting you my compiled dll if that will help... what is your email address?

Mike
0 Kudos
Message 3 of 15
(3,782 Views)
You can send it to bloggingbrian@gmail.com or post it here - up to you.

There isn't anything that I can think of in terms of finding the constructors. We use the .NET reflection API's to iterate through the namespaces and classes. But there's obviously something 🙂
0 Kudos
Message 4 of 15
(3,781 Views)
Hi, did you have any further luck/ideas regarding my .Net assemblies and accessing the constructors via LabVIEW?
0 Kudos
Message 5 of 15
(3,765 Views)
Afraid not - I haven't received the assembly. Did you try to email it to my gmail account?
0 Kudos
Message 6 of 15
(3,758 Views)
Yes I mailed it to your gmail account yesterday morning... I'll try again.
0 Kudos
Message 7 of 15
(3,755 Views)
There may also be some filter between you and I that is stripping out the attachment. People have successfully sent me zip files so I know that works. You might also try just sending me a pure text message to make sure that gets through. So far, nothing however.
0 Kudos
Message 8 of 15
(3,749 Views)
It would appear your gmail account is bouncing... do you have another address I could send it to?
0 Kudos
Message 9 of 15
(3,749 Views)
I've got an account that I am slowing moving from: brianmtyler@yahoo.com. Try that.

It is strange because the DevZone alerts are getting through. If you can post your email I can try to mail to you also. Either way. Please make sure to send a pure text mail first to make sure we aren't getting filtered out.
0 Kudos
Message 10 of 15
(3,741 Views)