LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Built application problem

I use the following Sub Vi to change control properties, such as color, bliking, etc by passing a ref to a cluster and dereferencing it in the sub vi, and setting the property nodes. Works fine in development environment, but when I build the app, it ignores the property changes(eg. control still blinks and doesn't change color) - I don't see how the code could be the culprit where it works in dev mode.
Download All
0 Kudos
Message 1 of 4
(2,745 Views)
Hi ET,

Nice VI.

I have to ask how you are getting the refnums in the calling VI.

If you are opening other VI's there path will be different in the built version. Just gusessing here.

Could you post a simple example that shows the VI in use and demostrates the issue.

That's all I can say for now,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(2,745 Views)
Thanks for the reply, Ben. I simply have a cluster of booleans and strings from a main vi. I created a reference in the sub VI, then dropped a copy of the cluster inside of it in the sub so I included the control type. I call the sub vi often in the main vi whenever I want the attributes of the controls to change. I create a reference to the cluster oin the main VI and connect it to the cluster reference in of the sub Vi. The funny thing is, in the built version, some of the property changes work and some don't but they all work in the Dev mode.
0 Kudos
Message 3 of 4
(2,745 Views)
Hi ET,

Some work, some don't ?!

It sounds like we have to chase down the difference.

I could give the standard suggestion of simplifying until you can post an example of the issue, BUT,
by the time you have completed that work, you probably figure out what the issue is.

For the time being, try checking the error cluster return values and use a dialog box to let you know what the property nodes are un-happy about.

That's about all I can do for now.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,745 Views)