add Spectrum analysis recogniztion (yet another ac type) in raw files
This commit is contained in:
parent
6c163d5cb0
commit
a7f1b2a5f1
|
|
@ -570,7 +570,9 @@ static int read_dataset(FILE *fd, Raw **rawptr, const char *type)
|
|||
dbg(dbglev, "read_dataset(): op sim_type=%s\n", sim_type ? sim_type : "<NULL>");
|
||||
}
|
||||
else if(!strncmp(line, "Plotname:", 9) &&
|
||||
( strstr(lowerline, "ac analysis") || strstr(lowerline, "sp analysis")) ) {
|
||||
( strstr(lowerline, "ac analysis") ||
|
||||
strstr(lowerline, "spectrum") ||
|
||||
strstr(lowerline, "sp analysis")) ) {
|
||||
ac = 1;
|
||||
if(!type) type = "ac";
|
||||
if(!strcmp(type, "ac")) sim_type = "ac";
|
||||
|
|
|
|||
|
|
@ -7189,7 +7189,8 @@ proc build_widgets { {topwin {} } } {
|
|||
$topwin.menubar.waves.menu add command -label Ac -command {waves ac}
|
||||
$topwin.menubar.waves.menu add command -label Tran -command {waves tran}
|
||||
$topwin.menubar.waves.menu add command -label Noise -command {waves noise}
|
||||
$topwin.menubar.waves.menu add command -label Sp -command {waves sp}
|
||||
$topwin.menubar.waves.menu add command -label Sp -command {waves ac}
|
||||
$topwin.menubar.waves.menu add command -label Spectrum -command {waves ac}
|
||||
|
||||
|
||||
eval button $topwin.menubar.simulate -text "Simulate" -activebackground yellow -takefocus 0 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue