Command line batch run

  • samalessi
  • Topic Author
More
15 Mar 2012 09:06 #366 by samalessi
Command line batch run was created by samalessi
I've looked through the manual but do not find an explanation of how to run SAM from the command line? Is there a way to do this and if so and example would be helpful.

Thanks

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

  • Unknown User
15 Mar 2012 10:19 #367 by Unknown User
Replied by Unknown User on topic Command line batch run
In the "Case > Advanced" sub-menu you can generate code to control SAM from other software packages, e.g. from Excel via VBA. It gives you some insight on how to communicate with the samsim.dll as well. I'm not sure if you saw this, I hope this helps.

tric

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

  • pgilman
More
15 Mar 2012 13:54 #368 by pgilman
Replied by pgilman on topic Command line batch run
We are developing a SAM API that will replace the code generation feature, which is obsolete. The API and documentation will be ready by the end of the year.

Best regards,
Paul.

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

  • samalessi
  • Topic Author
More
16 Mar 2012 16:10 #369 by samalessi
Replied by samalessi on topic Command line batch run
Thanks for the help. We saw the examples and thought we could pick our way through but it wouuld be better if there was a published api, obviously.

Actually, I was hoping we could specify a SamUL script (as a text file) from the command line. Something like sam.exe SamUL.script

Then we can automate integration of SAM without having to write code.


Excel might work but its pretty slow and cumbersome.

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

  • pgilman
More
23 Mar 2012 09:56 #370 by pgilman
Replied by pgilman on topic Command line batch run
You can run SAM and a SamUL script from the command line. For example:

c:\sam\2011.12.2\sam.exe "f:\sam files\test.zsam" "test script"

will run the SAM executable installed in the C:\SAM\2011.12.2 directory, open the test.zsam file, run the SamUL script called "test script," and then close SAM.

Be sure to specify the full path name to both the sam.exe executable and the .zsam file. If any of the path names include spaces, enclose the names in quotes.

Also, if the message about default values appears when you open SAM, you will have to click OK before SAM can open the file. You can use the check box to stop showing the message so that SAM will run and close without your intervention.

Best regards,
Paul.

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

  • selster
More
30 Oct 2012 09:33 #371 by selster
Replied by selster on topic Command line batch run
Where is "Case>Advanced", can't seem to find it?
Thanks,
Steve

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

Moderators: pgilman
Powered by Kunena Forum