An issue with the PLECS RT Box PWM blocks

Hello, I would like to ask about an issue with the PLECS RT Box PWM blocks.

  • PLECS version: 5.0.6
  • RT Box TSP/library version: 4.0.7
  • Target device: PLECS RT Box 3
  • PWM Out: 12 channels, 5 kHz
  • PWM Capture: 12 channels, Sub-cycle average
  • Model sample time: 5 μs

With identical parameter settings:

  • Offline simulation works correctly when using the embedded TargetCode PWM Out/PWM Capture blocks without the blue library-link indicator. (model 1)
  • When using PLECSRTBoxLib/PWM Out1 and PWM Capture1 with the blue library-link indicator, the model runs, but the PWM Capture output remains zero. (model 2)

I have confirmed that:

  • The duty-cycle signals at the PWM Out input are valid.
  • The offline loopback connection from PWM Out to PWM Capture is present at the top level.
  • Both signals have a width of 12.
  • No related fatal diagnostic errors are reported.

Could you please clarify:

  1. Is this a compatibility issue between PLECS 5.0.6 and RT Box TSP 4.0.7?
  2. Do the library-linked blocks require any additional configuration for offline simulation?
  3. Could this issue affect the actual PWM output and capture functions on the RT Box 3?
  4. Would you recommend upgrading PLECS/TSP or continuing to use the embedded TargetCode blocks?
    model1.plecs (769.0 KB)
    model2.plecs (615.5 KB)