question

Long Tang avatar image
1 Like"
Long Tang asked Matthew Gillespie commented

How to know all the command that "applicationcommand" can execute?

“For developer use. Execute a command based on its name. This command will search for the named node in VIEW:/nodefunctions, then in MAIN:/project/exec/globals/nodefunctions, then in VIEW:/commands, and lastly in the FlexSim Engine.”-------This is the statement in the Command Help of the flexsim software.I can find the command in the tree,But how should i find the others in the Flexsim Engine?

FlexSim 7.5.4
developer usenodefunctions
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
4 Likes"
Phil BoBo answered Matthew Gillespie commented

You don't. The command applicationcommand() is designed to be used and maintained by FlexSim developers for FlexSim developers. The various options that are available are subject to change in future versions.

The applicationcommand() options defined in the engine are intentionally undocumented.

You are welcome to use the command if you want, but if it changes in a future version, you will need to update your code accordingly.

· 6
5 |100000

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

Long Tang avatar image Long Tang commented ·

@phil.bobo I use the command applicationcommand("sendhttprequest"...) in flexsim model to interact with an API.After i send the http request,the model is blocked untill something is received from the API.and when the flexsim model received the data from API,the simulation clock jumps to another time point fast.There are some process haven’t to be seen in the animation.Is there some solutions to make the model runs normally untill the API replied?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Long Tang commented ·

Stop the model before you send the request. Resume it when the response comes back.

See the commands stop() and go().

2 Likes 2 ·
Frenk Gao avatar image Frenk Gao Phil BoBo ♦♦ commented ·

If i want to send httprequest to 127.0.0.1:8080, that not the default port 80, what should i do?

string server = "127.0.0.1:8080"; //maybe not correct

0 Likes 0 ·
Show more comments
Shankar Narayan avatar image Shankar Narayan commented ·

@phil.bobo - what is the applicationcommand equivalent of "deletedirectory" or "removediretory" ? Need to remove a windows folder where we write outputs from model runs.

Thanks

-1 Like -1 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Shankar Narayan commented ·

Please ask this as a new, separate question.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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