For more context...
I am required by my employer to produce a standalone executable that acts as a TCP/IP client that receives data packets from a TCP/IP server sent as a uint8 vector from an external app built in C#/Unity. Both my simulink app executable and the C#/Unity app need to both run at the same time on a windows PC where they communicate over address 127.0.0.1 or localhost. The combined software package needs to be distributed to multiple customers around the globe. The C#/Unity app runs fine when users just drag and drop that package into the target windows PC I assume because it includes all required packages/libraries.
For more context we are designing a flight simulator where the aero/flight physics equations are done in simulink and we already have it setup to communicate with the C#/Unity app (which handles visualization of an aircraft) over UDP connection in a way where it works as a standalone app. The feature we are trying to add is to handle user triggered “events” over TCP such as when the user starts a session, pauses, resumes, restarts, and exits a session. I think as a workaround we can handle events over udp but in the long term for our system to be distributed to many customers and have a reliable event system, we would prefer to use TCP driven events.
I had also looked into using a matlab function block that calls the ‘tcpclient’ function but got an error when trying to run my model in simulink that states “The current BuildConfig has not been set”. Any idea how to address that?