Wireless communication between 2 Simulink blocks without Goto/From

langrg · Sep 27, 2022 · 2K views
Question
Hi,   Would there be a way to create 2 Simulink blocks (Matlab Function? S-Function ?) that would be in a same model, at different levels and which could communicate together wirelessly?   I'm looking for a solution that do not use Goto/From blocks. I'm pretty sure there is a code solution, surely complicated, but the outlines of this solution are not clear in my mind.
Expert Answer
Profile picture of Prashant Kumar
Prashant Kumar PhD Expert
Answered Aug 25, 2026
  • Global Goto/From blocks
  • Data Store Memory block with Data Store Read and Data Store Write blocks
The advantage of the first solution is that the signal at the 'From' block is calculated after it is put on the 'Goto' block. In other words, order of execution is managed automatically. Using Data Store Memories you are not sure that the data is written before it is read.
 
 
The advantage of the second solution is that you can write to the Data Store in multiple locations.
When sending the signal accross subsystems which run at different sample rates, a Rate Transition is automatically inserted at Goto/From blocks. This is not the case for the Data Store blocks.
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!