Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Johann Glaser <Johann.G<laser@gm...> - 2012-08-08 21:16:24
For a hobby project I'll try to build a source meter (i.e. four quadrant
source/load). This should have an AB-type output stage (PMOS + NMOS)
which is directly driven by a digital control loop which is implemented
in some DSP like CPU. The control voltages will be generated using DACs,
and several ADCs are used to measure the voltages and currents (using
shunt monitors or the like) at important points.
To test the control algorithm I'd like to do a co-simulation of the
electrical circuit (using real component models) with my C program
(which implements the control algorithm).
The voltages and currents should be transferred from the circuit
simulator to my C program. This calculates now control voltages, which
are then supplied to the simulator. The timing should be considered
Could you please give me some hints how I can implement this
co-simulation? I'm happy with FIFOs (i.e., inter-process communication),
with directly linking my C program to the simulation kernel, and so on.