Disable current signals in all analyses but transient
This commit is contained in:
parent
806b862a5e
commit
dfeb5385f3
|
@ -47,9 +47,7 @@ bool DIALOG_SIGNAL_LIST::TransferDataFromWindow()
|
|||
bool DIALOG_SIGNAL_LIST::TransferDataToWindow()
|
||||
{
|
||||
// Create a list of possible signals
|
||||
// TODO switch( m_exporter->GetSimType() )
|
||||
// {
|
||||
|
||||
/// @todo it could include separated mag & phase for AC analysis
|
||||
if( m_exporter )
|
||||
{
|
||||
// Voltage list
|
||||
|
@ -59,6 +57,9 @@ bool DIALOG_SIGNAL_LIST::TransferDataToWindow()
|
|||
m_signals->Append( wxString::Format( "V(%s)", net.first ) );
|
||||
}
|
||||
|
||||
// For some reason, it is not possible to plot currents in any but transient analysis
|
||||
if( m_exporter->GetSimType() == ST_TRANSIENT )
|
||||
{
|
||||
for( const auto& item : m_exporter->GetSpiceItems() )
|
||||
{
|
||||
// Add all possible currents for the primitive
|
||||
|
@ -69,6 +70,7 @@ bool DIALOG_SIGNAL_LIST::TransferDataToWindow()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return DIALOG_SIGNAL_LIST_BASE::TransferDataToWindow();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue