LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio C# Methods doesn't appear

Solved!
Go to solution

When I work with some class made on Visual Studio in a external environment (LabVIEW/Unity), the methods that i created are not visible so I can't use them.

I used to work without any problem a few months ago, I don't know what happened.

Could anybody help me with this?

 

0 Kudos
Message 1 of 6
(4,070 Views)
Solution
Accepted by topic author Rodmen

Check it isn't related to LabVIEW / Framework compatibility. LabVIEW versions earlier than 2013 only supported CLR 2.0 unless forced to otherwise via a config file change (which might be why it stopped working if you are working on another machine etc.).

 

Also check what's loaded into memory: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/dotnet/assemblyvisualizationtool/as...

0 Kudos
Message 2 of 6
(4,054 Views)

Did you change the method or the entire object class to be static? In that case you won't need an object instantiation but simply use the LabVIEW property or method node set to the right calls to invoke the static method or attribute call.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 6
(4,024 Views)

I use LabVIEW 2015 and Visual Studio 2015 Professional/Visual Studio 2017 Community and I have tried changing the version of .NET Framework,

I used to do my classes on Visual and using them in LabVIEW without any problem, but suddenly the methods were not visible, i thought it was a LabVIEW problem

But then working with Unity, my classes methods didn't appear 

0 Kudos
Message 4 of 6
(4,001 Views)

Another option you could try is to create another project in your Visual Studio solution (say a Console-based one) that uses your 'suspect' project as a dependency and then try to access the same class properties and methods.

 

Maybe give us some example code to work with and we can provide some better suggestions. If you provide the actual assembly (.dll) file we can also probe that to see if there is anything strange going on.

0 Kudos
Message 5 of 6
(3,998 Views)

Someway there was some .NET libraries missing, so I searched to download again.

0 Kudos
Message 6 of 6
(3,929 Views)