[SolTrace] lk scripting: sprintf

  • solarjoe
  • Topic Author
More
23 Apr 2015 06:41 #3239 by solarjoe
[SolTrace] lk scripting: sprintf was created by solarjoe
Hello,

since there still is no SolTrace support forum and the email
support has nearly been stopped I hope someone here can help me.

Has someone managed to use the sprintf-function in SolTrace?
Since SolTrace and SAM both use lk scripting in the meantime,
I tried to check sprintf in both:

outln(sprintf("%.3f, %.4f", 423, 234));

returns

423.000, 234.0000 in SAM
-0.000, -0.0000 in SolTrace

Can someone reproduce this and maybe tell me how to get it working?

Kind regards,
Joe

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

  • pgilman
More
24 Apr 2015 11:24 #3240 by pgilman
Replied by pgilman on topic [SolTrace] lk scripting: sprintf
Hi Joe,

I happen to know one of the SolTrace developers and was able to find out that it uses an older version of LK than SAM that has a bug that causes the problem with the sprintf() function. You could try writing your own string conversion function to work around the issue.

Thanks,
Paul.

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

  • solarjoe
  • Topic Author
More
28 Apr 2015 05:47 #3241 by solarjoe
Replied by solarjoe on topic [SolTrace] lk scripting: sprintf
Hi Paul,

thanks for the help!
Do you know if someone at NREL wrote a workaround sprintf function for the old LK
that we could use?

And do you know anything about the future of SolTrace? Has it been abandoned?

Kind regards,
Joe

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

  • pgilman
More
28 Apr 2015 09:49 #3242 by pgilman
Replied by pgilman on topic [SolTrace] lk scripting: sprintf
Hi Joe,

Sorry, I don't know of a sprintf workaround in the old LK.

We're hoping to get support for another round of work on SolTrace in the near future.

Best regards,
Paul.

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

Moderators: pgilman
Powered by Kunena Forum