question

Yokota T avatar image
0 Likes"
Yokota T asked Yokota T rolled back

Can I add nodes to the model tree via HTTP?

Hi, all.

I want to add some nodes which have FlexScript data to the model tree via HTTP. Is it possible?

Thank you.

FlexSim 21.0.6
flexsim 21.0.6web communication
5 |100000

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

1 Answer

Phil BoBo avatar image
2 Likes"
Phil BoBo answered Yokota T rolled back

Add nodes with FlexScript to your model before opening it with the Web Server and then execute them from the Web Server with custom instance queries.

· 5
5 |100000

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

Yokota T avatar image Yokota T commented ·

Hi @Phil Bobo

Please excuse my lack of explanation. I want to add some custom query handlers to the MODEL:/Tools/serverinterface/queryhandlers node with default instance queries. Is it impossible?


0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Yokota T commented ·

I understand what you want to do. It isn't impossible, but you shouldn't do it. The point of the MODEL:/Tools/serverinterface/queryhandlers is to add query handlers specific to the model before you run it.

If you want to add query handlers to be used by multiple models or the default interface, use the Module SDK to add nodes to MAIN:/project/exec/globals/serverinterface.

If you would explain what you are actually trying to accomplish by dynamically adding query handlers on the fly, perhaps we could explain to you how to correctly accomplish what you are trying to do.

1 Like 1 ·
Yokota T avatar image Yokota T Phil BoBo ♦♦ commented ·

I understand that it's better to use Module SDK. I'll give it a try.

Actually, I'm trying to set the values of the model parameters, run the instance, and get the values of the performance measures with instance queries without special settings of FlexSim. What is the best way to accomplish this?

0 Likes 0 ·
Show more comments