I want to run around 100 simulations with my model changing two parameters f and TLoad and track the changes on the phase currents currentSensor.i[1] etc.
Now I’m stuck with the documentation on the Wolfram website because there is no definite explanation on how to use scripting with the SystemModeler. I found for example this link on the Wolfram site with some code but no explanation in which commandline I should use it.
I downloaded the WolframScript program and tried to open my model with wolframscript -file SMPM_VoltageSource_Inverter.mo but it says ToExpression::sntx: Invalid syntax in or before ... eventhough my model simulates totally fine and without any errors in the SimulationCenter.
Can someone explain to me:
- Is it possible to write scripts ?
If Yes:
- How can I simulate my model?
- How can I do a parameter sweep of f and TLoad? Is it as described in the link?
- Is it possible to export data of currentSensor.i[1] as a csv-file? And how to?
Thank you for any help!