I have a simple Simulink model that passes a constant variable to the workspace.

I've converted the Simulink model to an exe-file using Simulink Coder (with grt.tlc as the target system file). However, I'm struggling to change the value of the constant myConstantValue and send it to the executable file. I don't want to compile every time when I want to change the value.
I've tried several options, such as saving the new myConstantValue in a .mat file and calling it in MATLAB with system('MyModel.exe -p myConstantValue.mat'), or writing myConstantValue=100 to a .txt file and calling it with system('MyModel.exe -i input_params.txt'). Unfortunately, none of these methods work—the executable always uses the initial data.
I've also tried changing various settings in the Code Generation settings of Simulink, such as setting the default parameter behavior to "Tunable", but this hasn't made any difference.
Could you please help me figure out how to change the constant value and pass it to the executable file?