How do you count the frequency of a boolean signal?

Hi, I'm new to LabVIEW, so I suspect this is propbably quite a simple problem.
I'm developing an optical tacometer for a model gas turbine engine. I have a boolean signal in labview which is switching at a frequency between 4 and 26Hz. I need a live readout of the frequency of this signal.
Does anyone know how I could do this? Any help would be really appreciated!
Many thanks
Will
Solved!
Go to Solution.

This vi should work for you
Tim
Johnson Controls
Holland Michigan
Attachments:
Calculate Frequency from boolean.vi ‏11 KB

Similar Messages

  • How do you count the frequency of a booloen signal?

    Hi, I'm new to LabVIEW, so I suspect this is propbably quite a simple problem.
    I'm developing an optical tacometer for a model gas turbine engine. I have a boolean signal in labview switching between 4 and 26Hz. I need a live readout of the frequency of this signal.
    Does anyone know how I could do this? Any help would be really appreciated!
    Many thanks
    Will

    New post here...
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=481337
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • How do you count the multiple columns of a field in a table

    How do you count the multiple columns of a field in a table

    Hi,
    4396bf34-e890-4202-a6b0-4e08c9ff0e89 wrote:
    How do you count the multiple columns of a field in a table
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002
    "Field" isn't a standard database term.  Some people say "field" when they mean "column", but I don't think that's what you mean ("How do you count the multiple columns of a column ..").  Do you want to know how many times a column is used (as opposed to NULL), or the number of different values in a column?  You really need to show what you want.

  • How do you find the frequency of a small sample size and a square wave.

    I am collecting data from ten 12v pulses that are seperated pretty uniformly. The pulses make a square wave. I need to know how to input this small sample size and find it frequency. I need this frequency to be output in a readable file. Im not very knowledgeable in labview so if you try and help me please be very descriptive.
    I know i need some sort of trigger because of uknown wait times before the sensor will be triggored but other than that im pretty lost. Any help would be appreciated.

    What have you tried so far?  What parts are giving you trouble?  Please be as specific as possible. Post the code you have written.
    You ask about frequency measurement and then you are talking about triggering.
    If you always have 10 pulses, just measure the time from the beginning of the first pulse to the beginning of the last pulse.  The frequency is 10/time.
    Break down the problem to smaller parts.  Acquire the data.  Measure the frequency. Save the result to a file.  Get each part working separately, then put them together.
    Lynn 
    Sorry about duplicate post. My internet connection is very slow today.
    Message Edited by johnsold on 05-31-2010 12:05 PM

  • How do you count the amount of times a button is clicked?

    Heres my code:
    public void buttonClicked(JButton buttonzilla){
    if(buttonzilla == startButton){
    while(i < 7){
    story.append("\n" + "\n" + abc);
    i++;
    However, when i click the button once, it displays all elements in the array, however, im trying to get it so that each time i click the button another element is displayed, one at a time. How would i go about doing this?

    Can you explain the code because it dosent make sense
    to me, im a beginner.In the code you posted, there is no declaration for the variable i, so I've assumed it is declared as a class variable, and has scope within the class.
    You say you want to add only the data from the element of abc[], relative to the number of times the button has been clicked i.e. 1st click adds abc[0], 2nd click adds abc[1] etc.
    if(i < abc.length)  - to ensure no ArrayIndexOutOfBoundsException (really should also check i is not negative)
    story.append("\n" + "\n" + abc[i++]);
    instead of
    story.append("\n" + "\n" + abc);
    i++;

  • How can I measure the frequency of an analog signal?

    Hi,  I am trying to measure the frequency of VAC signal coming from a gas turbine engine at my university.  If I can get the values of frequency, I can determine the speed (RPM) of the engine.  I am fairly new to LabVIEW and I have been looking through manuals like crazy in order to find out how to obtain the frequency.  I have measured the signal with an oscilliscope and the highest frequecy will be about 1.5kHz.  I am currently using a USB-6218 and it can collect the voltage signal with ease, but it won't give be analog frequency so simply.  Can anyone explain a way for me to obtain the frequency values?  And if you could show or tell me in a very simple way (because I am not very fluent in LabVIEW yet), that would be amazing!  Thanks!

    Check this out:
    Attachments:
    RPM.vi ‏17 KB

  • How do you count the position in an array?

    Label the elements in a 2D array by counting left to right across each row, and starting with the top row, working your way down. For the example above, we'd label each element like so:
    0 1 2 3
    4 5 6 7
    8 9 10 11
    12 13 14 15
    16 17 18 19
    Such labels give the position in the linearized array (so called because we can store them in a one-dimensional array now). (We did this secretely when we constructed deck out of suit and rank. Check out pages 91�92 if you need to refresh your memory.)
    Come up with a way to calculate the row of an element in the two-dimensional array given its linearized position. For example, the row of element 6 is 1. Also devise a way to calculate the column of a element in the two-dimensional array given its position in the linearized array. For example, the column of element 6 is 2. (Remember, we start counting at zero.) Explain how you arrived at your answer.
    There is no code needed for this, and my question is how should I start this? I am not sure how to track down a value in a two dimensional array... can anyone help?

    Java arrays can be "ragged". Assuming the outer array represents rows and the inner array represents columns, the inner arrays that define the columns can be of different length. In your example you could have
    0 1 2
    3 4 5 6 7 8
    9 10 11 12 13 14
    15
    16 17 18 19
    So. unless you can specify that the column arrays will all be the same size, you'll have to have some way of determining the array size before it can be use in any calculation. You will find <anArray>length useful.

  • How do you count the number of unique values?

    I wanted to know how to create a function that will tell me how many unique values are in a list of values.
    For example if I had this list:
    15
    15
    12
    12
    12
    2
    1
    I would get a result of 4. Because there are only 4 unique values 15, 12, 2, and 1.
    I'm trying to create a spreadsheet that modeled the Sainte-Laguë method of voting; in case you're wondering. I'm using Numbers '09 if it matters.
    Thanks

    Thanks for the responses. That was fast.
    I was hoping to fit it all in one cell, but I guess I could hide the columns used for calculation. I tried Badunit's Function and it works. However I found that if I have a column of all the same number it will return 0, when in fact it should return 1. Like if I had a column of 14s I should get one, because the number of different values that appears is 1. Also a minor note is that COUNTIF(B$2:B2,B2) should be COUNTIF(B2:B$2,B2), that makes sure that if you have anything below it doesn't interfere. At least that's what made it work for me.
    Well I looked at the way you did your chart, Badunit, and it makes more sense than the way I was doing it. I was having to manually enter the number of seats every new row. I think it would have been easier to write a java program.
    Anyways you guys have been helpful. Thanks again.

  • HT1689 How do I change the frequency in which I enter my password when purchasing/downloading from iTunes?

    I changed the settings and now I cannot figure out how to change them to the default setting. How do you change the frequency in which you enter your password in iTunes?

    I don't use restrictions but check ..... Settings>General>Restrictions>Allowed Content>Require Password.

  • How do you modify the default Execute thread count in Weblogic Server 9.2?

    How do you modify the default Execute thread count in Weblogic Server 9.2?
    How can you tune the starting number of weblogic.ExecuteThread on server startup and/or set minimum number?
    Is there an option from the console?
    Please let me know.
    Thanks

    Self tuning will automatically manage the threads but however you can still control the min and max by adding the min and max values for each instance either directly adding in config.xml or through JVM settings
    1) Modifying the config.xml
    Just add the following line(s) to each server definition :
    <server>
    <name>AdminServer</name>
    <self-tuning-thread-pool-size-min>100</self-tuning-thread-pool-size-min>
    <self-tuning-thread-pool-size-max>200</self-tuning-thread-pool-size-max>
    </server>
    2) Adding some JVM parameters
    It's safer the following way :
    add the following option in your command line : -Dweblogic.threadpool.MinPoolSize=100
    Regards
    RR

  • How do you get  the count of number of  checkbox selected?

    hi,
    plz tell me how do you get the count of number of checkbox selected?

    Not sure what you are doing so I will attempt to answer your question. If have one question which can have multiple answers you have will recieve an array so you have to do getParameterValues("name") and move it into an array.
    If you have multiple questions and only value will be selected do a getParameter("name") on each form element.
    HTH, if not provide more detail.
    J.Clancey

  • How do you get the page count on an old hp 1012 laserjet printer?

    How do you get the page count on an old hp 1012 laserjet printer?

    You should find this information on the configuration page. To print a configuration page, press and hold the green GO button until all of the lights cycle, approximately five seconds, then release the button. The Configuration Page will print.
    You can find more information in this document: Identifying Page Count.
    I am an employee of Hewlett Packard.
    - - Please mark Accept As Solution if it solves your problem so others can more easily find the answer - -
    - - Please click the Kudos star if you would like to say thanks - -

  • How do you resize the pixel count from 4000  to 1600 in iPhoto

    How do you resize the pixel count from 4000 to 1600 in iphoto?

    In the Export Dialogue (File -> Export) note the options at Size. This will allow you to specify a maximum length or breadth for the shot.
    Regards
    TD

  • How do you find the word count on MacBook, please?

    How do you find the word count on MacBook, please?

    If you are trying to find word count in a Microsoft Word 2011 documemt, for instance, open the document and go to the Tools menu, selecting Word Count. In Apple's Pages application, open the document and look at the bottom of the page, near the left it will say "X Words" where X is the number.
    Best of luck.

  • How do you shuffle the image order when creating a new slideshow in apterture 3?  i would like to do this automatically when creating a new slideshow.  i see how you do it when you just play a slideshow.

    how do you shuffle the image order when creating a new slideshow in apterture 3?  i would like to do this automatically when creating a new slideshow.  i see how you do it with presets when you just play a slideshow, but i don't see an option to randomly shuffle the slide order when you create a new slideshow.  i know you can sort it by different fields, but i want it to be random.  thanks.

    If you want to rearrange images in random order you can try an AppleScript:
    retrieve a list of selected images from Aperture
    shuffe the list properly
    create an album in Aperture and add the images from the list to the album (make sure that the album set to be orederd manually)
    Here  is a sample script that shuffles the selected images and displays them in random order in Full Screen Mode:
    on removeItem(ims, i)
      -- remove the item at position "i" from a list ims
              if ims is {} then return {}
              if (length of ims is 1) then return {}
              if i < 2 then return rest of ims
              if (i = length of ims) then return (items 1 thru (i - 1) of ims)
              if i > (length of ims) then return ims -- should be error?
              return (items 1 thru (i - 1) of ims) & (items (i + 1) thru (length of ims) of ims)
    end removeItem
    on shuffle_items(ims)
      -- shuffle the items of the list "ims" randomly
              local numitems, ims_shuffled, nextrest, nextpick, i
              set numitems to length of ims
              if length of ims < 2 then return ims
              set ims_shuffled to {}
              set nextrest to ims
              repeat until nextrest is {}
                        set i to (random number (numitems - 1)) + 1
                        set nextpick to item i of nextrest
                        set beginning of ims_shuffled to nextpick
                        set numitems to numitems - 1
                        set nextrest to removeItem(nextrest, i)
              end repeat
              return ims_shuffled
    end shuffle_items
    on shuffleIms()
      -- retrieve the selected images from Aperture
      -- and display them in random order in full screen mode
              local imageSel, shuffled, i
              tell application "Aperture"
      activate
                        set imageSel to (get selection)
                        set shuffled to my shuffle_items(imageSel)
                        set fullscreen to true
                        if imageSel is {} then error "Please select some images."
                        repeat with i from 1 to count of shuffled
                                  reveal {item i of shuffled}
      delay 3 -- chnage that to the time you want
                        end repeat
                        set fullscreen to false
                        return shuffled
              end tell
    end shuffleIms
    shuffleIms()
    Some more code snippets to go from here:
    To create an album:
                        tell library 1
                                  if not (exists album "shuffledAlbum") then
      make new album with properties {name:"shuffledAlbum", image version:shuffled}
                                  end if
                        end tell
    And to add the images from the shuffled list to the album:
                        repeat with i from 1 to count of shuffled
                                  duplicate item i of shuffled to album "shuffledAlbum"
                        end repeat
    Regards
    Léonie

Maybe you are looking for

  • What's wrong with my code? compliation error

    There is a compilation error in my program but i follow others sample prog. to do, but i can't do it Please help me, thanks!!! private int selectedRow, selectedCol; final JTable table = new JTable(new MyTableModel()); public temp() {      super(new G

  • How can I get my 6700 to direct e-mail a scan with windows 8?

    I have a 6700 all in one and want to be able to e-mail a scanned document directly as I do at work?

  • Error opening ip log file in ethereal

    I get the following error when I try to open an ip log [created by changing the event action to log packets]. "The capture file appears to be damaged or corrupt". Is this a known issue?

  • Unable to Restore my iPad after software update

    I just updated all Apple software and went to sync my ipad with itunes...it would not allow me to restore with my back-up information it kept saying there was an error while trying to restore. It gave me 3 options, cancel Restore to factory settings,

  • Adobe Reader XI wont start after Virtualization

    Hi, I have installed Adobe Reader XI, and works fine. then i virtualize this program with Novell ZENworks virtualization 9.0 And now the problem is coming the virtual application of Adobe Reader XI is not working it will not start up. did someone hav