LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a .net assembly

Is there a good tutorial or example for learning how to create a .net assembly in LabVIEW. I figured out how to create an assembly with methods, but have not figured out how to add properties. I also want to know how to make it hierarchical like some of the .net assemblies that I've used.

0 Kudos
Message 1 of 4
(3,123 Views)

A Web search for LabVIEW .net assembly returns multiple hits.  As you have not specified your specific problem, you are probably in a better position to read these suggestions and discussions and decide which shed light on your question.

 

Bob Schor

0 Kudos
Message 2 of 4
(3,094 Views)

I would like to know how to export properties. I've figured out how to export vis as methods, but not variables as properties. I'm not sure what type of variable it would be, but need to do so because I want to swap out a .net assembly written in another language and need to make it look that same.

0 Kudos
Message 3 of 4
(3,085 Views)

I have wondered how to create .NET Properties before. I have been able to create .NET Properties afterwards by editing the assembly ( adding the metadata) but I wouldn't recommend this method. I haven't tried exporting property node VIs of LabVIEW classes - perhaps give that a go and see if LabVIEW generates the relevant metadata to go with the "get_x" and "set_x" methods but I have a sneaking suspicion it won't.

 

Several LabVIEW constructs aren't available to be exported (see here: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/resource/framework/providers/builds/appbui...). When you say variables I assume you are referring to Global Variables; they are on that list.

 

Perhaps post some code of what you are trying to achieve.

0 Kudos
Message 4 of 4
(3,080 Views)