Hello, I am struggling to get data from a 1D lookup table to plot on the RT box, which is the real-time data points that I was given for a system over time from an Excel file. When I plug it into the system, there is an error due to the clock signal. Is there another way to obtain this data to plot for the RT box, just like it does when I simulate it?
This image is how it looks on external mode from the PLECS rt box.
This is when the data is simulated regularly. I am trying to get this output on the RT box. Thanks if you can help.
battery_charger_protype.plecs (177.7 KB)
When using the “Clock” block in realtime simulations, PLECS complains that this may lead to overflow errors. You can turn this error into a warning (or ignore it completely) by changing the setting “Usage of absolute time” in the “General” tab of the Code Options dialog.
You should, however, consider what the simulation is supposed to do after the time range of your lookup table has been exceeded. The normal behavior is to linearly extrapolate data from the last two values in your lookup table. This may lead to overflows.
You should also add a capacitor on the DC side of your inverter, otherwise the results from the sub-cycle average computation may be incorrect. See the documentation of the full bridge inverter for details.