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

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

yue_y
Not applicable
76 Views
1 Reply
Message 1 of 2

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

yue_y
Not applicable

[ FlexSim 19.1.0 ]

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?

0 Likes
Accepted solutions (1)
77 Views
1 Reply
Reply (1)
Message 2 of 2

yue_y
Not applicable
Accepted solution

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

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

0 Likes