How do you calculate the instantane​ous frequency of a signal in LabView?

I'm working with neural signals that can be described as a nonlinear series of action potentials.  I've already calculated the spike density function (spikes per second against time) and was wondering if this is the instantaneous frequency?  If not, could someone please describe how to calculate instantaneous frequency in LabView without the advanced signal processing toolkit.

Instantaneous frequency is a term which seems to be context-sensitive.  In other words the definition can vary depending upon the application.
Spikes per second would be more of an average frequency (averaged over one second).
For your neural signals I would think that an instantaneous frequency would be defined as the reciprocal of the time between successive spikes.  Since you can count spikes, you should be able to determine the time of each spike.
Lynn 

Similar Messages

  • I wanted to know how do you calculate the number of days between two dates

    i wanted to know how do you calculate the number of days between two dates in java ? i get both the dates from the database. i guess there are many issues like leap year and Febuary having diff no of months ..etc.

    thanks..
    I solve my problem as
    public class MyExample {
        public static void main(String a[]) {
            String stdate = "2009-03-01";
            java.sql.Date currentDate = new java.sql.Date(System.currentTimeMillis());
            java.sql.Date preDate = java.sql.Date.valueOf(stdate);
            System.out.println(currentDate);
            System.out.println(preDate);
    //        int dateCom = preDate.compareTo(currentDate);
    //        System.out.println(dateCom);
            long diff = currentDate.getTime() - preDate.getTime();
            int days = (int) Math.floor(diff / (24 * 60 * 60 * 1000));
             System.out.println(days);
    }

  • How would you find the pitch period of a sound signal?

    Hi
    I have a few questions and i would like if somebody could help me even with the smallest comment on this.
    How would someone be successfully estimate the pitch period (fundamental frequency) of a 5 second sound file?How would you successfully distinguish the voiced from the unvoiced parts and how would you make sure you dont mix voiced/unvoiced sections? Finally how can you find the exact points where the pitch is at its peak throughout the signal?
    Any help/comment/suggesion would be much appreciated

    Hello Madgreek,
    After some thought I think I may have come up with an algorithm for what we have discussed. Basically, you are interested in knowing the time intervals over which you can observe any given frequency in your signal. As you had suggested, you can examine small windows of your signal and perform FFTs on each of the small windows to determine what frequency content is contained in that window. By examining all of the windows, you will see when particular frequencies are prevalent in the original signal. You'd want to use the smallest allowable window to give you the most resolution, but one that is large enough to cover an entire period of the lowest frequency (so that you don't miss this frequency).
    I have attached an example program that performs this operation. The example performs this analysis on an array that represents audio data. I am basically performing multiple FFTs (for each window) and stacking these FFTs in time to form a 3D plot. By examining the 3D plot, I can then see when in time my frequencies of interest are at their peaks. Rather than graphing these plots, you may work out a different algorithm for programmatically determining and logging these peaks and times. I hope this is what you were looking for!
    Attachments:
    Time Variable FFT.vi ‏250 KB

  • How do you calculate the count in before a cue start?

    Here's what I can't figure out.
    I have a quicktime loaded and I need to start a cue at, let's say, 1:05:07:10. I want the tempo to be, oh, 120. I arbitrarily say - this will be measure 41 but it doesn't really matter, I just need my downbeat at that TC and the tempo to be correct.
    So far so good. I have no problem doing this with Tempo operations. I lock the time code, assign it a measure (in this case 41) and have logic calculate a single tempo from 1:00:00:00 (measure 1) to the desired start.
    Now here's my real question. How do I calculate 4 or 8 beats before 1:05:07:10 so I can have a count it at the correct tempo (120)?
    So I'm wonder how some of y'all handle this situation.
    Thanks

    As long as you are in the Fetch call, all other calls to the Scope
    driver will block until Fetch exits.  That's why the Abort doesn't
    do anything.  You have two options:
      1) Use a finite timeout.  Obviously, you are running into
    cases in which the trigger does not arrive, and want to exit
    cleanly.  This is exactly what the timeout is for.
      2) Determine the acquisition state before calling fetch. 
    If this is a finite, single-record acquisition, poll on acquisition
    status and do not call fetch until the status is 1 (acquisition
    complete).  If you're doing a finite, multi-record acquisition,
    poll on the Fetch>>Records Done property and only fetch the
    records that have completed.  If you're doing a continuous
    acquisition, poll on the Fetch>>Points Done or Fetch>>Fetch
    Backlog property and only fetch the number of points that have been
    acquired.
    There's no clean way to break the infinite timeout fetch without forcing LabVIEW to close.

  • How do you calculate the number of bytes in a hexidecimal array?

    Hi can anybody help me calculate the number of bytes in a hexidecimal array ie:
    04h + 12h + 4Eh + 20h = 84h
    Thanks

    Hi,
    I'm not sure if you want to count the bytes or sum the array. But here's an example of both:
    Hope this helps,
    Paulo
    Attachments:
    ByteCount.vi ‏18 KB

  • How can I get the DC component out of a signal in Labview

    I was trying to get the DC component of a signal using lowpass filters provided by Labview(professional version 8.2). I used the FIR windowed filter but I couldn't get what I expected. The sample rate is 20* the maxium signal frequency. I simulated a function like y= 10(volt)+Sin(2*pi*f*t+phase). If I set the low cutoff to be less than the frequency f, shouldn't I get 10 volt as the outputs?  See the attachment for vi. Thanks!
    Attachments:
    Simulation03062008.vi ‏53 KB

    Hi,
    You can use the filters located in Signal Processing -> Filters, then create a constant from the "filter type" input and select "Lowpass". There is also an AC & DC estimator vi, located in: Signal Processing -> Measurement.
    You may also use something like "running mean" filter. To do it you need to calculate the mean value in some range around every point. It will decrease the value of the noise and will give you the dc value (or slow changing part) of your signal. Finally you can use median filter.
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/
    Attachments:
    meanrun.vi ‏21 KB

  • How do you calculate the age of a query?

    Hi,
    We are trying to determine how old a query is?  Do one of the statistical cubes/queries contain the age or created on date of a query?
    Thanks for you help.  Points will be rewarded for the correct answer.
    Thanks,
    Mike

    Hi rathi/mike,
    check these tables RSRREPDIR,RSZCOMPDIR.
    Cheers
    RK

  • How do you calculate the length of a microcassette tape on the M-2000 transcriber?

    There is a counter that runs as you rewind a microcassette tape.  What is the equivalent in minutes?  I would like to know how long the tapes are that I am preparing to type.  Thanks for your prompt reply.

    Unfortunately, we have a very limited information about the M-2000 Micro Cassette Recorder since it was first released in the market last 7/1/1989. Perhaps, the manual here can be of help. 
    If my post answers your question, please mark it as "Accept as Solution"
    http://bit.ly/Win-4K

  • How do you calculater correlation coefficients for data?

    I would like to calculate the correlation coefficient for data which has a linear correlation. I can calculate the linear fit, but how do you calculate the correlation coefficient from this data. Any help would be greatly appreciated.

    If you're just looking for the correlation coefficient (r^2 or r) of a linear regression, you can use the method described HERE earlier.
    LabVIEW Champion . Do more with less code and in less time .

  • How do you determine the distance between the QRS interval, as well as the time over that distance, in order to calculate a heart rate

    Hi!
    I have a continuous sample data acquistion VI created.  I collected an ECG signal from electrodes connected to an ELVIS unit.  Once I viewed my signal, I am curious to determine the heart rate.  I need to know how I can find the R-R interval, as well as the time over than span, so I can roughly determine the heart rate, continuously.  Each time a new ECG wave occurs, the heart rate should be modified automatically.  Some algorithm is required. 
    Thanks!

    Hello bmeecg,
    Welcome to the NI forums!  If I understand your question correctly, you wish to calculate the instantaneous heart rate from your ECG (the inverse of your R-R interval).  I would recommend using the Peak Detection vi (Functions Palette»Signal Processing»Signal Operation) to determine the location of the R wave (since it is the largest magnitude, you could set a threshold above your P and T waves so that it only picks up the R wave).  The calculation for time is in the detailed help for the Peak Detection vi (Ctrl+H»Hover over the VI»Detailed Help).
    I also found this forum which has a VI that reads an ECG and then does a lot of analysis. Maybe this would help you out as well.
    And just FYI, the Counter/Timer forum is oriented toward our counter/timer boards (e.g. the PCI-6602),  the Multifunction DAQ forum probably would have more of the type of people that could help with this issue.
    However, please post back here if you have more questions about this.
    Neal M.Applications Engineering       National Instruments        www.ni.com/support

  • How you calculate the overtime

    hi this is Raman pls give this question answer
    How you calculate the overtime

    Hi
    it depends u can directly mention/highlet the overtime block while creating workshedule then while generating time evaluvation the system takes and it is caliculated  by using Secoundary wage types
    Else u can maintain the day to day details  in the infotype 2005
    Hope u understand and use full
    rgds...........rajeshk

  • How do I calculate the total size of selected folders?

    Hello
    My question is:
    How do I calculate the total size of selected folders?
    Thank you

    It does show the aggregate size.
    Command-Option-I opens the Inspector window. (Or open the File menu and hold the Option key. Get Info turns into Show Inspector.) The Inspector is similar to the Get Info window but it shows aggregate info for multiple selections. It is also dynamic — if you change the selection while the Inspector is open, the info changes to reflect the current selection.

  • How can I calculate the characters with spaces in a document on pages

    I'm currently using pages to write my personal statement up on, although i need to keep my characters including spaces under 4000 characters and also have no more than 47 lines. I've found how to do a word count and find how many charcaters I've used, but i can't see anywhere the information that I actually need to find! Someone please help, thankyou

    How can you calculate the number of lines if you don't know how many characters there are to a line?
    This is 2013. We are using word processors with real fonts, not terminals or teletypers or typewriters.
    If you must have 47 lines then shrink the point size of the font until it fits.
    Peter

  • How i can calculate the backplane speed & throughput of cisco 48 1G 2960S switch?

    How i can calculate the backplane speed & throughput of cisco 48 1G 2960S switch?

    Disclaimer
    The  Author of this posting offers the information contained within this  posting without consideration and with the reader's understanding that  there's no implied or expressed suitability or fitness for any purpose.  Information provided is for informational purposes only and should not  be construed as rendering professional advice of any kind. Usage of this  posting's information is solely at reader's own risk.
    Liability Disclaimer
    In  no event shall Author be liable for any damages whatsoever (including,  without limitation, damages for loss of use, data or profit) arising out  of the use or inability to use the posting's information even if Author  has been advised of the possibility of such damage.
    Posting
    Calculate?  Calculate for wirespeed/line-rate?  If the latter, take all the port bandwidths, and assuming they are duplex, double for necessary fabric bandwidth.  I.e. 48 gig ports would need a 96 Gbps fabric.  Take all your port bandwidths, and allow 1.448 Mpps per gig (for minimum size Ethernet packets), i.e. 48 gig ports would need 69.5 Mpps.  Once you have required fabric bandwidth and PPS, you can compare to vendor's specs.

  • How do you calculate accumulated displacement?

    Hello! I would like to calculate the amount of displacment accumulated during a laboratory test using LVDT positions. Acquiring the signal and determining the position is no problem. However, I cannot think of an efficient way to sum the displacement measured by the LVDTs during the test period. From a progamming standpoint, I would simply save an initial value and subtract the current loop value to obtain the displacement. In the attached example I use a method which uses a case structure and a shift register, but it seems a bit brute force. Do you know of a more elegant way of doing this? If not, how do I tidy it up?
    Attachments:
    LVDT_displacement.vi ‏145 KB
    LVDT_DAQ_Assistant.PNG ‏22 KB

    Evan,
    Create control will create arrays on Add or Multiply only if an array is wired to one of the other terminals. Did you have the array from DDT wired to the Multiply (without the Index Array) when you first created the slope and intercept controls?  If you do not want arrays, go to the front panel, delete the array controls, and drop scalar controls on their places. Then wire the terminals to the numeric functions on the block diagram. Everything should then be scalars.
    It looks like the DAQ Assistant is set to acquire data from two channels at 1000 samples per second and to retrieve 100 samples on each call.
    When you convert from DDT to 1D array of DBL you get only one of the two channels. The array should contain 100 points from the first channel. All of the data from the second channel is lost. You then index out the first and second elements of the array from the first channel.
    I doubt that this is what you really wanted to do.
    The DAQmx VIs will give your direct control over the datatypes and eliminate the extra overhead of the DAQ Assistant.
    You should be able to configure the From DDT to allow you to select the channels. Double click to bring up the configuration dialog. You can select 2D array of scalars and then use Index Array to get the channel you want. Another option is to use 2 copies of From DDT and select 1D array of scalars - single channel. Then choose the channel with the control below the Scalar Data Type box.
    Once you get the arrays configured correctly I suggest that you calculate the Mean of each array and use that for your single value per iteration. Averaging the 100 points should significnatly reduce any noise on the signal.
    Lynn

