T O P I C R E V I E W |
Nilsdalby |
Posted - 07/10/2002 : 7:28:43 PM Hi
My problem is that i need to perform FFT's on app. 120+ datasets. The code in the labtalk manual (p.261 v.6 labtalk)demonstrate how access to FFT is done via labtalk. The problem arise when results from the FFT is put into the called FFT window template (FFT1). I am probably able to loop over columns by %(%H,ii), but how can i loop over window names ? (i.e. FFT1, FFT2...FFT120)
Any comments appreciated, Nils |
2 L A T E S T R E P L I E S (Newest First) |
Nilsdalby |
Posted - 07/10/2002 : 10:54:10 PM Hi Mike
Thanks for the help. That helped.
Nils |
Mike Buess |
Posted - 07/10/2002 : 10:29:01 PM Hi Nils,
There are probably several ways to do what you want and I'll just mention the simplest that come to mind.
Method 1> If your worksheet windows are named FFT1 through FFTnn, this should work...
loop (ii,1,nn) { %A=FFT$(ii); // Assign window name to %A --scripts to handle your window-- };
Method 2> If your worksheet window indices (ii) are not consecutive you could loop over all windows and test each to see if its name starts in FFT...
doc -e W { if("%[%H,4]"=="FFT") { --scripts here, %H holds the wks name-- };
I hope that helps.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 07/10/2002 22:30:15 |
|
|