I want to couple a Flux v.2025 project with Matlab/Simulink v.2023b. First, I got a .F2MS file from Flux, then I opened Matlab from the Flux Supervisor, and then I selected Flux Link block in Simulink library. Although the time step is the same in the two the softwares, I face the below errors:
- Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
Error reported by S-function 'Flux_Simulink' in 'untitled/Coupling with Flux':
Error while calling startLocalServer : java.lang.RuntimeException: java.lang.Exception: Server process failure before reaching initialized status: SocketServerProcess{Id=FLUX2D_4, Ports=(1101, 1100)} - Error:Error reported by S-function 'Flux_Simulink' in 'untitled/Coupling with Flux':
Server is not running
To resolve this, I even launched a file to activate the API in this directory: "C:\Program Files\Altair\2025\flux\Flux\Bin\prg\win64\Active_Distributed_Computation_and_API", and then repeated the process.
But the problem continues to occur. I even tried Matlab 2024a&b but again the same problem. Does anyone have a clue? tnx