Stop model by DLL

lucas_klein
Not applicable
1 View
1 Reply
Message 1 of 2

Stop model by DLL

lucas_klein
Not applicable

[ FlexSim 23.2.1 ]

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,

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

lucas_klein
Not applicable
Accepted solution

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

0 Likes