Hi David, to replace the Rectifier in the Simulink Harmonic Filter example with your actual three-phase current data, you can follow these steps:
1. Prepare Your Data: Ensure your Excel spreadsheet with the harmonic data is well-formatted. You will need to import this data into MATLAB.
2. Import Data into MATLAB:
data = readtable('harmonic_data.xlsx');
3. Create a Timeseries Object:
ts_phaseA = timeseries(phaseA, time);
ts_phaseB = timeseries(phaseB, time);
ts_phaseC = timeseries(phaseC, time);
4. Modify the Simulink Model:
- Open the Simulink model from the example.
- Remove the Rectifier block.
5. Configure the Three-Phase Programmable Voltage Source:
- Double-click the block to open its parameters.
- Set the Phase-to-phase RMS voltage and Frequency according to your system requirements (e.g., 50 Hz or 60 Hz).
- For the Time variation of the voltage sources, set the Time variation to External to use the timeseries data.
6. Use From Workspace Blocks:
- Add three From Workspace blocks from the Simulink library.
- Configure each block to use the timeseries objects created (ts_phaseA, ts_phaseB, ts_phaseC).
7. Connect the From Workspace Blocks:
- Connect the outputs of the From Workspace blocks to the Three-Phase Programmable Voltage Source block.
- Ensure the connections are correct for phases A, B, and C. Save and run the simulation.
By following these steps, you should be able to replace the Rectifier block with your actual three-phase current data and observe the effect of the harmonic filters in the Simulink Harmonic Filter example. Hope this helps!