Put these in the watch window to inspect and study the response.
Once the sweep is complete, click on View-> MemoryBrowser inside CCS.
Inside Memory Browser, enter &freqVect to see the frequency vector and select 32-bit floating point,
Figure 23. Memory Browser View of Stored SFRA Vectors
Click on save memory, shown encircled in Figure 23.
A popup will appear. Select TI data and specify the file name *.dat in the location you prefer.
Figure 24. Save Memory Pop-Up Window
Click on Next and specify the address from the memory browser for the start of the array and then the length.
Make sure 32-bit floating point is selected. Click Finish.
Figure 25. Save Memory Options
This will save the data in *.dat file.
Repeat this step for plantMagVect, plantPhaseVect, olMagVect, olPhaseVect, so you will have 5 *.dat files.
If you want to use this data in MATLAB or other tools, the data can be populated to an excel file.
Open the FRAData.xlsx file located at <install directory>\sfra\scripts in excel.
You can choose to re-name and save the file.
This excel sheet has four columns, in the first column is the frequency data.
Open the *dat file that was saved.
Figure 26. Selecting Data From .dat File to Put in the Excel
Select the data from the second line onwards to the end of the file and do Ctrl+C to copy the data.
Open the Excel File, go to the first element under the corresponding vector and do Ctrl+V to copy the array.
Figure 27. SFRA Data Copied in Excel File
Repeat the steps for each column.
Once the excel file is updated for all five columns, use the matlab script to import the FRA data. Then, use it inside sisotool to design compensator and carry out stability analysis.
The file an also be downloaded as a *.csv file and used with the compensation designer tool.