Cut off some data from a set of data

I have a set of data our of from power spectral density measurement.
I want to curve fitting with the data.
But I want to cut off below a certain frequency.  For instance, the PSD
data
contains {(1,10),(2,3),(3,4),(4,3),...} and I want to fit from 3 Hz
{(3,4),(4,3)...}.
I tried high pass filter but it does not change.  I tried several ways such
as
get time stamp and find the index for the element and remove the array
using
'Array'tools.  It cuts off the data sets that I wanted to remove but it
does
not remove the frequency values.  So it works like {(1,4),(2,3)....}
instead of
{(3,4),(2,3)..}.  Please let me know how I can make this work.
Thanks.
Attachments:
new-PSD-factor-v3.vi ‏522 KB

Hey Arrow,
I think I understand your question better now. You'll want to use the "delete from array.vi". It can be found by going to all functions>>Array. You'll need to input the array to be edited, which index to begin deleting from and how many elements to delete. From your application it sounds like you'll want to start from element zero and delete the number of elements that corresponds to 0 through 4 Hz.
In addition, you'll need to create an array that represents the frequencies you want to plot (4 1000 Hz or your upper limit). There'll need to be one frequency on your x axis for each element in your PSD array. Then bundle the two arrays together and plot them on an XY plot. You can use the "bundle" vi to accomplish this. You can find examples using clusters from help>>find examples. Then navigate to Fundamentals>>Arrays and Clusters.
Hope this helps out.
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect

Similar Messages

  • Transfer data from Result Set (Execute SQL Task) into Flat File

    Hi to all,
    My problem is this:
     -) I have a stored procedure which use a temporary table in join with another "real" table in select statement. In particular the stored procedure look like this:
    create table #tmp
    col1 varchar(20),
    col2 varchar(50)
    --PUT SOME VALUE IN #TMP
    insert into #tmp
    values ('abc','xyz')
    --SELECT SOME VALUE
    select rt.*
    from realTable rt, #tmp
    where rt.col1 = #tmp.col1
    -) I cannot modify the stored procedure because I'm not admin of database.
    -) I HAVE THE REQUIREMENT OF TRANSFER DATA OF SELECT STATEMENT OF SOTRED PROCEDURE INTO FLAT FILE
    -) THE PROBLEM is that if I use an OLEDB source Task within a Data Flow Task I'm not be able of mapping column from OLEDB source to flat file destination. The reason for this, is that in the "Column page" of OLEDB source task, SSIS do not retrieves
    any column when we using a temporary table. The reason for this, is that SSIS is not be able to retrieve metadata related to temporary table. 
    -) One possible solution to this problem is to use an Execute SQL Task to invoke the stored procedure, store the result returned from stored procedure in a Result Set through a Object type user variable.
    -) The problem now is: How to transfer data from result set to flat file?
    -) Reading here on this forum the solution look be like to use a Script task to transfer data from result set to flat file.
    QUESTIONS: How to transfer data from result set to flat file using a script task?? (I'm not an expert of vb .net) Is it really possible?? P.S.: The number of row returned of stored procedure is very high!
    thanks in advance.

    Hi  Visakh16<abbr
    class="affil"></abbr>
    thanks for the response.
    Your is a good Idea, but I do not have permission to use DDL statement on the database in production environment.

  • I need to be able to print or export some photos from iPhoto with the date the photos were taken.  Need this for a legal case.  Any suggestions?

    I need to be able to print or export some photos from iPhoto with the date the photos were taken.  Need this for a legal case.  Any suggestions?

    The date they were taken us in the EXIF data and is included in the export
    However it is trivial to modify it so I doubt that it would hold water in court
    LN

  • How to retrieve date from a set type in SAP CRM in BRF+ application

    Hi,
    Can anybody please let me know how can I retrieve date from a set type in SAP CRM to BRF+.
    I need to process the data in BRF+ and then send it back to CRM. Thanks.
    Regards
    Yogesh

    Hi Manish,
    From my experience, you cannot change an existing attribute of a set type (esp. when it has a dependency).
    You need to delete the attribute, save the changes and then re-create the attribute with new value table.
    Also remove any dependencies before deleting the attribute.
    Regards,
    Vartika

  • Can I cut off best scene from movie as Picture?

    I would like to cut off best scene from movie as picture.
    How?
    Do I need to get special software?
    Please help!!

    First, get an app called MPEG Streamclip, which is free. (google MPEG Streamclip from Squared 5)
    Open MPEG Streamclip.
    In iMovie, select the clip you need. Then, right-click/Reveal in Finder.
    Drag this clip from the Finder into MPEG Streamclip
    In MPEG Streamclip, move the playhead to the frame you want.
    In MPEG Streamclip, click FILE/EXPORT FRAME.
    Choose JPEG, TIFF, or PNG and give it a name.
    You can then drag this photo into iPhoto.

  • Dump while loading data from POS DM to data source

    Hello experts
    I'm loading data from POS DM to data source 0RT_PA_TRAN_CONTROL, when amount of data is more then 1800000 records i get dump with the message "Unable to fulfil request for 8004 bytes of memory space."
    How can i divide data on small packets? or can you suggest other solution?
    I already check ztta/max_memreq_MB parameter and it's set to maximum.

    Check the parameter ztta/roll_area in RZ11 , changes to this parameter would affect all the datasources.
    The Maximum recommended size of a datapackage is 100.000 records and If a delta load is big, then divide the package into smaller using the parameter MAXDPAKS.
    check this note for more info 1292059.
    Also check below notes
    1102641 Consult: Dump during insert in PSA table due to incorrect values
    1163359 Load methods using SMQS or SAPI-controlled to transfer to BW
    1160555 Determination of maximum data packages in a delta request
    Points are appreciated.

  • Verizon is using the Elipsis tablets to steal data from their customers.  The only way to stop data from registering as cellular data is to pull the SIM card.  This occurs with wifi enabled and cellular,dara disabled.  If,you take your tablet to a Verizon

    Verizon is using the Elipsis tablets to steal data from their customers.  The only way to stop data from registering as cellular data is to pull the SIM card.  This occurs with wifi enabled and cellular,dara disabled.  If,you take your tablet to a Verizonstore they will upgrade your data plan to cover the overage and credit the upgrade.  You will then have to remember to downgrade your plan or continue to pay for more data.  Verizon, how would you feel if I walked into one of your stores and started filling my pockets with merchandise?  If cought can I just give the product back and say "oops, sorry"

    Today, my FCC complaint hit the same person working on the BBB complaint.  Jimmie has been very nice and seems willing to work with this problem.  We have been able to come to an agreement.  I paid the purchase price for the phone and he returned my upgrade and unlimited data plan.  This is what would have occurred if Verizon had given me correct information to begin with.  I am happy with this result.  He also brought quite a few instances concerning the handling of my transfer and upgrade that did not follow proper procedure.  I am also confident that I would not have resolved this without complaining to BBB and or FCC.  Verizon had no interest in solving the problem nor did they show any propensity to keeping a 20 year client.  Even though this last CSR was very polite and helpful, his sole job is to respond to formal Federal and State complaints.  He is required by law to address every complaint and report the reporting agency the agreed upon results - good or bad.  Again, I suggest - If you are not getting the proper customer service, complain to someone outside of Verizon.  Jimmie had not received any complaints registered with Verizon directly and I still have not had any contact with any other management representative that I was told would call.

  • The error about loading data from ODS to master data.

    hi,experts,when I load the data from ODS to master data,there is an error messege:
    " InfoSource 8ZPA_0022 is not defined in the source system.
         Message no. R3005
    Diagnosis
         The InfoSource 8ZPA_0022 specified in the data request, is not defined
         in the source system.
    System response
         The data transfer is terminated.
    Procedure
         In the Administrator Workbench of the Business Information Warehouse,
         update the metadata for this source system, and delete the InfoPackages
         belonging to InfoSources that no longer existing ."
    But,the InfoSource 8ZPA_0022 is not problem,how can I do?thanks.

    Hi,
    as suggested by the message, did you update the meta data by doing a replication of datasources for the source system 'myself'? If not, do so and reactivate the communication structure. Then reload.
    regards
    Siggi

  • How do you adjust Firefox to print what is on email page without adding a 1 inch left marghin to that page as it cuts off some of the right side of the page?

    When I receive an email the page often has a certificate that I would like to print. Using the print function at the top of the page brings up the email as a page as it looks in my web email. When I hit the print button on that page there is always a 1 inch margin added to the printed page cutting off the right side of the desired page to be printed.
    My printer accepts what ever I send it from word, pdf files as they appear on the screen, Why doe Firefox not send the same images as is displayed to the printer?
    This seems to occur whenever the screen shows an image that is almost border to border and not text. When a margin is part of the email message or it is text this doesn't seem to occur.
    HELP Please. I really need to be able to print what is displayed to print the proper document.
    Thanks
    Bob Ferguson
    Sonoran Consulting & Finance, LLC

    Some pages add their own margin to the minimum margin set in Page Setup. First you might reduce the margin here:
    Alt+f (displays the classic File menu) > Page Setup > Margins & Header/Footer tab
    Second, you could try using Shrink to Fit. However, if the image is a background image rather than part of the content of the page, that might not have any effect.

  • 16:9 video sides cut off when exported from After Effects

    When I export a 16:9 video from After Effects, the sides are cut off in the exported clip.  I've tried different export settings and and my composition settings are correct, from what I can tell. Does anyone know why this could be happening?
    Thanks!

    and my composition settings are correct, from what I can tell.
    But are they really? We cannot know, because you don't say anything about your exact render settings and comp settings, which is what is required here. You could be using an unsuitable CoDec or even crop your output inadvertently by using a specific output module setting....
    Mylenium

  • Reading data from a set of tables

    Hi,
    I am writing code to extract the data from several tables in a database. For each table, I am dynamically getting the number of fields or columns in the table and using Resultset obtaining the data in every field for each row. I do this using the getObject() method. Once I get the data for every field, I then want to insert this data into another table and for this I am using setObject() method. I am using these methods because the type of each field will be known only at runtime. After I do this, I do executeUpdate() in order to insert the data into the new table.
    The problem is here -
    At times it just inserts a few rows / records in the new table or it just gets and sets the Object for the first Row/Record in the table and then it freezes.
    Is there any problem with the getObject() and setObject() methods?
    while(rs.next())
    for (int i =1; i <= rsmd.getColumnCount(); i++)
    obj = rs.getObject(i);
    System.out.println("Object received " + obj);
    pstmt.setObject(i,obj);
    System.out.println("Object set : "+ obj);
    pstmt.executeUpdate();
    } // end of while
    Thanks in advance,
    Nik

    I don't know which DBMS/JDBC driver you are using. But there are drivers out there which do not permit two open Statements on the same connection. Maybe that is your problem. Try to close the ResultSet and the SELECT statement before the executeUpdate() of the second statement
    Another thing to check: are you sure the column order for the SELECT and the INSERT is identical (in other words, are you building the INSERT based on the information received from the ResultSet?)
    When it freezes, what do you mean with that? Where exactly does it "freeze"?
    This might be a DB lock which your program is waiting for - some DBMS do a page/table lock when updating, so a different statement could block your statement.
    Thomas

  • ITunes cuts off some of my songs at exactly 3 minutes 6 seconds.

    I have a MacBook Pro running Mountain Lion with up to date updates.  Strangely, the songs which used to play right through, now stop at exactly 3 minutes and 6 seconds.  The songs also cut off when I play then through my iPhone 4 after sycing.
    When I play the songs through VLC Media Player via Finder, they play right through perfectly.
    I wonder whether this is a fault that's come about through one of the Mountain Lion updates recently. 
    I've seen a lot of posts with people's songs being cut off short but none make reference to the exact cut off time of 3 minutes, 6 seconds.
    I have gone into Get Info for the songs in iTunes and specified the ending time of each song to the song's actual length but they still stop at 3 minutes 6 seconds.  Most of my songs play through fine - it's just a bizarre handful.
    I hope there's a workaround and would appreciate a solution.
    thanks for your time.

    Hello arcuspilot,
    I would be concerned too if some of my songs were not playing all the way through in iTunes.  Thank you for all the details you provided.  You have gone through some really good troubleshooting steps already. 
    The next thing I recommend is checking to see if any third-party plug-ins could be causing the problem.  You can find the steps to do that in this article:
    iTunes: Troubleshooting issues with third-party iTunes plug-ins
    http://support.apple.com/kb/TS3430
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Ipod nano 6th generation cuts off some songs while in the shuffle mode

    When I'm listening to music in my playlist (shuffle mode) some of the same songs get cut off short.  If I listen to the same song in the Artist folder, no problem.  Anyone had this issue?

    Is VoiceOver turned on?  See here for more help on how to turn it off if need be.
    http://support.apple.com/kb/HT4317
    B-rock

  • How to find Majority from a set of data

    Dear Oracle Guru's
    I have a set of data something like for example
    Payment Amt which has data like this (45,53,46,45,52,45,63,45,44,45,41,45...)
    I have to find the Majority Payment amt .in my given example it is 45 ... i.e Maximum occurrence.
    I couldnt get it correctly . I thought of AVG , and MEDIAN .... but not exactly correct
    Is there any other method or function which is eluding me
    Kindly help me out of this
    With Warm Regards
    ssr

    May be this ->
    satyaki>
    -- Start Of Virtual Table For Data --
    satyaki>with temp
      2  as
      3    (
      4       select 45 amt from dual
      5       union all
      6       select 53 from dual
      7       union all
      8       select 46 from dual
      9       union all
    10       select 45 from dual
    11       union all
    12       select 52 from dual
    13       union all
    14       select 45 from dual
    15       union all
    16       select 63 from dual
    17       union all
    18       select 45 from dual
    19       union all
    20       select 44 from dual
    21       union all
    22       select 45 from dual
    23       union all
    24       select 41 from dual
    25       union all
    26       select 45 from dual
    27    )
    -- End Of Virtual Table For Data --
    28  select amt,
    29         count(*)
    30  from temp
    31  group by amt
    32  having count(*) = ( 
    33                  select max(count(*))
    34                  from temp
    35                  group by amt
    36                 );
           AMT   COUNT(*)
            45          6
    Elapsed: 00:00:01.05
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • Creating intensity graph from ywo sets of data?

    Hi,
    In my vi, I am getting two data set dependent on each other, i.e. amplitude(y) versus position(x). The data acquisition of x-y data happens in a for loop. This data is transferred outside the loop with index enabled. Outside the loop I want to plot an intensity graph out of these data, while z=amplitude, x=position,y=not important, say index. I don't want simply to transfer the amplitude data outside the loop and connect the 2D array of amplitude to the intensity graph. I want to preserve the position information in the intensity graph. How can I do this?
    Thanks

    Here is a link to a posting that may have been yours also. Just some ideas I had. I hope it can help you get started somewhere.
    J.R. Allen

