LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enum duplication in .NET interop assembly

I have a strict type def. enum consists of 3 members, i.e. Red, Green Blue. I've created a simple VI that takes in an instance of the strict type def. enum, which is then incremented by 1 before it is returned as an output of the VI, as follows:

 

04.gif

 

I've created a build specificationfor .net interop assembly and added this VI to the Exported VIs list. The configuration in Define VI Prototype dialog is as follows:

 

01.gif

 

02.gif

 

03.gif

 

When I examine the interop assembly generated by LabVIEW with ILSpy, i find that 2 .NET enum with the same members are generated.

 

05.gif

 

Also, the method generated from the VI takes in these 2 different .NET enum as its parameters.

 

06.gif

 

With that, I have 2 questions:

1. Why 2 .NET enum is generated (instead of 1) when the LabVIEW block diagram use the same strct type def?

2. Since the enum used in the block diagram use the same strict type def. type, why the generated method in the assembly use different type of enum instead of the same type of enum?

 

Thanks in advance.

0 Kudos
Message 1 of 1
(2,614 Views)