MATLAB: Is it possible to allow the RF Blockset Input Port block to inherit its sample time in the RF Blockset

1inheritedinputportRFRF Blocksetsampletime

The RF Blockset Input Port block does not allow its sample time to be inherited from the input signal. Is there a workaround?

Best Answer

The ability to allow the RF Blockset Input Port block to inherit its sample time is not available in the RF Blockset.
To work around this issue, if the signal path between the Simulink source block and the RF Blockset Input Port does not contain any rate altering blocks, you can define a variable in the MATLAB workspace that you use to define the sample times of both blocks. This process ensures that the sample times are equivalent.
Alternatively, you can use the Probe block from the Simulink Signal Attributes Library to determine the sample time of the signal going into an RF Blockset Input Port.
Then you can use the value displayed by the Probe block, to set Sample time parameters of other blocks.