Maybe you are looking for

  • Aperture 3 and iPhoto web galleries...

    Hi Folks, I have used iPhoto and want to shift to Aperture 3. I have the 30day trial installed and have imported my iPhoto library successfully. iPhoto events, photos and albums are shown in Aperture Projects but I cannot see MobileMe or Facebook alb

  • FlashPaper & Command Line Conversion

    Hello, I need for work purposes to use FlashPaper for ppt pdf swf conversion, but I want to do such things from our J2EE FlashCom webapp (calling run.exec("C:\Program Files.....\flashpaper.exe... ")) as if we were running FlashPaper from command line

  • Parent page or spread?

    I'm fiddeling around with this one and i beg for some help: set currSelection to object reference of item 1 of selection --Script will only be used when text is marked set parentTextFrame to item 1 of (parent text frames of currSelection) set parentP

  • Just upgraded to LP7, can I trash LP6?

    Hi I just upgraded to Logic Pro 7 but Logic Pro 6 along with it's Plug In settings/EXSamples & Sampler Instruments is still on my Mac in the Applications folder, can I trash it? Thanks.

  • Ios 5 update download

    hey..i  have downloaded the ios 5 update for my ipod touch twice now...each time it finishes downloading it gives a timed out error and the download disappears nd i have to start downloading again...plz help me