You can store the code in other DLLs and then execute it with FlexSim, which will prevent others from seeing your code.
Please check the FlexSim DLL Maker or FlexSim Module SDK.
Which database shall i can store and how to read with flexsim, could you give me a more detailed explain or example?
You can make a dll type file first, the specific production method can be searched on the Internet, and then call the dll file you made in the trigger in flexsim.
Finally, you can read the dll file according to the path. It is recommended that you store the created dll file in the same location as the flexSim file for easy searching and reading.
Thanks ,but it comes an other quesetion: If I want to modify the code, how can I return to the code from the DLL file?
Regarding the specific issues of the code and dll files, it is recommended that you still check the relevant information on the Internet.