question

Eduardo avatar image
0 Likes"
Eduardo asked Eduardo commented

How do I link a combo box to an edit box?

Hi,

I want to build a GUI with a combobox which I want to associate with distributions and the parameters can be changed. for example combobox has the following options 1. normal(mean-std dev), option 2. weibull (location-scale-shape), lognormal mean dest dev (mean-std dev). When the user chooses one of these 3 distributions, he can enter the parameters that define said distribution. If he chooses Weibull, the parameters to enter would be location, scale and shape. In this case I want to implement it for the MTBF MTTR times

I would appreciate it very much.

FlexSim 23.2.1
gui builder
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Eduardo, was Jonah K's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Eduardo avatar image Eduardo Jason Lightfoot ♦♦ commented ·

yes, your answer was very helpful in te interface i am developing. this space is very gratifying to ask questions.

0 Likes 0 ·

1 Answer

Jonah K avatar image
0 Likes"
Jonah K answered Eduardo commented

I demonstrated how you can do this in this model:

ComboBoxEdit_JK.fsm

The inter-arrival times for Source1 have a "value by case" which looks at the GUI combobox as the case function. Each case in the combobox (1, 2, 3) will use a corresponding distribution (Normal, Weibull, Lognormal) to determine the arrival time. Then, I replaced each parameter in the function with a reference to a Global Table cell, instead of a number. So now, you can edit the Global Table to have the parameters you want for each statistical distribution, and can use the combobox to select a distribution.


comboboxedit-jk.fsm (48.3 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Eduardo avatar image Eduardo commented ·

Thank you very much! It helped me a lot!

0 Likes 0 ·