question

Yue Y avatar image
0 Likes"
Yue Y asked Phil BoBo commented

Can we create a background thread in FlexSim that do some tasks once a second?

I want to create a thread and let FlexSim report some data to another server once a second. Is it possible to create a separate thread that does this job?

FlexSim 19.1.0
webserverthread
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

Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered Jacob Gillespie edited

To create a thread you would have to use C++. See this answer for an example of using a thread.

You might be able to do this with the setticker(node thenode[, num tickspersecond]) command.

· 20
5 |100000

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