How to get the model

Ceasar
Ceasar Altair Community Member

Here is some code for Matlab, I want to achieve the function using psim. But I don't know how to build it.

Tagged:

Answers

  • RSGarciarivas
    RSGarciarivas
    Altair Employee

    Hi @Ceasar,

    You can use a simplified C block with three inputs and one output. Implementation in C would be very similar to MATLAB, with some syntax differences for if statements.

  • Ceasar
    Ceasar Altair Community Member

    Using the c, I completed it. But I need to co-simulate with ltspice, it doesn't work. So do you know how to build the logical circuit?

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.