LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Forcing cluster objects to inherit precision settings from parent model

Solved!
Go to solution

Attached is a picture which explains this. Heres my problem:

 

I have a bunch of controls (the ones with the issue are numeric doubles). They are wired into a bundle by name to create a framework for my cluster. When I initialize an array of this type of cluster, the numerics do not receive the precision settings from the original controls that were bundled. Is there a way to specify this? I have tried strict typedeffing the original controls with no luck.

 

Thanks

 

0 Kudos
Message 1 of 6
(3,268 Views)
Attached is a better example
0 Kudos
Message 2 of 6
(3,259 Views)

I think I'm going to have to write code to loop through all the controls and set the format string to "%#_10g" during runtime. Does anyone have a better solution to this?

0 Kudos
Message 3 of 6
(3,252 Views)
Solution
Accepted by topic author bkb
I'm not completely clear on what you're trying to do, but if I've understood correctly, one approach would be to make the original numeric a strict type definition, and also place that same strict type definition inside your cluster so that the two will be linked together.  Use that cluster as your front-panel indicator and you'll get the precision settings you expect.
Message 4 of 6
(3,226 Views)
I just did that and it does not work.
0 Kudos
Message 5 of 6
(3,188 Views)
Nevermind it worked, thanks.
0 Kudos
Message 6 of 6
(3,184 Views)