question

Lucas Klein avatar image
0 Likes"
Lucas Klein asked Lucas Klein answered

Stop model by DLL

Hello,

I am implementing a feature that shows up a message to the user and then stops the simulation clock. I noticed that the command "stop()" is used inside FlexSim to stop the simulation, but when I try to use it on C++ DLL, the command makes reference to object stops, requesting stop arguments such as stop state, id, priority and stateprofile, and if I try to left it without args, the DLL can't build.

So if anyone could help me pointing out what command I can use to stop the simulation by code using C++ DLL I will be very grateful.


Thanks in advance,

FlexSim 23.2.1
module sdkdevelopmentdlldll c++
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

Lucas Klein avatar image
0 Likes"
Lucas Klein answered

Researching and trying different operations here I found out that I need to use "FlexSim::stop()" so it can point to the correct command and then the DLL can build and the simulation stops.


1698172203370.png


1698172203370.png (2.4 KiB)
5 |100000

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