How do I get a timestamp for each daq counter measuremen​t?

Hello, I am currently using DAQmx to read a PWM signal and calculate the pulse width using the implicit timer. Is it possible to also get the timestamp of each pulse width measurement? I have been able to do this with an analog signal by using a waveform output, but I can't figure out how to do this with a counter measurement. Thanks in advance for the help!

I think that you have asked a great question. Something that many engineers may not be aware of is that the DAQ device itself does not actually create the time stamp. It is created by the comptuer system when the data is retreived from the DAQ card. Because of this, the time stamp is actually delayed by a significant amount. This delay may be less than the resolution for time stamps (one millisecond) but it can sometimes be greater than that. This Knowledge Base article discusses it this in more detail: http://ae.natinst.com/public.nsf/web/searchinterna​l/5d42ccb17a70a06686256dba007c5eea?OpenDocument
If your pulses are closely spaced, the generating a timestamp for each aquisition is not practical. But, if your pulses are spread apart by a significant amount (more than 0.1 seconds or so depending on the specifics) then the timestamp might be accurate enough to be practical. One way to do that with counters would be to use the Get Date/Time in Seconds VI in LabVIEW just after the DAQmx Read VI. Then, once the Counter Input measurement is complete, LabVIEW will create that timestamp very quickly afterward. Please notice that there will be some time delay between the completion of the read and the creation of the time stamp.
Jeremy P. 
Applications Engineer
National Instruments

