What is an effective way to way logarithmic bin data with a constant number of points per decade?

Hi all

I would like to clean a logarithmic field of PSD in binning and averaging so that I have a constant number of points per decade (say 10, just for the sake of argument). Generally, means simpler and cleaner, I can think about getting this is research in the table entering all points between the frequencies A and B, with an average of these points and assigning a frequency (A + B) / 2 of the new average bin. However, I cannot find how to access frequency information, I need to achieve this. To be more clear, I can imagine if I had two tables, one who holds the frequencies calculated from my stream of incoming data, and the other which held and the amplitude of each corresponding frequency, that I might look for clues in the frequency table with values between A and B, then the average of the values in the table of amplitude which lie between the indices back put them in a new table with a new array of corresponding frequency. The process is a little more general that just on average every ten points, to say, as the number of points per decade continues to grow. My main obstacle at the moment, however, is that the amplitudes of the voltage are a set of values that receive through the operation of PSD, while the part of the frequency of the wave seems to be a DBL continues single-valued. I hope I've explained that well enough for someone to shed some light on my problem. Also, if anyone has a suggestion for a better way to approach the problem please let me know - there must be a pretty simple answer there, but it's deceiving me right now. Thanks in advance for the help.

-Alex

Hello

If I get you right. you have:

a table with the frequencies

a table with the corresponding values of amplitude

Then you want to merge parts of the data by averaging on the specific frequency ranges. I think that there is no VI 1 solution, you will need to write this on your own ():

I start to get the min/max of frequencies and then interpolate a scale from your needs (like logarythmic) mounting with the quantity of bins you want. This should be an array again.

