Learning to create scripted component
Quote from Tonigau on October 7, 2026, 10:13 pmI am making a component to simulate state behavior & Vout of the IR2104 gate driver(half bridge).
It has logic inputs IN & SD
Supply inputs Vcc & Vb Typically 15V.
Outputs HL & HO I set to 1R impedance for now.I have the logic states & supply voltage applied to outputs.
HL volt output is referenced to GND.Issue 1.
I get a 'NonLinear Not Converging' when I connect to HL to MOSFET gate-----------------------------
What I need to do next is to enable pin to pin volt reference, currently pin volts are GND referenced.
Pin Vs is a floating reference, HO & Vb volts should reference to this pin.Q1. How do I set a pin volt to reference another(floaing) pin.
Q2. How can I create a delay from IN_pin volt change (or logic variable state) to set output on.
I need to create dead-time ~500ns before turn on either HL_pin or HO_Pin.Thanks
I am making a component to simulate state behavior & Vout of the IR2104 gate driver(half bridge).
It has logic inputs IN & SD
Supply inputs Vcc & Vb Typically 15V.
Outputs HL & HO I set to 1R impedance for now.
I have the logic states & supply voltage applied to outputs.
HL volt output is referenced to GND.
Issue 1.
I get a 'NonLinear Not Converging' when I connect to HL to MOSFET gate
-----------------------------
What I need to do next is to enable pin to pin volt reference, currently pin volts are GND referenced.
Pin Vs is a floating reference, HO & Vb volts should reference to this pin.
Q1. How do I set a pin volt to reference another(floaing) pin.
Q2. How can I create a delay from IN_pin volt change (or logic variable state) to set output on.
I need to create dead-time ~500ns before turn on either HL_pin or HO_Pin.
Thanks
Uploaded files:Quote from arcachofo on October 8, 2026, 8:12 amQ1. You cant.
Q2. Use: void scheduleState( bool state, uint64 time ) , for example: HL_pin.scheduleState( true, 500*1000 );
I think the only way to create a component like this is with a Script for logic and Mosfets for output stage, then put all into a Subcircuit, something like this:
Q1. You cant.
Q2. Use: void scheduleState( bool state, uint64 time ) , for example: HL_pin.scheduleState( true, 500*1000 );
I think the only way to create a component like this is with a Script for logic and Mosfets for output stage, then put all into a Subcircuit, something like this:

