S
S
sfork382019-05-25 09:46:20
Adobe Flash
sfork38, 2019-05-25 09:46:20

How to arrange data output from simulink in real time?

Hello, the task was set to output data from a working model to simulink, it was initially decided to output via udp and receive data in adobe flash professional, but after implementation it became clear that the method was not the best based on the speed of work, the data was output jerky and constantly error 2030 was thrown, and as a result, the socket became blocked, and error 1002 got in. The question is, how can I organize data output from simulink?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2019-05-26
@res2001

Both the first and second frameworks you use are not the fastest horses :) performance plugs can be on both sides.
Much depends on the model itself - how gluttonous it is to the processor, memory, bandwidth, and so on.
For input / output, you can use separate threads or asynchronous i / o, but I don’t know if Matlab can do them.
If everything happens within the same PC, you can try transferring through files, pipes, shared memory, unix socket ... But you need to see if there is support for these mechanisms in your frameworks.
And all this does not cancel threads and/or asynchronous i/o.
As for the errors, it would be nice to see the decoding of the codes. I think we can solve the issue with errors, we just need to figure out why they occur.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question