Manipulate Frequency Data

I'm reading in sound data, getting the FFT and displaying the data - frequency Vs.. Magnitude. I wish to set certain frequency bands to zero.
The output data type following the FFT (PS/PSD VI) is a cluster of 3 elements, fo, df and magnitude (1-D array). I've unbundled the output of the PS/PSD VI by name.
I'm then setting certain elements in the 1D magnitude array to zero.
The problem ...
I can't seem to re-create the cluster of 3 elements, fo, df and magnitude such that I can graph the result.
Help is much appreciated !
Solved!
Go to Solution.

In newer versions of LabVIEW, you can also use the in place element structure. Same difference.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ChangeY2.png ‏3 KB

Similar Messages

  • Flash Charts - How to manipulate the #data# replacement string in XML

    I have a problem with the XML file for a flash chart. I am trying to display a 2dColumn chart of an SQL query with the general form:
    select null link, x as name, sum(y) as value from z group by (x);
    this generates multiple rows, which are displayed as a bar in the chart. So far so good. The problem is, that each row is defined as a block in the chart, but only one name entry is created "value", which is displayed in the legend of the chart.
    I can display the block names on the x-axis of the chart, however, I can't rotate them, so that they don't overlap in the display, which I would be able to do with names. I assume, that the blocks are defined in the #data# replacement string of the XML file. I would like to change the generated XML replacement string from the SQL to make each row selected a different name, and only have one block ("value").
    What would be the easiest way to achieve this?

    user587996,
    There's no way to manipulate the #data# replacement directly, but you could generate your own XML (see Re: Apex changing nulls to zeroes when creating Flash Charts for one way to do it).
    When you say "I can't rotate them, so that they don't overlap in the display" -- have you tried the Labels Rotation chart attribute, or is that not working?
    - Marco

  • Best method for collecting low frequency data

    Hello everyone,
    I'm looking for suggestions on the best way to collect relatively low frequency data (about 1 Hz). I know there are a few different ways to do so in labview such as the DAQ assistant or making DAQ mx and making your own virtual channel. Also there are an abundence of different settings to choose from. I'm using an NI 9215 DAQ card and am collecting voltages. I would be interested to here any opinions on a method for doing so and maybe the settings that they would use.
    The reason I'm asking is because I'm just using the DAQ assistant but I'm really not sure if that's what I want to be using. I feel like there is a better way.
    Thank you all!

    winterfresh11 wrote:
    Is this different from triggering? Because this particular DAQ card can't be triggered.
    There is a big difference between triggering and sample clock.  The trigger tells the DAQ to start acquiring data.  The sample clock tells the DAQ when to take a sample.  You trigger once per acquisition.  The sample clock just keeps on going until the acquisition is complete (either aborted or desired number of samples is acquired).
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to manipulate the date in idoc scripting?

    how can we manipulate date in idoc scripting? How to retrieve the year, month, date from the date? How can we update the year of the particular date in idoc scripting.

    There are a bunch of date / time functions that you can find in chapter 5 of the Idoc Script Reference (the bible for this sort of thing)
    For the sort of things you need to do I would recommend you look at formatDateWithPattern()
    for example to retrieve the year of 'now'
    <$year = formatDateWithPattern(dateCurrent(),"yyyy")$>
    month
    <$month = formatDateWithPattern(dateCurrent(),"MMM")$>
    the patterns for the same rules as Java date formats (unsurprisingly)
    If you want to update the year then I think you need to build the date as a string and the use the parseDate or parseDateWithPattern functions to actually create something that Idoc will recognise as a date object.
    Tim

  • Add the ability to manipulate image data early during the import process

    Following many discussions about the inability to cleanly support aspect ratio in LR, it would be useful to have the ability to interviene in the import process (early) and manipulate the exif data. It is possible to attach a metadata preset during import but presets do not give the ability to change the aspect ratio and cropping tags.
    This feature could have many other uses such as allowing more complex naming schemes, copy location, etc.

    Perhaps your post would be better received in the Lightroom forum? (this is the SDK forum).
    Or perhaps better still, the feedback forum: http://feedback.photoshop.com/photoshop_family/topics/import_actionshttp://feedback.photoshop.com/photoshop_family/topics/new
    SDK-wise: one can easily intervene via plugin and apply whatever transformations pre-import that one could think of...
    Rob

  • Function LabVIEW to acquire high-frequence data

    Hi,
    Actually, in a program created with LV 4.1, we use "AI Sample Channel" in a while loop to acquire data from 3 channels on a PCI-6025E card. But the frequence is limited to about 0.08s. Now, we try to port the program to LV 6.1. My question is what the function in LV we should use to perform acquisions at highest frequence. We found "AI Acquire Waveforms" in LV's standard library, but it implies a lots of modifications and we don't know if it's the fastest method.
    Thanks.

    I would advise you to study the data acquisition examples and the manual of LV.
    By using another way of doing DAQ, together with a slight modification of your program, your are able to at least a 10 or 100 times increase in throughput.
    The trick is that you don't have to re-initialise all channels, sample-rates,gains, etc, etc. when doing DAQ. This is what happens when you use some of the basic DAQ input vi's, but these are not intented for measuring data in a fast repeating way.
    Just let your LabVIEW application sample the 3 channels as a background job.
    Reading out buffers will give you the acquired values, one of the powers of NI-DAQ.
    Patrick de Boevere

  • One-Third Octave Filtering of Low Frequency Data

    I would like to analyze steady state, low frequency (0.1Hz to 80Hz) data that has been aquire over several minutes of acquisition at a rate not exceeding 1000Hz. I am using the Third Octave Filtering Tools in the Signal Processing Toolkit, but it is unclear to me that if I just change the sample rate input into the Third Octave Filtering.vi if that will give me the octave bands that correspond to the ranges that I am interested in. Is the any other way to calculate this? For example, if I wanted to find the band power of an individual octave band, say band 0, which has a center frequency of 1Hz, how would I do that?

    There is a thorough explanation of the algorithms and details of the ANSI S1.11-1986 specification to which the toolkit is built around in the reference manual for the Signal Processing Toolkit. Here is a link to it:
    http://www.ni.com/pdf/manuals/322142a.pdf
    On page 24-4, it explains how to calculate the center frequencies of your 1/3 Octave filter bands.
    Jack Arnold
    Application Engineer
    National Instruments

  • What is the best way to read and manipulate large data in excel files and show them in Sharepoint

    Hi ,
    I have a large excel file that has 700,000 records in it. The excel file has a few columns that change every day.
    What is the best way to read the data form the excel file in fastest and most efficient way.
    2 nd Problem,
    I have one excel file that has many rows each row contain some data that has certain keywords.
    What I want is  to segregate the data of rows into respective sheets(tabs ) in the workbook.
    for example in rows have following data 
    1. Alfa
    2beta
    3 gama
    4beta
    5gama
    6gama
    7alfa
    in excel
    I want there to be 3 tabs now with each of the key words alfa beta and gamma.

    Hi,
    I don't really see any better options for SharePoint. SharePoint use other production called 'Office Web App' to allow users to view/edit Microsoft Office documents (word, excel etc.). But the web version of excel doesn't support that much records as well
    as there's size limitations (probably the default max size is 10MB).
    Regarding second problem, I think you need some custom solutions (like a SharePoint timer job/webpart ) to read and present data.
    However, if you can reduce the excel file records to something near 16k (which is supported rows in web version of excel) then you can use SharePoint Excel service to refresh data automatically in the excel file in SharePoint from some external sources.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • I am unable to delete music from my iPhone5 either directly or via PC.  On the iPhone the tracks disappear but the phone remains full and the data is still visible on the PC.  I am unable to manipulate the data in any way on the PC.

    I am unable to delete music from my iPhone5 either directly or via PC.  On the iPhone the tracks disappear when swiping left and deleting but the phone remains full and the data is still visible on the PC. The music was installed on the phone from the backup of a previous model but with the addition of new tracks I am now unable to add more or update to the next operating system as the phone is full.  On my PC the music is still there and but the neither the delete function or any form of sorting/management on the music files is functional. Other Apple products work OK including previous phone, ipad.ipods etc Any advice/help available to get past this would be appreciated.

    I think it is 7.1.1 - there was another update today which I've uploaded but it didn't make any difference. It's just the music libary on the 5 that's causing me problems.

  • HT1766 Forced to bring PC laptop back to factory condition.  Reloaded Itunes, Iphone app image on ITunes is faded, unable to manipulate.  Right clicking the device & clicking on backup doesn't let me manipulate my data.  How do I fix?

    Prior to the need to strip my laptop, my Itunes/Iphone backup and synch happened with ease.  On the reinstall of Itunes, and the provision of my ID and password, I find that I can see a faded (greyed out) version of my apps, but I can't move them within Itunes, which I usually do to pop them in category folders.  The songs and ring tones on the Iphone do not show in Itunes either.  Any suggestions?
    The phone functions fine by itself.

    Syncing to a new iTunes library or computer will erase your iPhone. Only if you back up your device manually before syncing, you can restore it from that backup again. A manual backup does not include the sync process.
    Here's what to do:
    Disable autosync in iTunes, connect your iPhone to your new computer and right click on it in the device list and choose backup. iTunes will backup your device without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your iPhone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPhone for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread:http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: iTunes: About iOS backups
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device

  • Exit or Enhancement for TCode FB02 to manipulate Due Date

    Hi,
    We would like to change the value on the due date field based on some custom logic in TCode FB02 on the item detail screen (program SAPMF05L screen no 304, SAP version 4.7). Is there any user exit or BADI for this?
    We have tried various user exits but nothing seems to work. We found one BADI, which we thought would work, ADJUST_NET_DAYS, but this is marked for internal use (SAP use) only.
    Please help.
    Thanks.
    John

    Hi Friend,
    Exits,
    F050S001  FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002  FIDCC1: Change IDoc/do not send
    F050S003  FIDCC2: Change IDoc/do not send
    F050S004  FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not sen
    F050S005  FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006  FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007  FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001  Balance Sheet Adjustment
    FARC0002  Additional Checks for Archiving MM Vendor Master Data
    FEDI0001  Function Exits for EDI in FI
    RFAVIS01  Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00  Line item display: Checking of selection conditions
    RFKORIEX  Automatic correspondence
    SAPLF051  Workflow for FI (pre-capture, release for payment)
    Badi's,
    AC_QUANTITY_GET
    AC_QUANTITY_GET
    BADI_ENJ_ALT_ADR
    BADI_ENJ_ALT_ADR
    BADI_F040_SCREEN_600
    BADI_FDCB_SUBBAS01
    BADI_FDCB_SUBBAS02
    BADI_FDCB_SUBBAS03
    BADI_FDCB_SUBBAS04
    BADI_FDCB_SUBBAS05
    BADI_MIRO_SPLT_ADD
    BADI_PRKNG_NO_UPDATE
    BADI_TAX1_XTXIT_SET
    F050S008
    FBAS_CIN_LTAX1F02
    FBAS_CIN_MF05AFA0
    FI_AUTHORITY_ITEM
    FI_DOC_DISP_LI
    FI_GET_INV_PYMT_AMT
    FI_HEADER_SUB_1300
    FI_PAYREF_BADI_010
    FI_TRANS_DATE_DERIVE
    INVOIC_FI_INBOUND
    RFESR000_BADI_001
    Enhancement Spot
    AC_QUANTITY_GET                Transfer of Quantities to Accounting - Customer Exit
    BADI_ENJ_ALT_ADR               Go to alternative vendor/customer data
    BADI_TAX1_XTXIT_SET
    FI_DOC_DISP_LI                 Diversion to Document Items (FB03)
    Thanks,
    santhosh
    Edited by: santhosh kumar on Dec 23, 2010 8:02 AM

  • Manipulate xml data

    From a XML file, I can retrieve the content and display in
    one single column. This part works perfectly!
    But when it comes to seperate my xml data in 2 columns... no
    luck.
    Can anyone guide me and split my items in a new row when 10
    items are achieved?

    Hi Detonate
    Here it is:
    GET IT
    HERE
    I have modified some part of each functions at the bottom. So
    change tehm all. Just those at the bottom. I also change the
    "makeSubMenu" function at the top of your code. In this function
    the parameters is now "node" and no more "node.childNodes". To long
    to explain, but it works perfectly now. When I change the code
    before I didn't thought that you wiil need the menu type. That is
    the reson why I need to keep the all the node not just the
    node.childNodes. Well at the bottom, here is what I did:
    1- In the "attachSubMenuItem" the is a button id for each
    clip. Use to now wich subment have been clicked
    2- I still use the "setSubmenuEvents" function even if the is
    only one event in. It's a good way to work in case of you'd like to
    add other events.
    3- I had change a bit of your code in the
    "levelTwoEmpty["item"+i].onRelease" now named as "clickEventSub".
    Not just an event, but a function. Code inside has been modify to
    works with the new code. Also I use the switch case instead of the
    if else if else etc. In this case It<s a good way to works. Also
    actually the code for the id web or img is the same, so instead of
    having 2 different if, I put tehm in the same, actually the default
    value in the switch case.
    Hope that can help.

  • When I upload large streams of high frequency data the x axis scales incorrectly

    I have data at 5 kHz for 20 seconds. when I upload this data into the report tab the x axis scales incorrectly and cuts off either the head or tail of the data. The x axis always rounds to the nearest second while i need it to start with the data. Any ideas?

    Hi wpruitt3,
    Take a look at this knowledge base article.
    Best,
    Kristen

  • Acquire/manipulate audio data from internet stream

    I want to acquire the audio data from an audio stream (i.e. pandora, youtube, etc.) from the internet.  If I can get this data and be able to play it/graph it/etc in Labview, I will be pleased.  However, I'm not sure if this is even possible not knowing the details behind how packets are built and transmitted over the internet. 
    The closest I've come is using the acquire_sound.vi and taking the data from the sound card; albeit, it's very noisy. 
    For fun though, I'd like to do something directly from the audio stream itself (perhaps building a dll?) to gain a better understanding and experience. 
    Any advice is greatly appreciated!

    Dnor - 
    As far as I am aware there is a specific data time for audio streaming online, and it's something specific you would likely need to know on a low level to communicate/copy to.  Although it wouldn't be real-time, you can run a Windows audio recording program like TotalRecorder which should save and convert the audio output to .wav.  Then run a LabVIEW vi to read the wave file, which you could graph.  There is a KnowledgeBase on setting up the read from .wav file here if you'd like to go that route:  http://digital.ni.com/public.nsf/allkb/1BE60DBBFA22ACC186256DFB000B8464.  
    Regards,
    Ben N.
    Applications Engineering
    ni.com/support

  • Help required to manipulate the data without exporting the output twice

    I am running a script which export the data to CSV file and I re-import the same file to remove the duplicate rows and them export them.
    Need to clean the up the first file after the script execution
    Is it possible to store the data in an object without export and import for manipulating the data
    &{foreach($role in Get-VIRole){
        Get-VIPrivilege -Role $role -ErrorAction SilentlyContinue |
        Select @{N="Role";E={$role.Name}},@{N="Assigned Privileges";E={$_.ID}}
    }} | Export-Csv C:\Scripts\Permission.CSV -NoTypeInformation -UseCulture 
    &{foreach($row in (Import-Csv C:\Scripts\Permission.CSV -UseCulture)){   
            if($prevRole -and $row.Role -eq $prevRole){
                $role = ""
            Else{
                $role = $prevRole = $row.Role
            New-Object PSObject -Property @{
                Role = $role
               "Assigned privileges" = $row."Assigned Privileges"
        }} | Select "Role","Assigned Privileges" | Export-CSV

    If I understand the question correctly, I think this might work.
    $ht = @{}
    foreach($role in Get-VIRole){
    Get-VIPrivilege -Role $role -ErrorAction SilentlyContinue |
    foreach { $ht[$role.name] = $_.ID }
    $ht.GetEnumerator() |
    foreach {
    New-Object PSObject -Property @{Role=$_.name;'Assigned Privileges' = $_.value}
    } | export-csv
    That uses a hash table to de-dupe the role/assignment pairs and then builds the objects for export from the hash table.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Maybe you are looking for