question

Yue Y avatar image
0 Likes"
Yue Y asked Yue Y edited

How to use setticker(node thenode[, num tickspersecond])

I am trying to use setticker(node thenode[, num tickspersecond]), but I don't know how to write FlexScript as a node and pass it into this function. I was reading @phil.bobo's answer under this post https://answers.flexsim.com/questions/67068/how-to-make-asynchronous-call-to-web-service.html. I figured it should be similar to the callbackNode mentioned in this post. How exactly can we write some code as a node?

FlexSim 19.1.0
flexscriptnode commandsetticker
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

·
Yue Y avatar image
0 Likes"
Yue Y answered Yue Y edited

An example is post here https://answers.flexsim.com/questions/67240/can-we-create-a-background-thread-in-flexsim-that.html?childToView=67457#comment-67457

and setticker(0) can be used to turn off the execution

in case you don't know how to add a node to tools, check the link above, it has detailed instructions

5 |100000

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

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.