Maybe you are looking for

  • IPhone 6 photos import but can't be deleted.

    Photos import from my iTunes backup on my computer to my iPhone 6 ok but the trashcan icon doesn't show so they can't be deleted. New photos taken on the iPhone 6 can be deleted as normal. I've tried sync from "All photos ...etc." and from "Selected

  • How to display table name in the Record history

    Hi, I have developed a new custom form. When I click on the record history, it displays details like updated_by , update_Date. But it doesnt show the table name ( of the data block ). Is there any coding to be done to display the table name ? Regards

  • Using Vectors in Entity Beans

    Hello, Can I use vectors in entity and store them in Tables directly as binary objects.I have tried making that bean but facing problem in retriving data from table using EJB-QL.Here are code snippets: -------public abstract class CartEntityBean impl

  • Xacute Send Mail by placing an iGrid in the message

    It has been a few years since I have tried or seen this, but could someone either direct me or submit a sample of the format I should use when placing MII's applets in the message portion of the Send Mail in Xacute?

  • I can't buy anything because I forgot my Security Answers!!

    Dear people, Please help me out! Yesterday I bought a 25 euro iTunes card and redeemed it on my account. Then I wanted to buy some apps and games but it seems like it is not working. They are asking for my Security Answer that I forgot! Okay I wanted