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:
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:
When I examine the interop assembly generated by LabVIEW with ILSpy, i find that 2 .NET enum with the same members are generated.
Also, the method generated from the VI takes in these 2 different .NET enum as its parameters.
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.