Change parameters of Simulation Control block in PSIM
Good afternoon,
I am trying to change the time simulation in a PSIM schematic directly from Compose. However I am not able to do it with the function "PsimSetElmValue()", even if the names of parameters seem correct. Moreover it seems that there is no function to delete an element of the PSIM scheme, in order to modify parameters by deleting and creating simulation block each time. Do you know how I could manage this ?
Thanks for your assistance.
Best regards,
Baptiste Chantre
Answers
-
Hi Baptiste,
The main functions for driving PSIM from Compose are PsimSimulate and PsimAsimulate (this one is for running several simulations in parallel). You should call either of those and set the total time as a parameter.
An example of doing this is shown in the Compose - PSIM integration intermediate user's guide.
Also check out the introductory posts for OML - PSIM integration:
Compose – PSIM Integration Starter’s Guide 1: PsimSimulate
Compose – PSIM Integration Starter’s Guide 2: PsimASimulate
Compose – PSIM Integration Starter’s Guide 3: PsimSimview, PsimWriteGraphFile, PsimReadGraphFile
Automate PSIM using Python in Altair Compose
Hope this helps!
0 -
you also have access to these settings with the PSIM hyperstudy link. https://www.youtube.com/watch?v=vNfawWZMHS4
We will reach out to see if you are able to use hyperstudy.
0 -
Hi Baptiste,
The main functions for driving PSIM from Compose are PsimSimulate and PsimAsimulate (this one is for running several simulations in parallel). You should call either of those and set the total time as a parameter.
An example of doing this is shown in the Compose - PSIM integration intermediate user's guide.
Also check out the introductory posts for OML - PSIM integration:
Compose – PSIM Integration Starter’s Guide 1: PsimSimulate
Compose – PSIM Integration Starter’s Guide 2: PsimASimulate
Compose – PSIM Integration Starter’s Guide 3: PsimSimview, PsimWriteGraphFile, PsimReadGraphFile
Automate PSIM using Python in Altair Compose
Hope this helps!
Hi,
Thank you for your answer. However the change of total time doesn't seem to be used or explained in thoses starter's guides. The parameter to change in function PSimSimulate (or Asimulate) is called "TOTALTIME", according to the basics guide, but I am not able to modify the time simulation with it. Perhaps am I not using the right way of writing. Is there other tutorials that may help ?
Thanks in advance !
0 -
Baptiste Chantre said:
Hi,
Thank you for your answer. However the change of total time doesn't seem to be used or explained in thoses starter's guides. The parameter to change in function PSimSimulate (or Asimulate) is called "TOTALTIME", according to the basics guide, but I am not able to modify the time simulation with it. Perhaps am I not using the right way of writing. Is there other tutorials that may help ?
Thanks in advance !
Did you run the script from the Compose - PSIM integration intermediate user's guide? That one illustrates how to change the total simulation time. You can download the script and play around with it.
Let me know how it goes.
Rafael
1 -
Did you run the script from the Compose - PSIM integration intermediate user's guide? That one illustrates how to change the total simulation time. You can download the script and play around with it.
Let me know how it goes.
Rafael
This one is really helpfull, it works well for me now.
Thanks for your help !
Baptiste
0