S
Svenn Are Bjerkem
Guest
Hi,
I have a problem printing the waveforms from an AWD window into a
result window.
What I have tried so far:
(setq plotWin (window 5))
(awvPrintWaveform plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList)
Which give me error messages like:
*Error* unknown data type drwave:229167128
one for each waveform in the window.
I then try to assign some waveforms to variables:
(setq w1 (car plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList))
(setq w2 (cadr plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList))
(setq w3 (caddr plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList))
(setq w4 (cadddr plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList))
(awvPrintWaveform w1 w2 w3 w4)
Which works.
plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList alone return
(drwave:229167128 drwave:229167152 drwave:229167176 drwave:229167200
drwave:229167224)
which to me looks like a list.
Finder tells me that awvPrintWaveform needs to have each waveform
listed separately even if the explanatory text claims that it prints a
list, it doesn't, at least not for me.
Then I try:
foreach waveForm plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList
awvPrintWaveform(waveForm)
which works in the sense that it gives me one print window per
waveform. This will give me one file per waveform, and is not quite
what I need.
I need some kind of solution which takes a list of objects and
dissolve them in a sequence of variables. This is probably a lamda or
a mapcar, but I don't get it right.
Any ideas?
--
Svenn
I have a problem printing the waveforms from an AWD window into a
result window.
What I have tried so far:
(setq plotWin (window 5))
(awvPrintWaveform plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList)
Which give me error messages like:
*Error* unknown data type drwave:229167128
one for each waveform in the window.
I then try to assign some waveforms to variables:
(setq w1 (car plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList))
(setq w2 (cadr plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList))
(setq w3 (caddr plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList))
(setq w4 (cadddr plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList))
(awvPrintWaveform w1 w2 w3 w4)
Which works.
plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList alone return
(drwave:229167128 drwave:229167152 drwave:229167176 drwave:229167200
drwave:229167224)
which to me looks like a list.
Finder tells me that awvPrintWaveform needs to have each waveform
listed separately even if the explanatory text claims that it prints a
list, it doesn't, at least not for me.
Then I try:
foreach waveForm plotWin->awvWaveInfoDpl->subwinArr[0]->plotWaveList
awvPrintWaveform(waveForm)
which works in the sense that it gives me one print window per
waveform. This will give me one file per waveform, and is not quite
what I need.
I need some kind of solution which takes a list of objects and
dissolve them in a sequence of variables. This is probably a lamda or
a mapcar, but I don't get it right.
Any ideas?
--
Svenn