question

JP117 avatar image
0 Likes"
JP117 asked Jeanette F commented

Passing Array values from flexsim into Python

Array.ppythontest.fsmyI am starting to learn how to link python scripts into flexsim. I am trying to pass two array values from flexsim into python to return an array value. I can not seem to get it to work, not sure if the problem is with the flexsim config or the python code

FlexSim 24.2.2
pyton
array.py (220 B)
pythontest.fsm (28.3 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @JP117, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

It works if the np.array is converted back into a list before returning it.1737703682260.png


1737703682260.png (12.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.