Shift-F5 for generating LK code

  • pgilman
  • Topic Author
More
07 Jun 2016 17:46 #4524 by pgilman
Shift-F5 for generating LK code was created by pgilman
I see in one of your replies that it is possible to generate a LK script from a SAM project. Is that right?. I try to do so (shift-F5) but it only runs the simulation and no code is generated. Am I missing some step?
When you generate an LK script from a SAM case for the CSP tower model, a popup window appears behind the SAM main window. You have to click OK in the popup window to continue generating the code, so you'll have to find the popup to do so (you can use Shift-Tab in Windows to find it).
We will fix this issue in the next version of SAM.
Best regards,

Paul.
 

Please Log in or Create an account to join the conversation.

  • jesusm1985
More
07 Jun 2016 18:28 #4525 by jesusm1985
Replied by jesusm1985 on topic Shift-F5 for generating LK code
Hi Paul, thanks for the reply.

Shame on me, I can't find this window. I just open the SAM model, then run it (shift-F5), then it just appears one window that says: Simulating Flux Maps and that's it. I try the Shit-Tab to find any hidden window but no success. Anyway I'll keep trying.

Best regards,
Jesus

Jesus

Please Log in or Create an account to join the conversation.

  • pgilman
  • Topic Author
More
08 Jun 2016 11:11 #4526 by pgilman
Replied by pgilman on topic Shift-F5 for generating LK code
Dear Jesus,

In the window that says "simulating flux maps," click Close when the simulation ends, and then go to the folder that you chose to save the LK script. The process should work like this:

1. Start SAM and open or create the file for the power tower system.

2. Click Shift-F5.

3. Choose a folder to save the .lk file for the tower model.

4. When the flux map simulation finishes, click Close in the Simulation window.

5. Choose a folder to save the .lk file for the financial model.

6. Go to the folder you chose in Step 1 to find the .lk file for the tower model.

In the next version of SAM, the folder containing the .lk files will automatically open.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

  • jesusm1985
More
09 Jun 2016 19:06 #4527 by jesusm1985
Replied by jesusm1985 on topic Shift-F5 for generating LK code
Hi Paul,

Thank you very much. I finally did it!.

Best regards
Jesus

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum