Current and Voltage in Sub Circuit Component #198
Unanswered
Abbas111977
asked this question in
Q&A
Replies: 1 comment
-
Hi, You can get to the behaviors using this property. var behaviors = sim.EntityBehaviors["subcktName"].GetProperty<IBehaviorContainerCollection>("behaviors");
double value = behaviors["componentInSubcktName"].GetProperty<double>("myProperty"); If you want to measure voltages inside a subcircuit, you will have to expand the name like you often do in Spice simulators. The internal node var p = sim.EntityBehaviors["subcktName"].GetParameterSet<SpiceSharp.Components.Subcircuits.EntitiesBehavior>();
var state = p.GetState<IBiasingSimulationState>();
// Now you can extract your voltages and so on from the local state. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dears,
Can i measure voltage and current of component inside a sub circuit ? if yes then How ?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions