How to graph the counter frequency

Hello, does anyone know how to make a graph from a frequency signal that comes from a counter?
It seems that I first need to convert the frequency signal (scalar) into a waveform type.
I do not know how do this. Any suggestions for me?
As a basis I use the "Meas Dig Frequency-Low Freq 1 Ctr.vi" example from NI for the frequency measurement.
Thanks,
Peter

Peter,
I can't look at the example you mentioned from the PC I'm at now, but I can describe the way I've always done it.
I'm assuming that the incoming frequency varies, and is calculated by timestamping the incoming edges. This would mean that the hardware is doing something like period measurement and the sample rate varies with the varying periods. Such data wouldn't be suitable for the waveform datatype which assumes a constant interval time dt.
I would recommend graphing on an XY Graph. The Y data is your frequency array. The X (time) data is derived from it pretty simply. First send your frequency array through a 1/x function block to create an array of individual interval times. Then perform a cumulative sum of the interval array to produce a Time array for your X axis.
The cumulative sum can be obtained with a For loop with a single shift register initialized to 0. Auto-index the loop with the interval array. Sum each element with the left-hand shift register value. Send the sum to both the right-hand shift register and to an auto-indexed output for cumulative time.
-Kevin P.

Similar Messages

  • How to convert the counter input as a RPM

    Hello NI,
                          Could you tell me. how to convert the Counter input to the RPM. I am using Rotary encoder has a 5V amplitude with 500 PPR. i am going to measure the Engine speed as a rpm.
    I am using third party hardware, from the hardware i can get the Count as well as Frequency also.
    Could you suggest to me...?  i looked out some disscussion in these forum but i cant able to understand.
    can you please explain with simple way....
    if you have any simulation send me....
    Regards,
    Balaji DP

    Hi balaji,
    [email protected] wrote:
    ...I am using third party hardware, from the hardware i can get the Count as well as Frequency also.
    If you're able to read frequency as X pulses/sec(?) that seems to convert RPM as follows:
    X (pulse/sec) * 1/500 (rev/pulse) * 60 (sec/min) = X * 60/500 RPM (???)
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • How to make the counter count or start at different time

    Hi,
    How to let the counter count the time, that doesn't start at the same time ?
    This timing system is a sport timing system for canoe competition, it need to track 6 competitor that start at different time .
    I have a problem , I have 6 counter in a VI that use to track 6 competitor, but it start count at the same time, how to make it count separately for each competitor ?
    Do you guys know how to solve this problem ?
    Solved!
    Go to Solution.
    Attachments:
    multi competitor.zip ‏50 KB

    HI, 
    ya, i run it. I mean i know how to make it to 6 competitor already , and yes, it works but the time, it still count or start at the same time. I  need to run each competitor at different time , like this competitor A 20-2-2012.VI . This is the one i do but it cant put a stop button. once i put a stop button, the clock stop counting but the whole VI is running.
    Regadrs,
    Sam
    Attachments:
    competitor A 20-2-2012.vi ‏139 KB
    3switch 3-2-2012.vi ‏14 KB

  • How to display the count of a list item in Sharepoint Designer?

    How to display the count of a list item in Sharepoint Designer? please reply with the proper code line to add for this.

    Hello,
    What version of sharepoint you are using? Try below approach:
    http://sharepointlogics.com/2010/03/total-count-of-items-in-list-in.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • How to know the count of record in CR XI?

    Post Author: Liu ming
    CA Forum: Deployment
    Hi All,
    I create a report by CR XI release 2. The report is viewed in ASP.Net. So, I would like show a message when the report have no record. My question is how to know the count of record?
    Thanks.

    I was able to do this by using
    ora:countNodes('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500')

  • How to get the count of each minutes

    Oracle 10 DB
    Hi All
    I using this query to get the count of records fetched by the concurrent program per min,
    select count (distinct b.attribute2)
    from oe_order_headers_all a,oe_order_lines_all b
    where a.header_id=b.header_id
    and b.flow_status_code ='AWAIT_QUINTIQ_BOOK'
    and to_Char(b.last_update_date,'DD-MON-YYYY HH24:MI:SS') between '19-JAN-2011 02:00:01' AND
    '19-JAN-2011 02:00:02'
    This is used to get the count of records fetched at one mins
    How to find the count of last 10 mins ie 1 mins count 2.00 to 2.10
    Thanks & Regards
    Srikkanth.M

    Try this:
    SELECT TRUNC(b.last_update_date, 'mi') time_mins, COUNT(DISTINCT b.attribute2)
    FROM   oe_order_headers_all a,
           oe_order_lines_all b
    WHERE  a.header_id = b.header_id
    AND    b.flow_status_code = 'AWAIT_QUINTIQ_BOOK'
    AND    b.last_update_date >= to_date('19/01/2011 02:00:00', 'dd/mm/yyyy hh24:mi:ss')
    AND    b.last_update_date < to_date('19/01/2011 02:10:00', 'dd/mm/yyyy hh24:mi:ss')
    GROUP BY TRUNC(b.last_update_date, 'mi');I'm not sure why you're bothering with the join to the oe_order_headers_all table, since you're not referencing that in the where clause or the selected columns list. I think you could probably do away with it.
    I've changed your code to take the last_update_date and truncate it to the minute level, and added that as a column, so you can see which count goes with which minute. Obviously, this has to be in the group by.
    I've also changed your date comparisons so that you're actually comparing dates to dates, rather than strings to strings - why would you deliberately take information away from the optimizer? Oracle does not treat strings the same as dates, and forcing it to use strings rather than dates could lead you to have a vastly differing execution path, which will most likely be less performant.
    Not to mention, coding like that leads you to assume that you can compare dates in strings without any problems, and that is just not the case. '19-FEB-2011' is counted as being earlier than '19-JAN-2008', as strings sort alphabetically.

  • How to find the count of tables going for fts(full table scan in oracle 10g

    HI
    how to find the count of tables going for fts(full table scan) in oracle 10g
    regards

    Hi,
    Why do you want to 'find' those tables?
    Do you want to 'avoid FTS' on those tables?
    You provide little information here. (Perhaps you just migrated from 9i and having problems with certain queries now?)
    FTS is sometimes the fastest way to retrieve data, and sometimes an index scan is.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:9422487749968
    There's no 'FTS view' available, if you want to know what happens on your DB you need, like Anand already said, to trace sessions that 'worry you'.

  • How to Extend the count of item code in IC_ITEM_MST table

    Hi Friends.
    Recently we used 10 count of IC_ITEM_MST table . But we want to extend the count 15. How to define pls help me.
    Regards
    Babu.J

    Duplicate post -- How to Extend the count of item code in IC_ITEM_MST table

  • How to find the count of attachments done before submit in Attachment Link?

    How to find the count of attachments done before submit in Attachment Link?
    Does anybody know how to find the count of attachments done in Attachment Link item type before Submit.
    My requiremet is to display the count of attachments done by user used in Standard Page before he submits the page.
    Any help would be appreciated.
    Thanks.
    CO.java
    OAMessageAttachmentLinkBean oalink = (OAMessageAttachmentLinkBean)webBean.findChildRecursive("Attachments");
    oalink. count ?

    I have the same issues! any body can help this issues?

  • How to query the count of the temporary table from user_objects

    e.g. select count(*) from user_objects where object_type='TABLE'
    According to the SQL,I can query the all table including the temporary table,Can I how to query the count of the temporary table from user_objects excluding the permanent table?
    thanks a lot!

    select count(*)  from user_objects where object_type='TABLE' and temporary = 'Y'

  • How to stop the counter after getting maximum amplitude from a waveform graph?

    I am using accelerometer, optical encoder and daq card (PCI MIO 16XE10) for my tyre balancing project. Basically i am trying to stop my edges count from the optical encoder to get the position for putting the mass for correcting the balancing. Could anyone please help me by telling me how i can achieve it or is there any other ways to get the position using the daq card? One more thing, could anyone tell me how to change the waveform graph to frequency domain instead of time domain?

    Time to Freq is easy. 1/time = freq. example. 1 msec period = 1000 hertz (1kHz).
    I guessing you are attempting to design a new spin balancer for tires. I would record the entire "spin cycle with index count" then search the resulting waveform for the max amplitutes. Correlate the indexes and that should give you the high point and location. You might want to count the number of revolutions, then grab that 60% of that number of peaks.

  • WM RF Inventory : how to change the counting.

    Hello every body,
    We are using transaction LM50 and LM51 for the WM inventory counting with radio frequency terminals.
    My question is how is it possible the change the counting for one material in one bin ?
    The situation is that we have big bins with several material in it. When I count for 1 material in 1 bin, sometime I can find the same material in an other part of the same bin. Then I need the change the counting, but I don't know how to do it.
    One other solution would have been to add a new item (using F7), to add the product again, but it's not possible because the same material is already in that bin...
    If someone has an idea, it would really help me.
    thank's !!
    Mathieu.

    Hi
    The below is the WM mgnt PDF doc link...
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    Fyip.
    Regards
    Ram

  • How you change the download frequency for a single Podcast?

    I have iTunes 11.1.5 for Mac, and I can't find how to change the down load frequence , aka "check for new episodes" setting for individual podcasts. I've tried using the settings menu in the "My Podcasts" and the "List" podcast view. When I do this, I see these setting:
    Keep
    Download
    Sort Order
    Play Order
    If I click on the "Defaults..." button, the top setting is "check for new episodes"
    I have no problem with being able to change the  default download frequency setting, but I am at wit's end with locating where I can change that setting for individual podcasts.

    Bump.

  • How to get the count of repeating elements in a xml doc.

    In many xml documents, in is common to have repeating child elements and what I would like to know is how do I determine exactly how many of these child elements exist in a particular document. There is probably a correct XPath string to determine this, but I cannot figure out what it is. Here is an example
    <a>
    <b>
    <c>1</c>
    <c>5</c>
    <c>22</c>
    </b>
    </a>
    The above 'c' element is what varies in number from document to document and I need to know how to get the number of 'c' elements for the document, which would be 3 in the above case.

    create table test_xml(data xmltype)
    insert into test_xml values(
    xmltype('<a>
    <b>
    <c>1</c>
    <c>5</c>
    <c>22</c>
    </b>
    </a>')
    select extract(data, '/a/b/c').getclobval() from test_xml
    select count(*) from test_xml
    where existsnode(data, '/a/b/c')=1
    good luck.

  • Select Count(*) from Sample_table - how to get the count using JDBC?

    Hi All,
    It would be glad if anyone could help me with this. The problem is that I have to get the 'count' of records selected from a arbitrary table say, 'sample_table'. Is that possible to form the SQL in JDBC as
    Select Count(*) from Sample_table
    and get the value of the count? If yes, how?
    Thanks in advance
    Prabz

    stmt = con.createStatement();
    ResultSet recordcnt_rs = stmt.executeQuery("Select Count (*) as record_ctr From Sample_table");
    recordcnt_rs.next();     
    record_ctr = recordcnt_rs.getInt("record_ctr");
    hope this helps.

Maybe you are looking for

  • I PHONE 4S WIFI NOT CONNECTING AFTER UPGRADING TO iOS7.1.1

    i PHONE 4S WIFI NOT CONNECTING AFTER UPGRADING TO iOS7.1.1

  • How much should I pay to Chevron Card to get a good score bump?

    Hi there, This is my first post in my journey. I currently only have a Chevron Card reporting. My limit is 2300 and I have a 1500 balance. How much should I pay off to see the best and fastest increase in score? 

  • Windows Phone DataTemplate

    Hi, I am new in Windows Phone development, I have a listbox with a datatemplate, in the datatemplate there is a textblock named mytextblock, I can not access the textblock by using the name in MainPage.xaml.cs. But I want to change the forebackground

  • JDeveloper 9i and MSSQL

    Hi, I have some problem with correct work of MSSQL 2000 JDBC in my JDeveloper 9i. Exactly, I defined new connection in IDE, also addressed MSSQL JDBC jar files. When I'm opening this connection it looks OK, I can see database entry, but when I try to

  • Accordion tabs w/panel sub-nav - default open issues

    I have a spry accordion in a left sidebar, and I'm using it as navigation for a slideshow for a website I'm working on. Each of my 5 accordion tabs has a different category of slideshow, with each panel having multiple sub-navigation links that each