Is there any more documentation for running an EXE version of a system model? All I found was this, and I can't figure out how to send a HELLO_SCS
packet... or any other packet.
I opened a session from the command prompt with
myModel.exe -f myModel.sim -server 127.0.0.1:7000
And then using Mathematica, I tried creating a socket and writing to it with Write
and BinaryWrite
. The 4 parts of the header are
- protocol version
- packet type
- packet specific
- payload length
So I thought BinaryWrite[socket,{4,1,0,0,0,0,0,0}]
would work for IPv4, HELLO_SCS, and no payload. But that didn't work. Has anyone else used this feature? The two main errors I'm getting are:
Received packet with incompatible protocol version
Failed to receive packet header