Hello,
I have am building a C++ code. in that code, I need some outputs from a flexsim model. the C++ model needs to pass some parameters to flexsim model and flexsim model needs to provide some outputs back to the c++ code. this process will repeat multiple time in on run of the C++ code. this the approach I am taking:
1. from C++ code, create csv file containing parameter value
2. open the model from C++ code
3. once the model is opened, it should should read the csv file and trigger the run
4. at the end of the simulation, flexsim create and output file for c++
5. c++ read the outfile and run some additional code and create new parameter for flexsim
6. go back to step 1
here is my concern:
how to do step 2? how can I open a flexsim model in c++?
in addition, how to make sure that C++ wait results of simulation before continuing to the next execution?