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
 getting maximum of the output of 'fft1' function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gyuck

Korea
2 Posts

Posted - 10/09/2012 :  08:42:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
origin ver. and service release (select help-->about origin): 8.1
operating system: winxp 32-bit

hello! i'm labtalk beginner.
i'm trying to get maximum value of output of 'fft1' function, especially for the output called 'db'.
i'm looking for how to do it on the 'help', but the are too few explanation.
could any body let me know?

thank you!

Penn

China
644 Posts

Posted - 10/10/2012 :  04:58:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

After using fft1, the output report data sheet can be gotten by fft1.rd. And the db is output to the column named "dB", so you can try the following script after using fft1 function.

string strOutput$ = fft1.rd$;  // get the string of the output report data
string strSheet$ = strOutput.getToken(1, '!')$;  // get the book and sheet part
string strColumnDB$ = %(strSheet$)!col(dB);  // concatenate book, sheet, column (column dB)
range rDB = %(strColumnDB$);  // define a range with the concatenated string
max(rDB) = ;  // get the maximum value


Penn
Go to Top of Page

gyuck

Korea
2 Posts

Posted - 10/10/2012 :  05:44:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Penn

It's very helpful. Thanks a lot.
I'll try it.

Hanbyeol
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