Assuming it is possible to export the dBm trace from the Simulink spectrum analyzer to an excel spreadsheet, please see my latest attempts :
>> sablock = fsk, '/Spectrum Analyzer' ;
sablock =
0
4
0
0
0
0
1
>> config = get.param ( [sablock],'Scope Configuration');
Undefined variable "get" or class "get.param".
>> config = get_param ( [sablock],'Scope Configuration');
Error at element 1 of first input to get_param:
block_diagram does not have a parameter named 'Scope Configuration'
>> config = get_param ( [sablock],'Spectrum Analyzer Configuration');
Error at element 1 of first input to get_param:
block_diagram does not have a parameter named 'Spectrum Analyzer Configuration'
>> config = get_param ( [sablock],'dBm');
Error at element 1 of first input to get_param:
block_diagram does not have a parameter named 'dBm'
Interesting the sablock command returns a (1x7) array with numbers I dont recognise and why 7 values ?
I think I need to specify a Spectrum Analyzer Configuration object for the spectrum analyzer block, then use the
spectrumTable = getSpectrumData(scope) command to read the dBm trace ? As you can see from my attempts above I am having trouble specifying the sa configuration using the config and get_param commands/functions.
Any help would be most welcome.