From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
You need to replace your control with the type def as well.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
The control and constant are incompatible: The constant is an enum with 2 elements and the control is an enum with no elements.
Just replace the control with an instance of the typedef (right-click on the control, select "Replace -> Select a Control ..." then browse to the typedef file).
"If you weren't supposed to push it, it wouldn't be a button."