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.
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.
10-24-2016 04:08 PM
I have a dynamic number of buttons within a cluster that I programmatically position on my front display based on the upper left position of the cluster. When running in development mode, all is well and the cluster remains at that position after execution. However, when the application is built, the buttons and the cluster get thrown to the left in a staggered fashion. I've attached the zip file of the source.
Solved! Go to Solution.
10-24-2016 04:21 PM
Your zip file is missing some typedef's for the controls.
10-25-2016 07:20 AM
Just right click and disconnect from the typedef. Both the cluster and the buttons. It still fails in the same manner. Thanks for looking into it.
10-25-2016 08:04 AM - edited 10-25-2016 08:29 AM
If you did any error checking, you would see that at least one of the hidden properties you are using doesn't work in the executable.
10-25-2016 08:20 AM
@JTB wrote:Just right click and disconnect from the typedef. Both the cluster and the buttons. It still fails in the same manner. Thanks for looking into it.
Yeah. I started to do that. But there were a lot of them. I got through them and then found there were dozens more hidden away that I couldn't get to in order to disconnect.
Sorry, but I can't help if you make it difficult or impossible to help.
10-25-2016 11:42 AM
Sorry, forgot about the typedefs for the buttons. Here's the problem excluding all typedefs. I also included a picture results of the VI running compared to the results of the .exe file running.
10-25-2016 11:53 AM
I think the solution is very simple, and would have been more obvious except for the fact that you "hid" the offending code by using a Stacked Sequence (please, never use a Stacked Sequence).
In the "invisible" Case 0 and Case 2 of the Stacked Sequence, you write to the scripting Property AutoSize. This property, in Execution Mode, is a Read-Only Property. In general, any Property Node with the light-blue coloring that designates a Scripting Property, should (probably) not be in code that is intended for building as an Executable.
Bob Schor