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.

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.