Next step is to browse the frequency table, check (the first and) the last value in the location wanted (stop the loop, return the index). This should end up with an array of index. [I guess that's where you can save some computation time most by smart]

Finally, use these indices to browse the amplitude values and make your average. Should return an array of the length of your array of locations.

Ground in color fantasies and enjoy.

Just what you intend to do?

Tags: NI Software

Similar Questions

  • What is an effective way to adjust the position of all the clips on the timeline

    In one of my projects, I leave cuts on a timeline. And it seems that the position of a few clips has been accidentally changes. I need to have the same position for all the clips. Is there a way to define the position of all the clips in the world - what is the best way to tacke this? Thanks in advance. -renized

    Press A key for the track Selection tool.  Click the first clip that you want to settle and every item after that will be also selected.  You can move them as a group.

    If you need clips on more than a selected track, hold CTRL when you click.

  • The most effective way to log data and read simultaneously (DAQmx, PDM) high data rates

    Hello
     
    I want to acquire the data of several Modules cDAQ using several chassis to
    high data rates (100 k samples per second if possible). Let's say the measurement time is 10 minutes and we got a large number of channels (40 for example). The measured data is written to a PDM file. I guess, the memory or the HARD disk speed is the limits. For the user, there must be a possibility to view the selection of channels in a graph during the measurement.

    My question: what is the best and most effective way to save and read data at the same time?

    First of all, I use an architecture of producer-consumer and I don't want to write and display the data in the same loop. I expect two possibilities:

    [1] to use the 'DAQmx configure logging.vi' with the operation 'journal and read' to write the data to a PDM file. To display the data in a second loop, I would create a DVR samples documented and 'sent' the DVR for the second loop, where the data will be displayed in a graph (data value reference). This method has the disadvantage that the data of all channels is copied into memory. Correct me if I'm wrong.

    [2] use 'DAQmx configure logging.vi', but only with the "journal" operation to write the data to a PDM file. To view the selected data, I had read a number of samples of the TDMS file in the second loop (I'm currently writing the TDMS file). In this case, I have only one copy data from the selected channels (not), but there will be more HARD drive accesses necessary.

    What is the most effective and efficient solution in this case?

    Are there ways to connect and read data with high frequencies of sampling?

    Thank you for your help.

    You say that the measurement time is 10 minutes. If you have 40 channels and you enjoy all CHs at 100 kHz, it is quite a number of values.

    In this case, I always try to approach under the conditions of use. If a measure is only 10 minutes, I just connect all PDM data and create a graphic module that could be in the same loop of consumers where connect you the data. You can always work on the raw data files big offline afterwards, the extraction of all the information you need (have a look at the product called NI DIAdem: http://www.ni.com/diadem/)

    The main issue is that the user needs to see in the graph (or perhaps a chart can be useful too). Lets say that the graph is 1024 pixels wide. It makes no sense to show multiple data to 1024 points, Yes? Every second will produce you 100 data points k per channel. What is the useful information, which should see your username? It depends on the application. In similar cases, I usually use some kind of data reduction method: I use a moving average (Point by point Mean.VI for example) with a size of the interval of 100. This way you get 100 data points of 1000 per channel every second. If you feed your graph every second with these average values, it will be able to data points in 1024 of the store (as a default) by channel (curve), which is a little more than 10 minutes, so that the user will see the entire measurement.

    So it depends on the frequency at which you send data to the consumer. For example, collect you values 1024 by iteration of the producer and send it to the consumer. Here you can make a normal means calc or a bearing (according to your needs) and he draw a graphic. This way your chart will display only the values of the last 10 seconds...

    Once I programmed some kind of module where I use a chart and not a graph, and the user can specify the interval of the absolute timestamp that is traced. If the data size is larger than the size of the chart in pixels, the module performs an average calculation in order to reduce the number of data points. Of course, if you need to see the raw data, you can specify an interval that is small. It all depends on how you program zoom functions, etc... In my case I hade a rate of 1 Hz, so I just kept all data in RAM limiting the berries to keep 24 hours of data, so that technicians could monitor the system. In your case, given the enormous amount of data, only a file read/write approach can work, if you really need access to all of the RAW data on the fly. But I hope that the values of working capital means will be enough?

  • What is the best way to sync contacts with a host of webdav?

    I use Thunderbird and Contacts Android as of client applications with an owncloud 8 hosted remotely. I have activated the application Contacts on Owncloud and now I want to sync the contacts between these systems. What is the best way to do it?

    I try to get sorted first Thunderbird. I tried Addressbooks Synchronizer, but currently, it gives me a message telling me that my credentials are wrong or is sitting silently, do nothing. I am aware that it is a file synchronization, the method of synchronization not saved, so it is not ideal, in any case.

    Is there a better, good timing, method I can use? I refuse to the thing that he is an unreasonable request or that no one asked before me, but I can't seem to find the answer.

    Thanks, Martin

    WebDAV my initial reaction was sogo connector.
    These guys recommend the same http://kb.mozillazine.org/Sharing_address_books

    Here http://www.sogo.nu/english/downloads/frontends.html

  • The most effective way to import data from Excel in InDesign?

    Hi all

    I'm designing for a prospectus of college which includes 400 + courses list. For the moment, these lists exist as a huge Excel sheet with fields such as course type, course code, description, etc.

    I am familiar with Excel data import in InDesign and the tables/creation of table styles and other formatting, but the problem I have is that the data are in several columns by courses in the Excel worksheet, but will be in a single column per course with several lines in the InDesign document. I can't find a way to easily convert these columns in lines.

    Someone can help me with an effective way to get the data in the page layout without laborious copying and pasting or formatting?

    Thanks in advance!

    Hello

    In excellent paste / transpose

  • What is the best way to encrypt/decrypt a credit card number?

    We want to store credit card numbers in the DB (10 g R2). We should be able to encrypt, decrypt and store.

    What is the best way to do it?

    Is there a pkg Oracle for this?

    The two are the only extra cost Enterprise Edition options:

    Advanced Security (for TDE)
    Data Vault

    See page 2 of the technology Oracle 10 February 2011 price list

  • What is the best way to write freehand with InDesign?

    I have a Wacom and want to put some writing on my document - what is the best way to do this?

    Try a pencil or pen tools or do it in Photoshop and place.

    Bob

  • What is an effective way to handle this

    Scenario 1

    a. If the target table has any record higher then a specific date for a ID given (SELECT INTO)

    b. If count > 0 then

    Delete all lines using the same where clause

    further treatment

    end if

    Scenario 2

    a. delete a line if the condition in which clause matches (even where clause that we use in above select statement)

    b. If sql % rowcount > 0 then

    perform another treatment

    end if

    Scenario 1 still runs a SELECT statement but REMOVE will be executed conditionally

    Scenario 2 run DELETE statement always

    I wonder which of the scenarios above is more effective than the other. My table has about 200 M lines

    Thank you

    Scenario 1

    one requires of e/s

    b requires the same IO, as Oracle will answer where new clause

    So, if count > 0

    will do everything twice.

    If count = 0, regardless of the second statement is not executed because it would cost IO anyway.

    Scenario 2 is the most effective.

    -----------

    Sybrand Bakker

    Senior Oracle DBA

  • What is the best way to read data series high speed?

    My goal is to read 14 bytes of binary data of an instrument on the serial RS232 (460800 baud) to 2000 Hz. I didn't get a card series high speed again so I am currently using the standard serial port (115200 baud) and reading at 400 Hz I have configure the port series, empty the buffer, and then enter a while loop to read incoming data. I have a visa 14 bytes read by interation seconds 0.0025 (400 Hz). However it seems that the sensor is spewing data faster that labview can read because the bytes are accumilating in the port. After some time the buffer fills and the program fails.

    Is there a better way to do it?

    Would it not be better to read the larger quantities of data less often, for example as 1400 bytes every 0.25 seconds?

    Thank you

    Hello

    I think it would be good to read several points in a loop, and keep the loop less than 1000 Hz.  I found in the past, have something to run faster than about 10ms tends to fall down when windows loses interest in the process.  So yes, choose the slower you can get away with reading samples - for example to read every 10ms and read 20 samples every time. You should be able to configure your serial port in order to buffer the samples that I guess.

    Also and the issue of windows - if you use a loop "timed" instead of a while loop, so you can force it to an integer value including the ms.  You can also assign a dedicated processor and set the priority to 100, which means that it is less likely to elapse and decide to scan your hard drive for viruses or consult your account e-mail or what he does when he's bored with your program.  Also it "' tells you if the loop has taken longer that planned to run - you can use this to help iron out bugs etc. - report and/or to the user if you missed a few samples.

    http://zone.NI.com/reference/en-XX/help/371361H-01/Glang/timed_loop/

    JP

  • What is the right way to collect data XY?

    How our works of Labview code is very poor. We want to do the following: initialize a DAC and then in a loop: 1. read from an ADC or a counter. Trace playback as a point on a XY Chart (DAC setting like x, ADC read as y) 2. Assign the CAD a new value 3. Wait a while for the equipment to balance 4. Read the ADC again, etc. I don't know a good way to keep the data and send it to the XY graph. Our former program initialized a table 2D, with a column being the ramp CAD and the other holding all zeros. Then, as the data have been collected, zeros have been updated with the data. This method is not good, because the graph has always shown a flat curve until all the data, instead of scaling properly the limits of actual data. Is there a tutorial or an example to help with this concept? I basically understand the help of error and flow control task, but I don't have a knowledge of the shift registers and initialization.

    Rgann wrote:
    Our former program initialized a table 2D, with a column being the ramp CAD and the other holding all zeros.

    You must initialize the array 2D with the ramp for x and the line is that contains all the NaN. Any point that contains a NaN value will not appear on the graph.

    Usually, I prefer to keep the range constant x instead of with each new point scale, but if you want to keep the x scale tight, you can update the min and max range using nodes of property according to the current insert point.

    You already use a shift register (or feedback node) to contain your table, so this should be OK, as is.

    Also remember that if the ramp is linearly spaced, you can use a waveform graph. You just need to set 0 x and dx accordingly. (A xy chart is necessary only if the points are not evenly spaced in x.)

  • I lost my install cd is a way to download lightroom with the serial number or my user name?

    I lost my cd in our move and I can't find it anywhere, I bought a laptop and I wanted to download it to the mobile edition. is it possible to download it with the CD?

    Once you have your serial number, you can reinstall the latest update for the version that you have.

    See the link below for info.

    Update of Lightroom

  • Just ordered new MacBook Pro. What is the best way to transfer Photoshop, InDesign

    I just ordered new MacBook Pro. I need to transfer files and applications from my old to my new MacBook.  What is the best way to do this with the least time involved? I have our serial numbers for Photoshop and InDesign available group license.

    Thank you

    Please see CS5 download products

    Hope that helps!

  • The best way to migrate data... Opinion please...

    Guys,

    I'm working on a solution for a customer who needs to move in a new SAN SAN data.

    Existing SAN is attached to the ESX server farm and is very close to the location of a new SAN. In your opinion, what is the best way to move data without interruption to VM ESX farm?

    I know we can do SAN replication, but right now, I don't know if the SAN is still the same provider.

    I know we can do Storage VMotion. In this case, he should present the new SAN somehow for the existing ESX servers.

    I know that we can probably use the converter to migrate virtual machines. This can take some time because we would go over WAN.

    What are your thoughts?

    Thanks in advance for your comments!

    With 4 TB of data, I wouldn't pass on the replication SAN or WAN solution of optimization of the property, and it can fly quickly with 4 TB of data that you use storage vmotion which basically depends on how your WAN links are, if if its quick to go for it.  There is not another free solution then this but if you can manage somehow to make backup of system state of all virtual machines, and then you can ship these backup data to remote locations and import, save back to clusters.  You have to do the actual calculation how fast you can Transfer data from the siteA-> siteB Mbps?  This will give you a clearer picture of how long it will take and picture plan here.  I could do that during maintenance or weekend windows that are the least impact to users and systems.

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

    Kind regards

    Stefan Nguyen

    VMware vExpert 2009

    iGeek Systems Inc.

    VMware, Citrix, Microsoft Consultant

  • The best way to pass data when browsing

    By taking the case where an action method is called and he chooses navigate to another page.

    What is the best way to pass data from bean of old media to the new (probably in the execution of the action method)? I am currently using beans of spring session scope as the support of beans.

    Take a look at:

    It goes between your commandLink or commandButton control:



  • What is the best way to get a SVG file generated from After Effects?

    What is the best way to get a SVG file generated from After Effects?

    Is there a script to do this? I use the SVG file directly in my work. I did research online, but find that it has no native support of EI to achieve.

    I found some scripts online, but they convert output Adobe AE to the JSON file. Is there something similar available for the SVG file?

    Thank you

    AE makes pixels not vectors, so it's not possible.

Maybe you are looking for

  • Save in folder on the desktop?

    I have several updated files in place on my desk.  But when I go to save a file (for example, a picture of a Web site) to a folder on the desktop, I only get the option to save the image on the desktop, not in folders located on the desktop.  I use C

  • 7203ss dv7 ENVY: ENVY dv7 7203ss los Necesito UN driver of the huella y otros mas few

    Hola muy buen dia el Necesito UN driver of the huella y me sirva para el operating system windows 7 y TR pudiesen los demas pilot tambien! Gracias

  • El Capitan stop built into the optical drive to work?

    Hi people I hear and read that El Capitan stop construction in the optical drive to work? I don't know if it's true, and other bugs. I remember when I upgraded to Yosemite this happened to my mac mini, and the super drive was not recognized. However,

  • Even with valid proof, Microsoft does not honor the warranty on mice...

    A few years ago, I bought a Microsoft Intellimouse Optical mouse pack with a computer/electronics provider online. Earlier this year, one of the left button of the mouse started to act up, but since it is intermittent, I decided to just deal with it

  • Error code 80080005 when checking for updates

    Original title: I tried the automatic correction of Microsoft, but it still doesn't work.  I also tried to run a malware free.  I have not changed the settings on my computer.  Help, please!  I have Vista and my laptop is about 3 years old.