Disable current signals in all analyses but transient

This commit is contained in:
Maciej Suminski 2016-08-11 14:41:53 +02:00
parent 806b862a5e
commit dfeb5385f3
1 changed files with 10 additions and 8 deletions

View File

@ -47,9 +47,7 @@ bool DIALOG_SIGNAL_LIST::TransferDataFromWindow()
bool DIALOG_SIGNAL_LIST::TransferDataToWindow() bool DIALOG_SIGNAL_LIST::TransferDataToWindow()
{ {
// Create a list of possible signals // Create a list of possible signals
// TODO switch( m_exporter->GetSimType() ) /// @todo it could include separated mag & phase for AC analysis
// {
if( m_exporter ) if( m_exporter )
{ {
// Voltage list // Voltage list
@ -59,6 +57,9 @@ bool DIALOG_SIGNAL_LIST::TransferDataToWindow()
m_signals->Append( wxString::Format( "V(%s)", net.first ) ); 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() ) for( const auto& item : m_exporter->GetSpiceItems() )
{ {
// Add all possible currents for the primitive // Add all possible currents for the primitive
@ -69,6 +70,7 @@ bool DIALOG_SIGNAL_LIST::TransferDataToWindow()
} }
} }
} }
}
return DIALOG_SIGNAL_LIST_BASE::TransferDataToWindow(); return DIALOG_SIGNAL_LIST_BASE::TransferDataToWindow();
} }