new ExternalProgramServer example

176 views
Skip to first unread message

SimXBob

unread,
Jun 4, 2022, 5:54:06 AM6/4/22
to Jaamsim Users Discussion Group
Hi guys,

Does anyone have a quick example of how to properly use the new ExternalProgramServer Object?

I keep getting 'Stream Closed' errors no matter how I attempt to set up the python program.

Many thanks

Bob.

Harry King

unread,
Jun 4, 2022, 9:37:40 AM6/4/22
to Jaamsim Users Discussion Group
Bob,

The ExternalProgramServer object requires a some extra code in the external program to perform the message handling. Attached is an example model with an external Python program.

Unfortunately, we can't include this under Help > Examples because it requires Python to be installed.

Harry

ExternalProgramServer Example.cfg
server.py

Bob Lloyd

unread,
Jun 4, 2022, 10:34:26 AM6/4/22
to Harry King, Jaamsim Users Discussion Group
Cheers Harry,

Many thanks for the rapid response. I see the pattern now and fully understand re needing python. 

Thanks for such a great piece of software and such awesome support.

Best regards

Bob.




Sent from my iPhone

On 4 Jun 2022, at 14:37, Harry King <d.harr...@gmail.com> wrote:

Bob,
--
You received this message because you are subscribed to a topic in the Google Groups "Jaamsim Users Discussion Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jaamsim-users/5_tLrREdATg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jaamsim-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/590e631e-39ec-4a0f-afd1-c6c0655b9ac9n%40googlegroups.com.
ExternalProgramServer Example.cfg
server.py
Reply all
Reply to author
Forward
0 new messages