LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

enumerated control seems to have no items in exe

I'm using an enumerated control typedef to store command strings for a realtime app. The program works perfectly running on a FP-2000 under LabVIEW but fails when compiled to an exe. It appears that the contents of the typedef'd control are missing in the exe version. I've tried adding 'IncludeTypedefs=TRUE' to the prodisttools.ini but it didn't make any difference.

What is the point of this setting anyway - why would you not want to include typedefs?
Senior Software Development Engineer
Certified LabVIEW Architect and LabVIEW Champion
https://theLonelyAnt.com
https://GDevConANZ.org.au


0 Kudos
Message 1 of 4
(3,001 Views)
Are you programmatically populating your enum / ring's item list? If so, you are likely using a property node to do so. This type of property node communicates with the VI's front panel, which is where the control resides. An EXE running embedded does not have a front panel, and therefore that property node should be returning an error when it runs as an EXE.

I am unfamiliar with the typedef setting you have mentioned, but I do not expect that it is relevant to the behavior you are seeing.
0 Kudos
Message 2 of 4
(3,001 Views)
Hi Jeff, thanks for your response.

The control typedef is populated statically, but the contents is later accessed using a property node (Strings []) which returns an empty array. This makes sense in light of the storage of the control on the front panel.

Does this mean that the terminal on the code diagram is just a reference to the actual control and doens't store any state info?
Senior Software Development Engineer
Certified LabVIEW Architect and LabVIEW Champion
https://theLonelyAnt.com
https://GDevConANZ.org.au


0 Kudos
Message 3 of 4
(3,001 Views)
I believe this is the case, but am not sure exactly how it is stored.

To clarify, you can programmatically change the value of an enum through the use of a constant created from that enum or even just integers corresponding to the enum's selection position. But I do not believe that it is possible to retrieve or set the list of items in the enum programmatically without a front panel connected.
0 Kudos
Message 4 of 4
(3,001 Views)