How to find the ratio of two frequencie​s in fft
Hi i am john,
I need to find the ratio of 1st and 2nd frequencies in fft graph.
Already i got information from this site only. Mr. Alten helped me.
Now i have to continue the same problem and need to find the ratio of the frequencies.
Please someone help me guys....
I will attach my vi file and text file.
Solved!
Go to Solution.
Attachments:
Excel 2.lvm.txt 7 KB
Excel 1.lvm.txt 7 KB
To find fft_MODCA.vi 14 KB
Thanks a lot Mr.JohnSold.
But i need to find fft for the other sample of datas. i cant be able to get it through the vi which u have posted. please check it and send me the new program. Sorry for disturbing u.
PFA
Attachments:
C2 50hz 7kv 00000.lvm.txt 24 KB
C2 50hz i 00001.lvm.txt 24 KB
Similar Messages
-
How to find the difference of two columns in deski
Hi Everyone,
I have a deski report which is build from a single query. The report contains two tables.
Table-1:MTK Loc
MTKnet
Table-2:WTK Loc
WTKnet
Now i need to find the difference of the columns WTKnet and MTKnet.
These two are report level variables.Their definitins are as below:
MTKnet:=Sum((<Fees Collected by Per Collected>) In Body) ForEach <vMTKLocation>
WTKnet:=Sum((<Fees Collected by Per Collected>) In Body) ForEach <vWTKLocation>
Where <Fees Collected by Per Collected> is universe variable.
Please help...
Thanks in Advance......Hi Bol,
As I understand you are taking MTK_Loc and WTK_Loc together in the report which have common values under Fees Collected by Per Collected column.
Please follow the steps mentioned below:
1. Calculate the Variables MTK_Net as
=Sum(<Fees>) IN <MTK_Loc>
2. Calculate the Variables WTK_Net as
=Sum(<Fees>) IN <WTK_Loc>
3. You will get the values based on the Locations MTK_Loc and WTK_Loc .
You are using combination of values for MTK_Loc and WTK_Loc hence you will get the variable values in combination.
Insert new column right to the WTK_Net and write the formula name it Variance.
=<MTK_Net>- <WTK_Net>
The values look like :
MTK_Loc WTK_Loc MTK_Net WTK_Net Variance
Chicago Chicago 16,696,274.43 157,168.26 16,539,106.17
Chicago Madison 16,696,274.43 274,396.12 16,421,878.31
Chicago Milvaki 16,696,274.43 16,622,870.97 73,403.46
Chicago Pennsylvania 16,696,274.43 4,299.35 16,691,975.08
Chicago Waukesha 16,696,274.43 22,067.08 16,674,207.35
Here you will see values for MTK_Net are repeated because these are based on the MTK_Loc which is same for all rows i.e. Chicago , same is the case with remaining values of MTK_Loc.
We can not calculate variabnce based on the values like Canada,Pennsylvania for all values as these values come in combination of each other and as these are all connected columns WEBI groups Measure data based on the Dimension and variable columns associated with it.
MTK_Loc WTK_Loc MTK_Net WTK_Net Variance.
Chicago Chicago 16696274.43 157168.26 16539106.17
However you can compare the values based on the values as :
1. Drag and Drop MTK_Loc and MTK_Loc separately on the report.
2. Drag and Drop WTK_Loc and WTK_Loc separately and put it on the report, Connect it to the columns MTK_Loc and MTK_Loc columns already dragged. Then you can compare the values
MTK_Loc MTK_Net WTK_LOC WTK_Net
Chicago 16,696,274.43 Chicago 157,168.26
Madison 315,705.91 Madison 274,396.12
Manitowoc 362,632.50 Manitowoc 359,978.50
Milvaki 54,172.84 Milvaki 16,622,870.97
Pennsylvania 2,966.56 Pennsylvania 4,299.35
Waukesha 9,028.03 Waukesha 22,067.08
Here I unchecked the option avoid duplicate row aggregation (select table-> format table) thatu2019s why it is showing all values as a sum of all MTK_Net and WTK_Net values corresponding to Location values..
Here we are using MTK_Loc and WTK_Loc separately and not connected because though values seems same but they are used in combination ( Chicago, Pennsylvania) in 2 separate tables in DB hence we canu2019t synchronize them by liking these 2 location columns using 2 data providers.
I Hope this is what you want....
Thanks....
Pratik -
How to find the difference between two date?
Hi,
I currently writing a date comparision program. Below is the idea analogy,
Currently i need to find how many day differences between 30 July 2003 and 22 June 2004. How can i use java to code it?
Thanks.there doesn't seem to be a direct way but try this:int daysBetween = 0;
Calendar c = new GregorianCalendar(2004, Calendar.JULY, 30);
Calendar d = new GregorianCalendar(2003, Calendar.JUNE, 22);
while (c.get(Calendar.YEAR) != d.get(Calendar.YEAR)) {
daysBetween += 360;
d.add(Calendar.DAY_OF_YEAR, 360);
daysBetween += c.get(Calendar.DAY_OF_YEAR) - d.get(Calendar.DAY_OF_YEAR);This gives the correct result of 404 (= 8 days from June 22 to June 30 + 366 days between July 1 of 2003 and 2004 + 30 days from July 1 to July 30) -
How to find the hours between two timing
Hai All
I had a problem that i need to calculate a working hours
For example
Intime outtime
0815 1715
so i need to calculate a time between these two timing
how can i do using function for 100 nos
Regards
Srikkanth.MSrikkanth.M wrote:
Hai Man
I think i got half a way, But the time is not coming exactly. so how can i do the same code that u have give inside a function is it possible to do a function with these three requirementThis can be done in the following way, but a function should always return a value.
Here I have just returned a dummy value of 1.
create or replace
function testingFunction (<paramters if any>) return number
as
begin
update testTable set (wtime,ltime,etime)=(select extract(hour from (to_date('0930','HH24:MI')-to_date('1200','HH24MI')) day to second),
case when extract(hour from (to_date('0930','HH24:MI')-to_date('1200','HH24MI')) day to second) > 0830
then extract(hour from (to_date('1200','HH24:MI')-to_date('0830','HH24MI')) day to second)
else 0 end,
case when To_number('0900') > to_number('0815') then extract(hour from (to_date('0900','HH24:MI')-to_date('0815','HH24MI')) day to second)
else 0 end from dual);
return 1;
end;
A better option would be to create a stored procedure and call that. Just like the way I have done below
create or replace
procedure testingprocedure (<paramters if any>)
as
begin
update testTable set (wtime,ltime,etime)=(select extract(hour from (to_date('0930','HH24:MI')-to_date('1200','HH24MI')) day to second),
case when extract(hour from (to_date('0930','HH24:MI')-to_date('1200','HH24MI')) day to second) > 0830
then extract(hour from (to_date('1200','HH24:MI')-to_date('0830','HH24MI')) day to second)
else 0 end,
case when To_number('0900') > to_number('0815') then extract(hour from (to_date('0900','HH24:MI')-to_date('0815','HH24MI')) day to second)
else 0 end from dual);
end;
and call the procedure
testingprocedure(<parameters if any>);
Naveen -
How to find the difference between two timestamp column
Dear All,
please Solve my issue,
I have Table name Record which has the following columns,
Empid in number column, dat in timestamp
which has the following values
Expand|Select|Wrap|Line Numbers
empid dat
====== ====
101 4/9/2012 9:48:54 AM
101 4/9/2012 9:36:28 AM
101 4/9/2012 6:16:28 PM
101 4/10/2012 9:33:48 AM
101 4/10/2012 12:36:28 PM
101 4/10/2012 8:36:12 PM
101 4/11/2012 9:36:28 AM
101 4/11/2012 4:36:22 PM
Here I need to display the following columns,
empid,min(dat) as start,max(dat) as end and difference(max(dat)-min(dat) for each day,
for eg,
Empid Strart end difference
101 4/9/2012 9:48:54 AM 4/9/2012 6:16:28 PM 8.28
like this.
Here 3 different days are exists so It should return 3 records with the above mentioned columns,
Please Help me to get this.
Thank you,
Regards,
Gurujothi
Edited by: Gurujothi on Apr 25, 2012 4:45 AM>
101 4/9/2012 9:48:54 AM 4/9/2012 6:16:28 PM 8.28
>
why 4/9/2012 9:48:54?
why not 4/9/2012 9:36:28 AM ?
SQL>
SQL> with t as
2 (select 101 empid, to_timestamp('4/9/2012 9:48:54 AM', 'dd/mm/yyyy hh:mi:ss AM') dat from dual union all
3 select 101, to_timestamp('4/9/2012 9:36:28 AM', 'dd/mm/yyyy hh:mi:ss AM') dat from dual union all
4 select 101, to_timestamp('4/9/2012 6:16:28 PM', 'dd/mm/yyyy hh:mi:ss PM') dat from dual union all
5 select 101, to_timestamp('4/10/2012 9:33:48 AM', 'dd/mm/yyyy hh:mi:ss AM') dat from dual union all
6 select 101, to_timestamp('4/10/2012 12:36:28 PM', 'dd/mm/yyyy hh:mi:ss PM') dat from dual union all
7 select 101, to_timestamp('4/10/2012 8:36:12 PM', 'dd/mm/yyyy hh:mi:ss PM') dat from dual union all
8 select 101, to_timestamp('4/11/2012 9:36:28 AM', 'dd/mm/yyyy hh:mi:ss AM') dat from dual union all
9 select 101, to_timestamp('4/11/2012 4:36:22 PM', 'dd/mm/yyyy hh:mi:ss PM') dat from dual
10 )
11 select empid, min(dat) as start_dat
12 , max(dat) as end_dat
13 , max(dat)-min(dat) diff
14 from t
15 group by empid, trunc(dat)
16 /
EMPID START_DAT END_DAT DIFF
101 04.09.12 09:36:28,000000000 04.09.12 18:16:28,000000000 +000000000 08:40:00
101 04.11.12 09:36:28,000000000 04.11.12 16:36:22,000000000 +000000000 06:59:54
101 04.10.12 09:33:48,000000000 04.10.12 20:36:12,000000000 +000000000 11:02:24
SQL> -
hello everyone,
i'm rai from indonesia
I have a final project about pulse oximetriy, I have some problems,
how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
My program image can be seen below predicament ?
Attachments:
spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi 249 KB
spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi 249 KBHi rai,
I would appreciate it as kind of respect for forum participants if you would clean up your VI before uploading it (or images of its block diagram)…
That being said:
- Your inner while loops each run exactly twice. Replace them with FOR loops!
- Lots of unneeded operations, mainly induced by ExpressVI usage. Is there a reason to convert to DDT and immediately convert back to 1D array?
- You already calculate some Min/Max values. Ratio is just a division of two values…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Numbers questioons:
-how do I change the automatic default background fill color so it stays a non white color?
-what is the formula to express the ratio of two numbers as a percentage?
-how do I create a signal formula to be sue against an entire column of data (for example, if I wanted to multiply the each cell in the column by the number 10)?
-I have created a spreadsheet in Numbers with header and rows labelled and it contains formulas as well. I now want to create a new 'blank' of this template with same header and row names and formulas, but without the cell entries from my earlier exerciser so I can use again in the future. How do I do this?Hi Matt,
For short columns, the easiest method is to select the cell containing the formula, then grab the fill handle (small circle at the botom right of the selected cell) and drag down.
For long columns, use either Jerry's suggestion (copy/paste) or Insert > Fill > Fill Down.
Copy/Paste:
Select the cell containing the formula. Copy
Select from the cell containing teh formula to the end of the column. Paste.
Fill Down:
After entering the formula, and pressing enter...
Click on the column reference tab to select the whole column.
Command click on each cell above the one containing the formula to remove it from the selection.
When cell with the formula is the top cell in the selection, go Insert > Fill > Fill Down.
Pick whichever is easiest.
Regards,
Barry -
How to find the difference in object definition between two databases
Hi,
Can any one suggest me how to find the difference in object definition between two different databases. Is there any tool or by OEM? If so how?
Regards
Naveenthis link may be helpful...
http://www.dbspecialists.com/scripts.html -
How to find the structural difference between two tables
Hi all,
How to find the structural difference between two tables .
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
Thanks,
P Prakashyou could try something similar to this, for each table pair that you want to compare:
SELECT 'TABLE_A has these columns that are not in TABLE_B', DIFF.*
FROM (
SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
FROM all_tab_columns
WHERE table_name = 'TABLE_A'
MINUS
SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
FROM all_tab_columns
WHERE table_name = 'TABLE_B'
) DIFF
UNION
SELECT 'TABLE_B has these columns that are not in TABLE_A', DIFF.*
FROM (
SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
FROM all_tab_columns
WHERE table_name = 'TABLE_B'
MINUS
SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
FROM all_tab_columns
WHERE table_name = 'TABLE_A'
) DIFF;that's assuming, column_name, data_type and data_length are all you want to compare on. -
How to quickly find the difference of two version of RPD?
Hi all,
Does anyone have good idea about quickly finding the difference of two versions of RPD in the project?
Regards,
AnneThis might be of help to you
http://varanasisaichand.blogspot.com/2010/03/how-to-merge-two-repositories.html
http://www.rittmanmead.com/2010/07/obiee-11gr1-incremental-patches-to-the-rpd/
Cheers,
KK
Edited by: Kranthi.K on Dec 7, 2011 9:41 PM -
hello everyone,
i'm rai from indonesia
I have a final project about pulse oximetriy, I have some problems,
how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
My program image can be seen below predicament ?
Attachments:
spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi 249 KBHi Rai,
You should post this into the LabVIEW forum rather than Real-Time since this isn't a Real-Time application. Your post will see more replies in the LabVIEW forum.
As far as your question is concerned, you can write the max and min from the respective loops to a local variable to send the data out of the loops to a third loop or just do the calculation in one of the loops. This would be ideal if you're trying to do this while the loop is running.
-Jayk
Applications Engineering
National Instruments -
How can I find the maximum of two enum values?
I have a set of enum values (let's call then ONE, TWO, THREE.....). I want to find the larger of two of them. But max(ONE,THREE) gives a compile error as MAX isn't defined for type-safe enums. Fair enough.
I also agree that one shouldn't be able to use arithmetic functions on enums.
But as Enum implements Comparable, one can write a function which implements max and min, rather inefficiently I assume.
Is there a better way of getting the max/min of an enum? And if not, can the Java team be persuaded to implement it?I have a set of enum values (let's call then ONE, TWO, THREE.....). I want to find the larger of two of them. But max(ONE,THREE) gives a compile error as MAX isn't defined for type-safe enums. Fair enough.
I also agree that one shouldn't be able to use arithmetic functions on enums.
But as Enum implements Comparable, one can write a function which implements max and min, rather inefficiently I assume.
Is there a better way of getting the max/min of an enum? And if not, can the Java team be persuaded to implement it?
The first place you should look for ANY basic question about Java classes is the documentation.
http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html#compareTo(E)
Why do you need a MAX method? You said you are only comparing TWO objects and you also say you know that 'Enum implements Comparable.
So just compare the two enums. The Enum class supports the 'compareTo(E o)' method as the doc API shows. -
How to find the number of times method being called.....
hi,
can any one pls tell me how to find the number of times the method being called......herez the example....
Refrence ref = new Refrence();
for(int i = 0;i < arr.length; i++){
if(somecondition){
ref.getMethod();
here i want to know how many times the getMethod() is calling...Is there any method to do this.. i have seen StrackTraceElement class..but not sure about that....pls tell me the solution....can any one pls tell me how to find the number of times the method being called......
herez the example.... http://www.catb.org/~esr/faqs/smart-questions.html#writewell
How To Ask Questions The Smart Way
Eric Steven Raymond
Rick Moen
Write in clear, grammatical, correctly-spelled language
We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ? in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes. -
How to find the list of Tables....
Hi
How to find the list of Tables associated with When a Goods Issue is done for a Process Order ??
Kindly tell me step-by-step procedure in browsing it.
cheers
MaruthiRamHi
goto SE16 Click F4, You have two options Information system & Sap Applications.
Click on SAP Applications & selec the application you wnat to see, for E.g Purchasing you can click on materials managemnt, Purchasing if you drill down you will see the list of tables....
reward points if useful
Thanks & Regards
Kiran -
How to find the most matched values in the set of map?
Hi friends!
I have two vectors
vector<int> V1; vector<int> V2;
and a map<int, set<int>> M1;
I want to select common values from both V1 and V2 and check those values with the set in the map M1.
For example:
V1 contains;
2 4 6 8 9
V2 contains;
4 5 6 9 10
M1 contains;
1=>1 2 5 9
2=>4
3=>5 10
4=>2 4 8
5=>4 9
6=>4 6
7=>9 12
When we select the common values of V1 and V2 it is 4, 6, 9.
And we search for all 4, 6, 9 from the values of M1 which give more appropriate.
But, no all values in the set of map.
Then, we delete any value from 4, 6, 9, then remaining values would match any values from the map.
From the example, if we delete 6, then remaining 4, 9 will match with 5=>4 9, or if we delete 9, then 6=>4 6. Any one of the keys can be selected.
I know how to select the common values from V1 and V2, but I do not know how to match with the values and select the appropriate key from M1.
Could anyone help me to solve this?This is not the question you asked, except perhaps in the subject. The subject is not the right place to put key features of the question. It is also important to use the body to ask just the question you want
answered. For example your real question has nothing to do with V1 and V2, just the common vector V (e.g. 4 6 9).
One way to solve your problem would be to create a new map
map<int, set<int>> M2;
with the same keys as M1. Each set of M2 should contain the elements of V that are
not in the corresponding set of M1.
Then pick the key of M2 that has the smallest set. If that set is empty, then the whole of V can be used. Otherwise the smallest set tells which elements of V have to be removed, and which is the desired key of M1.
In your example, key 5 of M2 will contain just 6, so you should remove 6 from V and select key 5.
Yes fine. I tried the following code and it creates the map M2 (NewMyMap in my code). But how to find the smallest set starting from size 1?
#include <vector>
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
using namespace std;
typedef vector<int> IntVec;
typedef set<int> IntSet;
typedef map<int, IntSet> SetMap;
bool IsValueNotInSet(int value, IntSet& S);
SetMap CreatNewSetMap();
IntVec IVec; //This vector is for selecting certain keys from mySet map.
IntVec myVec;
SetMap mySet;
SetMap NewMyMap;
int main()
IVec.push_back(3); IVec.push_back(4); IVec.push_back(5); IVec.push_back(6);
myVec.push_back(4); myVec.push_back(6); myVec.push_back(9);
IntSet tempS;
tempS.insert(1); tempS.insert(2); tempS.insert(5); tempS.insert(9);
mySet.insert(make_pair(1,tempS));
tempS.clear();
tempS.insert(4);
mySet.insert(make_pair(2,tempS));
tempS.clear();
tempS.insert(5); tempS.insert(10);
mySet.insert(make_pair(3,tempS));
tempS.clear();
tempS.insert(2); tempS.insert(4); tempS.insert(8);
mySet.insert(make_pair(4,tempS));
tempS.clear();
tempS.insert(4); tempS.insert(9);
mySet.insert(make_pair(5,tempS));
tempS.clear();
tempS.insert(4); tempS.insert(6);
mySet.insert(make_pair(6,tempS));
tempS.clear();
tempS.insert(9); tempS.insert(12);
mySet.insert(make_pair(7,tempS));
cout<<"MYVEC\n";
cout<<"-------------\n";
for(IntVec::iterator itv = myVec.begin(); itv != myVec.end(); ++itv)
cout<<(*itv)<<" ";
cout<<"\n\n";
cout<<"\nMYSET\n";
cout<<"-------------";
for(map<int,set<int>>::iterator its = mySet.begin(); its != mySet.end(); ++its)
cout << endl << its->first <<" =>";
for(IntSet::iterator sit=its->second.begin();sit!=its->second.end();++sit)
cout<<" "<<(*sit);
cout<<"\n\n";
NewMyMap= CreatNewSetMap();
cout<<"\nNEWMYSET\n";
cout<<"-------------";
for(map<int,set<int>>::iterator its1 = NewMyMap.begin(); its1 != NewMyMap.end(); ++its1)
cout << endl << its1->first <<" =>";
for(IntSet::iterator sit=its1->second.begin();sit!=its1->second.end();++sit)
cout<<" "<<(*sit);
cout<<"\n\n";
return 0;
bool IsValueNotInSet(int value, IntSet& S)
IntSet::iterator it=find (S.begin(), S.end(), value);
if (it!=S.end())
return false;
return true;
SetMap CreatNewSetMap()
IntSet TSet;
for(IntVec::iterator it = IVec.begin(); it != IVec.end(); ++it)
SetMap::iterator its = mySet.find(*it);
if (its != mySet.end())
TSet.clear();
int key = its->first;
IntSet& itset = its->second;
for(IntVec::iterator itv = myVec.begin(); itv != myVec.end(); ++itv)
if(IsValueNotInSet((*itv), itset))
TSet.insert(*itv);
NewMyMap.insert(make_pair(key,TSet));
return NewMyMap;
Maybe you are looking for
-
I Can't Find the Flash I Downloaded?
Last year in May I bought Flash Professional CS6 for a year. I downloaded it onto a laptop that I don't use anymore, but the download was interrupted by my laptop restarting, so I deleted the half-downloaded file and re-downloaded it onto that laptop
-
Why is svg output blurry?
Dear Apple Support Community, I have a vexing problem with SVG files. It seems that something about OS X does not interpret SVG files properly, nor any vector-graphics derivative of a SVG file. The problem is that the embedded bitmap component of the
-
Creative Zen Touch & Mac OSx comput
Hi, I have been given a Apple Mac OSx powerbook laptop. I have downloaded my Creative Media Source onto my work computer (normal PC), but I tried to put the same disk into my laptop last night and it did not work. Is Creative compatable with Apple Ma
-
How much easier will OS X Server make my working life?
Hi folks, thanks for taking the time to read... I'm involved in a business exporting kitchen appliances from the UK. We have a small number of staff operating in a number of locations - frequently travelling to our export location. I have been consid
-
AEBSn w/ Western Digital My Book w/ Environmentally friendly 10min power
I have researched the line of external 500GB WD drives and it appears 3 of the single drive units have Environmentally friendly feature... To me this is very important in keeping the drive cool and extending its life. However I would like the friendl