Cwt scale vs. frequency

Hi!
I'm using the CWT of the Advanced Signal Processing Toolkit to analyse a signal from accelerometers.
Using the SYM8 wavelet over about 2000 scales gives me the resulting scalogram. FFT of the mother wavelet shows me that the center frequency(fc) of this wavelet is 0,75.
My region of interest is between 0 and 500Hz.. 
When I calculate the corresponding pseudo frequencies(fp) with this center frequency and the half sampling rate(fs) of 25600 I get: 
0-500Hz results in Scale from Max to 25!
Compared wih the spectogram I know that my information is in the region between Scale 1100 and Max.Scale....
Can somebody tell my where my mistake is hiding?
I calculated: fp = fc/a *fs/2
Thank you... Steve 

Hi!
Thank you for your reply.
I'm using Labview 8.5 at my University (TU Graz). I think it's the SPT 7.0 but I'm not shure.
Attached my input signal as a txt file. I used the data as waveform file.
Additional I added the STFT picture and the CWT Scalogram. As you can see the frequency range 0-500Hz is somewhere between Scale 1100
and ScaleMax. 
lg Steve 
Attachments:
stft.jpg ‏172 KB
cwt.jpg ‏172 KB
timesignal.txt ‏1625 KB

Similar Messages

  • How to make GNOME power management auto scale cpu frequency?

    Hello everyone, I installed Archlinux on my new Toshiba U400/H00, everything works nicely, however, I need to manually scale cpu frequency when on AC/Battery, is there a way to make Gnome automatically scale it?
    Thanks a lot!

    Maybe just go down to acpid level and do it independently of DE devs idiosyncrasies?
    For me, the following code in /etc/acpi/handler.sh does the job:
    ac_adapter)
    case "$2" in
    ACAD)
    case "$4" in
    00000000)
    echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
    00000001)
    echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo 499 > /proc/sys/vm/dirty_writeback_centisecs
    esac
    *) logger "ACPI action undefined: $2" ;;
    esac
    I believe the original code there tried to set fixed clockspeeds for these situations, but I find changing governor much more flexible.
    Edit: there were some ACPI-related bugs during 2.6.26-27 development cycle, it may happen that you won't get any ACPI events playing with power source. 2.6.28 cured all ACPI problems for me, but YMMV.
    Last edited by briest (2008-12-30 19:30:05)

  • TFA STFT Spectrogram: log scale on frequency axis

    Hi,
    I'm trying to get my spectrogram to display a logarithmic scale on the frequency axis, but whenever I go to the graph properties->y-axis, turn off autoscaling, check the log scale box, hit okay, and then run the vi, I still have a linear scale.  I tried creating a property node for the spectrogram's y-axis and setting the scale to logarithmic, but this doesn't work either.  Does anyone have any suggestions? 
    Thanks a lot,
    Chris K.
    Attachments:
    Front Panel.png ‏267 KB

    log (0), log (1), log (2), log(3), ... ?
    The Intensity graph uses the array indices (0,1,2,3,...) for the axis, not the values of Y.  If your frequencies are 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, ..., you would need an array with >=1001 elements to get the axis values where you wanted them and it would still plot the axis linearly.  You can certainly put the Z-values for frequency 10 in the 4th column of the array.  To get the labels to display the Y-axis frequencies might require overlaying an X-Y graph with logarithmic mapping of the Y-axis on the Intensity graph.  By making the appropriate parts transparent, you should be able to get the Y-axis display you want.  Tedious, but probably not too difficult.
    Lynn

  • 17" unibody MacBook Pro Flickering -Explanation

    Like many other users here I have been experiencing flickering on my new 17" MacBook Pro when the display is set to low brightness settings. In my case the screen flickers whether running off battery or off the wall, and whether the battery is full or not. However, after conducting some tests I believe that all instances of this screen flicker stem from the same root problem.
    My screen flickers more at certain times than at others. The first thing I did was try to isolate what made the flickering more severe. In my case, this is what I found
    1)whenever the cpu is under heavy load
    2)whenever any peripherals, especially bus-powered ones, are connected to the usb or firewire ports
    3)whenever there is heavy disk activity on the internal HDD
    4)when connecting or disconnecting the magsafe (screen flickers violently for 2-3 seconds!)
    Bus-powered peripherals draw power from the laptop in order to run. The more devices I have hooked up to my machine, the more the screen flickers- in the case of a usb hub or daisy chained firewire, adding more devices does not draw more voltage (because it is all parallel) but it certainly draws more current. This is in effect robbing the LCD of amperage, causing the flicker.
    CPU load works the same way. Intel has a technology called SpeedStep that they've implemented on all their mobile CPU's. The way SpeedStep works is that it dynamically scales the frequency of your CPU so that if you aren't demanding much of the system, the CPU is downclocked to reduce power draw and save you precious battery life. As you make increasing heavy cpu load requests, the SpeedStep throttles the CPU upwards which increases the voltage it draws. We're only talking about a difference of about .75 volts, but it seems that is enough to produce more violent flicker as the LCD becomes starved for power.
    HDD activity is the same thing. The servos that move the head and spin the disk all draw power when they are moving. Although I haven't tried it yet, some users here have reported worse flickering when loading/reading from the optical drive, which again suggests a power issue. Obviously disconnecting and reconnecting the magsafe cycles the computer from battery to AC, which is clearly power related (although I am not sure exactly how yet).
    Some component is failing (a switched or linear regulator or diode most likely) that is making our machines unable to handle any current draw whatsoever. Because they cannot keep up with the demand for amperage, the voltage in the machine fluctuates and drops below the proper level, producing the flicker.
    I'm not sure exactly why the flickering is only visible on low brightness settings; there could be a number of explanations, including the fact that the flickering is subtle enough that the difference between max brightness and slightly-less-than-max brightness is not detectable by the eye, whereas the difference between low brightness and lower brightness is. I have a theory that is pure speculation on my part, but I'll include it here in case anyone more knowledgeable about displays can comment on its likelihood. As I understand it, the LED's rapidly oscillate between on/off states to produce the illusion of low brightness. In order to trick the "refresh rate of our eyes," these oscillations must be very precise. Perhaps the fluctuating voltage levels in the machine are throwing off the clock controlling these oscillations.
    In any case, I would guess that the flickering screen is merely a symptom of a much deeper systemic problem effecting every module in the machine. If dirty power is running around everywhere, this is not good. This would effect every component down the power rail. I would not wait to exchange these machines.
    The good news is that Apple Engineering is aware of this problem and are anxious to get affected machines back to isolate exactly what is going wrong. I wouldn't bother going to the genius bar as they have no idea what is going on and generally have no grasp of the architecture of these machines anyway- if it's not a problem they can resolve in the GUI, they are completely useless. Just call Apple Care and escalate it past the subordinates who will tell you that you just need to reset the PRAM or wait for a firmware update (all lies btw). Once you get to someone at a hight level they will give you the straight dope and set up a replacement.
    Hope this was helpful!
    Message was edited by: JordanBartee
    Message was edited by: JordanBartee

    Interesting theory, but I'm running a powered USB hub, so I'm not drawing down the USB ports and connecting/disconnecting magsafe also doesn't trigger the problem. I do have many FW drives daisy-chained, but none are bus powered.
    It's not a backlight issue - when it's not affecting the entire screen, it looks like a GUI redraw problem. The whole screen flash could be the backlight going off/on, but it doesn't look like it to me.
    I've seen the flash and flicker at various screen brightnesses, so it doesn't seem related to low brightness. I spent a day or more importing CDs, which although isn't a super high cpu load, it was enough to bring the temps up. Internal HD was cranking away, too, and I had no symptoms of the problem.
    When I got to my machine this morning, and woke the display [only], I got both the full screen flash and the partial redraw flash/flicker [lower 1/4 or so of screen].
    Over the last couple of days, waking from sleep seemed to trigger the problem. The resolution seems to be a restart and/or powerdown, then restart. Though I've seen the problem on both GPU's, it seems more prevalent on the 9600M, but I don't have any data on it yet.
    I've started a log for tracking when the problem occurs, under what conditions (including last app used), and what I did to attempt to "fix" the problem.

  • How can capture audio with labview

        I desired to make a audio equalizer vi using lab view. Audio will be taken from microphone. How can I capture sound from microphone with labview?

    See the example "Sound Card AutoPower Spectrum" This allows you to sample from an input device through your sound card, and take a spectrum.  you should be able to bin the spectrum by frequency bands, and show the histogram of frequencies.  You probably can even selectively resample and scale the frequencies, mix the signal and output the new sounds but I hav not tried this (I am not an audiophile so this is beyond my scope of expertise)  Good luck  ,
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • [solved] acpi - cannot load module

    Hi,
    I know that I'am not the only one with this problem, but I haven't found a clear solution yet. After doing a clean install with Gimmick, I tried to scale cpu-frequency. Thought I would follow the instructions in the French wiki page: http://wiki.archlinuxfr.org/doku.php?id=acpi_powernowd
    I have installed acpi and powernow, of course. I have an AMB Sempron 2800+ processor, which supports powernow-k8. However, when I try "modprobe acpi", I receive this message:
    FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.16-ARCH/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device
    But the file manager tells me that this module might be found under exactly this path ...
    Searching around I have found that someone apparently solved this problem by recompiling the kernel without SMP support. I am afraid that this is somewhat beyond my reach (i don't even a have clue what SMP is). Please let know if there is an easier way to get things done.
    Best wishes, t.

    Ooops - yes, I see ... Admittedly, my French isn't the best 
    It is running fine now with powernow-k8, cpufreq_userspace and powernowd.
    Thanks for the hint, t.

  • How can I scale a graph for frequency instead of time or number of points?

    Hi All - I have an application where I am reading the trace of a carrier from a spectrum analyzer. I have graphed this in the past with reading points on the trace which give me frequency and power. However that is very slow compared to just reading the trace off the analyzer which is returned as an array of 1001 power points in dBm. Because it is returned in dBm the Y scale of the graph is fine. However the X scale reads from 0 to 1000 which are he numvber of points. Is there a way to change the X scale or reflect the frequency of the data? For example I have the center frequency and the span setting from the analyzer and from that I can determine the start and stop frequency. However when I apply the minimum and maximum ranges for the X scale the displayed result changes. I would just like a way to change the X scale to what I want w/o the display being affected. Is this possible? Is there another solution that does not use the standard graphs in Labview that makes this possible? Thanks in advance for any help.
    Troy

    If you just got an array of values, you can use the property nodes XScale.multipier and XScale.Offset to scale your graph.
    Your multiplier usually is the frequency bin distance (1/capture-length or here the span/1000) , and offset mostly zero (if your first bin represents the DC part of the DFT, here center -span/2)
    Have you searched the NI drivers if you get a ready made driver of your SA? Some already read the frequency domain plots as a waveform including all scaling ...
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • HOW TO SCALE THE CORRECT FREQUENCY AXIS?

    hello guys
    im trying to calculate the real cepstrum of a short speech signal for time/pitch scaling. cepstrum=ifft[log(abs ((fft))].
    my problem is 1) how can i correctly show the frequency axis (x-axis) of the fft result in Hz and not in time (samples) and then  2) the result of the cepstrum in time?
    i cant seem to be able to do that as you can see from my program below.
    can anybody help me please?
    kind regards
    alex
    p.s. the zip file contains my program with a sample sound file that can be processed with
    Attachments:
    TD-PSOLA ALGO.vi.zip ‏494 KB

    Yes I used the 512 samples.
    You can see the DF if you set the graph to a plot-style, then zoom in to a 0-500 Hz scale then you will see that at every 83 Hz a point.
     The reason your maximum is not half dF is that you have 512 samples, so 256 frequency bins times 86 =22016 BUT you start at zero so the max is a little lower
    255*86.13 is 21963 Hz
    About CSepstrum I don't know, I hardly ever used IFFT.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • What is the default payroll frequency for Pay Scale Structure ?

    Hi,
    What is the default payroll frequency for Pay Scale Structure? How is it attached to Pay Scale Structure?
    Saurabh Garg

    Hi
    The default frequency for any payroll run is 'monthly', which is subjected to manipulation according to ones requirements
    Regards
    Sudhir.

  • CWT -time-scale-amplitude

    Hi!
    For someone with more wavelet/labview experience, this would be easy job .... how to present the scale-amplitude-time on waterfall diagram (See example - 3D Waterfall Plot to view Noise over time).
    The example is given by the LabView's example - Breakdown Point Detection and applied on the regular signal (sine - 50Hz, amplitude +1/-1). From the literature, I should get the same graph ?!
    Subquestion is maybe, how to convert 2D array to 1D array (scale/amplitude) and combine them with the time array ?! 
    Thank you!
    Attachments:
    3d_waterfall_noise_sine.vi ‏138 KB

    Hi Vasco,
    I'm not completely sure what is the issue with the graph. Do you think that the CWT is incorrect, or that the actual graph is not showing right data?
    Perhaps you might want to check the numbers through an independent calculations, if they don't seem right to you. I'm attaching a screen, that is quite similar to the one in your book.
    Best regards,
    Jano
    Attachments:
    CWT.png ‏84 KB

  • 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

  • I am inputting my guitar tunes(.wav files) and I am trying to do an FFT on this. Wen I do, the FFT signals are very small and are not on the right frequency scale. However I am able to simulate a sine wave and get an accurate FFT plotted as a cluster.

    My .wav file has about 8100 samples and has a sample rate of 11050. I pass the samples into FFT. The output I devide by the size of the array(8100??). This I seperate into 'real' and 'polar'. The 'real' I use to plot. My plot has a starting value of '0' on the X axis. My problem is with the other value for the cluster, i.e; To plot this I need 1. 'real' part of the FFT output. 2. the 'x' axis starting value(0) and 3. how do i get this value? I tried deviding the sampling rate by the size of the samples, but
    the FFT plot is really wrong. Anybody has an example vi to convert .wav files to FFT? Thanks alot!!!

    Mark! Thanks again for the extended answer!!! I have learned alot from that example you gave me. Here is a simple VI which I am trying to plot as an FFT plot. I have also included a 0.5 sec .WAV file. If you have the time, I will appreciate it if you can tell me how to plot the FFT. This vi is very simple. You can open the included .wav file on the included VI, and you will understand why I am unable to plot an FFT. I am doing this to process my music. Appreciate it!!!
    Attachments:
    fft_test.vi ‏85 KB
    guitar.wav ‏8 KB

  • Continuous Wavelet Transforma​tion frequency output in columns and rows?

    Hi
    I´m trying to understand the output of the Continuous Wavelet Transformation Vi. I am only a beginner in wavelet, so is viewing from a Fourier Transformation method with moving windows. For example if I have 8 points say recorded with 1Hz = 8sec of data and run it thought the CWT with 8 scales, I get 8x8 array of data. So as far as I understand I get the frequencies of (starting with column 0 going to 7): 1Hz, 0,5Hz, 1/3Hz, 1/4Hz, 1/5Hz, 1/6Hz, 1/7Hz and 1/8Hz. Is this correct so far?
    What I don´t get is how it is possible to make 8 (rows) of wavelet correlations on the columns from 1-7, when there is for example only one possibility to make correlation of 1/8Hz stretched wavelet, because the wavelet must be stretched over 8points (7th column). In picture below is illustration of wavelet where for the largest scale 8 (=lowest frequency) here 1/8Hz there is only 1 value for every 8 values for the smallest scale 1 (=highest frequency) here 1Hz.  
    I really hope someone can help me!
    Best Regards
    Jesper

    Your current code can be replaced by an autoindexing FOR loop, you only need once instance of the "add array elements" operation. Easiest would be to acquire it as a 1D array with a constant number of samples then use "reshape array" to create a 2D array of the desired dimensions to be used for autoindexing as suggested.
    LabVIEW Champion . Do more with less code and in less time .

  • Wavelet transform scale and time information

    Hi there -
    I am using the wavelet transform for a non-stationary signal. I am not having trouble getting the coefficients from the transfrom but is there I way I can find the scale/frequency and time information from just the wavelet VI. I see no way I can get at this information. Also, I am pretty certain Labview uses the DWT when computing the transform but does Labview have the option to do the CWT?
    The reason is because I want to plot time vs. frequency vs. amplitude and I need all three to do it properly.
    Thanks for your help,
    Cameron

    Hi, Cameron.
    This screenshot shows one DWT and one CWT VI, and you'll notice that the CWT has an output called scale info which contains the time information and the scale (frequency) information. (In addition, LabVIEW has several other wavelet VIs.)
    If this doesn't answer your question, please let me know. Have a nice afternoon!
    Message Edited by sarahk on 08-16-2006 03:59 PM
    Sarah K.
    Search PME
    National Instruments
    Attachments:
    scale info.JPG ‏37 KB

  • Image processing - doubling frequency?

    There's some image processing commands in photoshop, like high pass and blur (i.e. low pass). I want more. Is there a way to achieve frequency doubling, or better yet, frequency x N where N is any number the user can specify?
    This may be useful for making coarse skin texture look finer. It can be implemented by diving the selected area into small squares, and then shrink each squares to half their original sizes. This would make the details look finer grain (hence frequency doubling). It would open up gaps between the squares, which can be filled in by taking additional samples and shrinking them to fill the gaps. This is similar to frequency doubling in audio processing.
    I'm using cs4 extended. Is there an add-on to do this?

    Yes there is a retouching method that uses "so called" high frequency and low frequency layers. There is a great discussion in the retouching section on a site called Model Mayhem. Some pretty clever retouchers hang out there. You can use this effect to smooth skin for portraits, and you can vary the smooting from just a small amount to some of the images used in makeup advertising where the model has a perfect yet sort of plastic looking skin. I use this technique now and again working on portrait subjects that have less than perfect skin.
    Basically you make two copies of your opening layer, name the first layer "Low Frequency" and the second layer "High Frequency".
    Select the Low Frequency Layer and apply a small amount of Gaussian Blur around 2.9 is a good starting point
    Now go to the High Frequency Layer and go to Image and select apply image. In the drop down select your low frequency layer and check the invert box and set the blending mode to add with a scale of 2 offset 0 and apply then change the Layer Mode to Linear Light. You now have two retouch layers you can work on and you still maintain some texture in the skin.
    To finish off, select the Low Frequency Layer and duplicate and name as smooth skin. Apply a blur, surface blur works best with a starting point of Radius = 7 and Threshold = 6 apply and then create a black mask, Now painting with white over selected parts of the image will smooth out the skin.
    Experiment with the settings to get the effect you are looking for. Also, when cloning and healing on the high and low frequency layers look to see what is effected which will give you a better idea on the seperation technique.
    Here is a quick example of this technique
    The Before Image
    The After Image
    Mike

Maybe you are looking for