MATLAB: How to connect function blocks in Simulink “wirelessly”
simulink
Is possible to do that, or is it necessary to connect function blocks with wires? Because of transparency, I would like to pass outputs from one function, to another function as its inputs.
Thanks
Best Answer
Hi,
you can use From/Goto blocks to do this. Generally speaking wires are preferred, but sometimes using From/Goto helps to make things less complex.
The simplest solution is to use Goto and From tags in Simulink. You can refer to the documentation in the following link to understand the usage of Goto and From tags:
The other solution is to use data store memory and then read and write to the corresponding blocks instead of connecting them physically. However, this second solution will involve some physical connections, although less than before.
You might be better off deciding on one (or at the most two) routing protocols for wireless sensor networks.. LEACH is a good algorithm to start with and can be implemented fairly easily in MATLAB. There are many spins off to LEACH such a VLEACH
Best Answer