Similar Messages

  • How to Get Missing Dates for Each Support Ticket In My Query?

    Hello -
    I'm really baffled as to how to get missing dates for each support ticket in my query.  I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
    in a table.  Let me explain a bit further here -
    I have a query which has a list of support tickets for the month of January.  Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
    updated.  So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07.  Each time the ticket is updated a new row is inserted into the table.  I need a query which will return the missing dates per
    each support ticket.
    I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all.  My team has tried and they won't give 'em.   So proposing a function or storable solution will not work.  I'm stuck with doing everything
    in a query.
    I'll try and provide some sample data as an example -
    CREATE TABLE #Tickets
    TicketNo VARCHAR(4)
    ,DateUpdated DATE
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
    So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th.  A set-based solution would be best.
    I'm sure this is easier than i'm making it.  However, after playing around for a couple of hours my head hurts and I need sleep.  If anyone can help, you'd be a job-saver :)
    Thanks!!

    CREATE TABLE #Tickets (
    TicketNo VARCHAR(4)
    ,DateUpdated DATETIME
    GO
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-01'
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-05'
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-07'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-03'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-09'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-11'
    GO
    GO
    SELECT *
    FROM #Tickets
    GO
    GO
    CREATE TABLE #tempDist (
    NRow INT
    ,TicketNo VARCHAR(4)
    ,MinDate DATETIME
    ,MaxDate DATETIME
    GO
    CREATE TABLE #tempUnUserdDate (
    TicketNo VARCHAR(4)
    ,MissDate DATETIME
    GO
    INSERT INTO #tempDist
    SELECT Row_Number() OVER (
    ORDER BY TicketNo
    ) AS NROw
    ,TicketNo
    ,Min(DateUpdated) AS MinDate
    ,MAx(DateUpdated) AS MaxDate
    FROM #Tickets
    GROUP BY TicketNo
    SELECT *
    FROM #tempDist
    GO
    -- Get the number of rows in the looping table
    DECLARE @RowCount INT
    SET @RowCount = (
    SELECT COUNT(TicketNo)
    FROM #tempDist
    -- Declare an iterator
    DECLARE @I INT
    -- Initialize the iterator
    SET @I = 1
    -- Loop through the rows of a table @myTable
    WHILE (@I <= @RowCount)
    BEGIN
    --  Declare variables to hold the data which we get after looping each record
    DECLARE @MyDate DATETIME
    DECLARE @TicketNo VARCHAR(50)
    ,@MinDate DATETIME
    ,@MaxDate DATETIME
    -- Get the data from table and set to variables
    SELECT @TicketNo = TicketNo
    ,@MinDate = MinDate
    ,@MaxDate = MaxDate
    FROM #tempDist
    WHERE NRow = @I
    SET @MyDate = @MinDate
    WHILE @MaxDate > @MyDate
    BEGIN
    IF NOT EXISTS (
    SELECT *
    FROM #Tickets
    WHERE TicketNo = @TicketNo
    AND DateUpdated = @MyDate
    BEGIN
    INSERT INTO #tempUnUserdDate
    VALUES (
    @TicketNo
    ,@MyDate
    END
    SET @MyDate = dateadd(d, 1, @MyDate)
    END
    SET @I = @I + 1
    END
    GO
    SELECT *
    FROM #tempUnUserdDate
    GO
    GO
    DROP TABLE #tickets
    GO
    DROP TABLE #tempDist
    GO
    DROP TABLE #tempUnUserdDate
    Thanks, 
    Shridhar J Joshi 
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • Qry:How to get different price for each price list (variable area) in order

    1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
    2- I add a location store from a table in line item and I want to see this area in order,.
    I 'm created 2 field location(item line and order), 1 table location
    I tried this for exemple : select $ [userfieldlocation.OITW]

    Thanks Suda for your answer,
    the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,     
    I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data  line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    Juste a another question : where you found this and What is: ' 38.1.0 '
    Is it in document (System information):Item=38 Pane=1 ??
    Thanks,
    Ouchen

  • If I have two email accounts, one personal hotmail account and one MS Exchange work account, how can I setup individual notifications for each account. Right now, any email from any account has the same notification. I want work to be different than perso

    If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
    Thanks

    Sorry you get only one notification sound for all email accounts.  you can send a suggestion to apple here http://www.apple.com/feedback/

  • Is there a way to get the details for each hit in the portal database WCR_WEBCONTENTSTAT?

    Hi,
    I need to get the details for each user hit.
    Apparently, this table has the IMPRESSIONS column which returns the total number of hitcounts and VISITS which counts the number of unique user who accesses the portal. What I am trying to look for is to get all the details per hitcount. I need to find out how many time a specific user accessed a specific page or iview.
    I also used the table WCR_USERPAGEUSAGE, which I get the information of the users counted in the VISITS column in the first table.
    I could not get the specific user per hit.
    Please enlighten me if this is possible and how to do this?
    Thanks!

    Hi Catherine,
    Why not use the portal activity report iView?
    In the portal activity report iView the 3rd option allows you to choose a page for example and see
    the user who accessed it and how many times.
    Thanks and BR,
    Saar

  • How to set-up a Timestamp for BI Delta Load in 0CLM_INVOICE datasrc at R/3?

    Hi Experts,
    Kindly let me know How to set-up a Timestamp for BI delta load at R/3 for the Data source 0CLM_INVOICE ?
    Since the Timestamp for Upload of BI Delta is " . . : : ", we are not getting any delta value to BW.
    I would like to know in where we need to maintain the DATE & TIME to fix the above problem.
    Thanks.
    Regards,
    Jayaprakash J

    Dear Jayprakash,
    Chech the below links, it may help you in your case :
    Re: 0FI_AA_11 Delta load failure
    http://wiki.sdn.sap.com/wiki/display/BI/GeneralErrorIn+BI
    Actaully you need not have to maintain the timestamp. Just try to replicate your datasource and the try to load the delta again.
    Hopefully it will work.
    Regards,
    Rahul
    Edited by: Rahul on Dec 10, 2010 10:23 AM

  • How can we get help/advice amoungst each other? I have questions

    How can we get help/advice amoungst each other? I have questions which might not be bug related and thought it would be nice if we could bounce questions off each other.
    Example:
    Why is my Reflow sample behaving like this?
    Should I have some kind of settings set so things don't get all weird?
    I didn't set any breakpoints yet, but things are going weird.
    Image attached! Any insights?
    Thanks.

    You can post questions here too. If they are design questions if people know the answer they can respond too.
    For this particular issue, it does look like a design problem. From the screen shots, I'm guessing that the light gray box is using negative top margin to overlap the darker dray box. I think for this change the dark gray box to use height:auto and add a padding-bottom to it for the current space below the text. That way when the text starts to push down there will be a constant amout of space from the bottom of the text to the bottom of the dark gray box and that will push the light gray box down as well.

  • How can I get "library components" for Encore? download from Adobe site is corrupted/missing files

    How can I get "library components" for Encore? download from Adobe site is corrupted/missing files.  I have tried 3 times to d/l and each time problems.  HELP please!
    I just want the DVD templates and buttons that would come with actual purchase of Encore.  Having creative cloud subscription should not limit this for me, right?
    BTW I have CC subscription, Windows 7,

    Thanks very much I have contacted them via this. Just hope they respond quickly- rather annoing! Greatly appreciated though

  • How much space it is occupying for each Material Master in MARA table.

    Hi Gurus & Markus .
    If one of the functional consultant creates a Material Master in MARA how much space it will occupy for each. Like we need to create 10000 material masters.
    How can i access exactly to that table in terms of db growth.
    >Rahul

    use this command:
    select blocks from dba_tables where table_name='MARA';
    then add 8 entries. then same command:
    select blocks from dba_tables where table_name='MARA';
    check difference between the 2, you will get a small number, you will get the number of Kbytes used per record.

  • How do I get resale rights for a particular Cloud Service ?

    How do I get resale rights for a particular Cloud Service ?

    Each Cloud Service has the resell criteria and any training required listed on their respective Knowledge Zones. In the KZ click on the "Apply to Resell" tab and there you will find 1 steps. Step one lists all of the items that are included within that product family. Step two lists the criteria. Once you complete all the items in step two, then you select Step 3 that will walk you through the actual process to apply. As mentioned in one of the other questions here, you also need to be Gold member or higher, have an active FUDA (Full Use Distribution Agreement) and a CSDA (Cloud Services Distribution Addendum). All of the products that are included in resell, along with links to their respective KZ's can be found at oracle.com/partners/goto/cloud.

  • How do I get a refund for my movie. Tried to connect my rented movie to the LCD through an apple adapter but said unauthorized.

    How do I get a refund for my movie from iTunes that I rented for ipad2? Tried to connect my rented movie to the LCD through an apple adapter but said unauthorized.

    Probably can't get a refund, but.........
    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
     Cheers, Tom

  • How can I get safe internet for protect my phone and PC

    How can I get safe internet for protect my phone and PC. l lose all internet account I've three year. i lose my phone all app for a day even I safe all informating and apps in ICloud  but I lose all my phone information . Like I have new phone and I do not have all my date . For new phone i can not use over 10 apps for my phone

    You can't. But if you backed up your computer prior to wiping it out, you should be able to restore your iTunes library, contacts, photos, etc. from that backup. Once you do, you can set the phone up again and just sync everything from your library back to it.
    If you didn't back the computer up either, you can transfer items purchased on the phone into iTunes, and if you set up at least one contact in whatever application you sync your contacts to on the computer, it will offer to merge the address books on the first sync, saving those.  Any media you'd acquired from sources other than the iTunes store will have to be re-downloaded from the source or re-ripped.
    The iPhone is NOT a backup device.

  • How to use the different class for each screen as well as function.

    Hi Experts,
    How to use the different class for each screen as well as function.
    With BestRegards,
    M.Thippa Reddy.

    Hi ThippaReddy,
    see this sample code
    Public Class ClsMenInBlack
    #Region "Declarations"
        'Class objects
        'UI and Di objects
        Dim objForm As SAPbouiCOM.Form
        'Variables
        Dim strQuery As String
    #End Region
    #Region "Methods"
        Private Function GeRate() As Double
                Return Double
        End Function
    #End Region
    Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            If pVal.BeforeAction = True Then
                If pVal.MenuUID = "ENV_Menu_MIB" Then
                End If
            Else ' Before Action False
                End If
        End Sub
    #End Region
    End Class
    End Class
    Rgds
    Micheal
    Vasu Anna Regional Feeling a???? Just Kidding
    Edited by: micheal willis on Jul 27, 2009 5:49 PM
    Edited by: micheal willis on Jul 27, 2009 5:50 PM

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • How to create an inspection lot for each line item of the Purchase order?

    Hi,
    How to create an inspection lot for each line item of the Purchase order ?
    In detail if possible.

    Hi
       please check this
    [thread|Create Inspection Lot;

Maybe you are looking for

  • Automatic creation of PO from GR posting

    Hi , I want to create PO automatically at the time of GR posting , the setting I made are 1) Automatic PO in Material Master -> Purchase view = YES 2) Automatic PO in vendor Master -> Purchase view = YES 3) Automatic PO in Movement Type 101 = YES 4)

  • NEC ND-6500A DVD+-R/RW drive in Satellite 2410-504?

    Can anyone tell me if an NEC ND-6500A DVD+-R/RW drive will work in my Satellite 2410-504 notebook? I have tried fitting one supplied new but the BIOS did not recognise it and gave an IDE #1 error message on boot up. I don't know yet if this was a fau

  • Wire trick

    A quick question- can I use a very thin wire using the wire trick, or does it need to carry a lot of current? I took apart some monstercable speaker wire, which is 100% ofc.  One strand is very thin, is that a problem? We're talking hair thin almost.

  • Windows 8 Activation Issue

    I've had my laptop for about a year now and for some reason it now keeps nagging "Activate Windows, Go to PC settings to activate Windows".  When I do that there's two optoions:  Activate Windows which tells me that Windows can't be activated right n

  • How to secure the users from deleting the work items

    Hi all, I have a question like this.........whether we could secure the users from deleting the work items by someone in the Project and also assigning a specific user to allow them to delete the idoc.  Please help me on this as this is critical.....