Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set structural parameters in Configuration Mode #669

Open
t-sommer opened this issue May 3, 2024 · 0 comments
Open

Set structural parameters in Configuration Mode #669

t-sommer opened this issue May 3, 2024 · 0 comments
Labels

Comments

@t-sommer
Copy link
Contributor

t-sommer commented May 3, 2024

The following code

from fmpy import *

simulate_fmu('StateSpace.fmu', start_values={'r': 4}, fmi_call_logger=print)

gives

fmi3InstantiateCoSimulation(instanceName="StateSpace", instantiationToken="{D773325B-AB94-4630-BF85-643EB24FCB78}", resourcePath="C:\Users\xxx\AppData\Local\Temp\tmp5nso4c_u\resources\", visible=False, loggingOn=False, eventModeUsed=False, earlyReturnAllowed=False, requiredIntermediateVariables=NULL, nRequiredIntermediateVariables=0, instanceEnvironment=0x0, logMessage=<CFunctionType object at 0x000002DFC2B1BED0>, intermediateUpdate=<CFunctionType object at 0x000002DFC2B34040>) -> 0x2dfc1f29cd0
[ERROR] Structural variables can only be set in Configuration Mode or Reconfiguration Mode.
fmi3SetUInt64(instance=0x2dfc1f29cd0, valueReferences=[3], nValueReferences=1, values=[4], nValues=1) -> ERROR
@t-sommer t-sommer added the bug label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant