#!/usr/bin/python3
# This file was automatically generated from drawio2cbd with the command:
#   /home/red/git/DrawioConvert/__main__.py -F CBD -e Oscilator -E delta=0.1 -t 1000 Oscilator.drawio -f

from Oscilator import *
from CBD.simulator import Simulator
from CBD.converters.CBD2C import CBD2C

DELTA_T = 0.1

cbd = Oscilator("Oscilator")

# Run the Simulation
# sim = Simulator(cbd)
# sim.setDeltaT(DELTA_T)
# sim.run(1000.0)

# print("Y:", cbd.getSignals()["y"][-1])

# TODO: Process Your Simulation Results
gen = CBD2C(cbd, 10000, 0.1)
gen.generate("build/oscilator.c")
