Why a transfer function block is not supported for code generation?

Rhonda_20369
Rhonda_20369 New Altair Community Member
edited February 1 in Community Q&A

A customer's simulation is being performed using elements for C code generation.
He is using a second-order delay system in the transfer function block, but since the transfer function block is not included in the elements for C code generation, a simulation error occurs.
Could you please tell us if there is a way to substitute another element instead of the transfer function block and use a second-order delay system so that errors do not occur?

Tagged:

Answers

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited February 1

    If "the transfer function block" is an "s-domain transfer function block", it is not supported for code generation.
    All s-domain blocks are not supported for code generation.

    Code generation is for digital systems because any code is used only in a digital system.
    Please replace this s-domain transfer function block with a z-domain transfer block (Elements >> Control >> Digital Control).

    Also, please remind your customer, an s-domain block is not the same as a z-domain block. Please use the function in "Utilities >> s2z Converter" to find the correct parameters/coefficients for the z-block. 

    In the s2z Converter dialog, please choose the correct sampling frequency.
    In a digital system, there could be multiple sampling frequencies for different sections of the system. Please make sure the sampling frequency for this z-block is the correct one.

     

    Sincerely,

    Rhonda