The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 How to loop over window names ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Nilsdalby

Denmark
23 Posts

Posted - 07/10/2002 :  7:28:43 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 07/10/2002 :  10:29:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Nilsdalby

Denmark
23 Posts

Posted - 07/10/2002 :  10:54:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike

Thanks for the help. That helped.

Nils
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000