Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-golebiowski authored Oct 19, 2024
1 parent ab58acc commit c045e89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ namespace SpiceSharpParserExample
// Simulation using SpiceSharp
var simulation = spiceSharpModel.Simulations.Single();
var export = spiceSharpModel.Exports.Find(e => e.Name == "i(V1)");
simulation.ExportSimulationData += (sender, args) => Console.WriteLine(export.Extract());
simulation.Run(spiceSharpModel.Circuit, -1).ToArray();
simulation.EventExportData += (sender, args) => Console.WriteLine(export.Extract());
var codes = simulation.Run(spiceSharpModel.Circuit, -1);
codes = simulation.InvokeEvents(codes);
codes.ToArray(); //eval
}
}
}
Expand Down

0 comments on commit c045e89

Please sign in to comment.