question

Tuan avatar image
0 Likes"
Tuan asked Jeanette F commented

The Socket server does not receive much information, how to modify the code

Hi @Kavika F

Flexsim is the server, Python is the client

I have 72 parameters to enter

The input source is the information passed by python

But Flexsim can not receive all the information

how to adjust the code ?

question.fsm

練習1.py

Thanks!

FlexSim 20.0.10
pythonsocketserverclient
question.fsm (105.3 KiB)
練習1.py (772 B)
· 2
5 |100000

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

Andrew O avatar image Andrew O ♦ commented ·

Hi @Tuan, was Kavika F'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 unaccept and comment back to reopen your question.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Tuan, was Kavika F'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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Kavika F avatar image
1 Like"
Kavika F answered

Hey @Tuan, it seems that it's a problem with the "getInput()" custom code. When you make a call to "serverreceive", your buffersize is only 15, thus why you only get the first few numbers. If you increase that buffersize, it will receive all your input. Just to test it, I set it to 400 and I got your whole message.

1673980700878.png

increase_buffer_size.fsm


5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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