Time stamp to sample data

Hi,
I would like to attach a time stamp to acquire data. For example, if I acquire 50 samples, I would like to know when each one was captured so that I can work out the time elapsed between them. Any help would be greatly appreciated.
Thanks in advance for the help.
Ming

You get a timestamp whenever you acquire data as dynamic data (i.e. DAQ Assistant) or select waveform data type. The wavefrom data type is a cluster with a y array, a t0, and a dt. Assuming that you are using hardware timed acquisition, the dt is equal to 1/sample rate. If you are not using hardware timed acquisition, why not?

Similar Messages

  • Time stamp from dynamic data

    I trying to write dynamic data to a file using Express VI (Write LabView Measurement file). The dynamic data comes straight from a simulated Signal Express VI. The signal part of the dynamic data is written correctly but the time stamp is what appears to be float counting the seconds since the Write LabView Measurement file Express VI was started.
    I have configured the Simulate Signal VI Time stamp to absolute data and time option.
    This should be dead simple but it just do not work!
    Any suggestion to what I might do wrong?
    I do expect that the time stamp would be written as two columns one for date and one for time.
    Thanks,
    Soren T. Jensen

    The timestamp is written in the header of the file. The time and date entered there is the time and date that you are looking for. The timestamp written next to each piece of data is indead a relative value. It is the delta from the timestamp in the header to the time that datum was collected (created). The reason for this is that timestamps are quite large in bytes, especially if you break out the time and date in strings. Just stamping the header and providing the offsets is much more efficient.
    If you choose to not provide a header, I think that the timestamp will be lost entirely. I think that this is probably wrong, but I am uunsure what should be done to correct it.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to Convert a 'Time Stamp' field to Date......?

    Hello Gurus:
    I am using a Generic Extractor to pull some stats data.  One of the field is a Time Stamp field, which tells me the date and time of Transaction run.  I only need "Date".  I tried mapping the stamp field to Date info-object hoping for a automatic determination of the Date.... (like the Week, Month happens).   Well, I was wrong! 
    I only need the Date part.  How can I do this in BI?  is teher a specific SAP info-object for this that could be used..?  If not, what would be the routine.  The Date field that comes in is a SAP format... "u201C20,070,505.0000000u201D meaning the Transaction was run
    on 05/05/2007.  How can I get this convertion in BI transaformation??  is there a special Routine...?
    Also, we are trying to use "Time Stamp" based DELTA from a generic extraction.  The field used is a System date with time stamp.  Value looks like u201C20100,505,170,113.2918470u201D, u201C20100,505,170,113.4748820u201D  Every record pulled has a different value... probably giving me the time at which the record was created or generated.  Now, with DELTA specifid on this type of field, what will be the 'Current Status" value in Delta queue?  Is it based on the last record created and will that be the highest value?  For next Delta extraction, does it compare the extraction time stamp to this value and bring in those records that are greater than the 'Current Status" value?  I guess with that we can have as many deltas as we want..... right??  is there any particular setting I should be doing or worried/ careful about setting etc....?
    Thanks for the response in advance....
    Best..... SMaa

    Thanks Akshay,
    Your suggestion worked right away and was probably the easiest of all.  I tried the Function Module that Pravender suggested,
    but it did not return me the date back.... may be because it does not need the Micro Seconds in it....?  Routine as suggested by
    Satyam might work too, but did not go there....! 
    Thanks to all of you.
    Best..... SMaa

  • How to display the time stamp in a data log table

    Hello,
         I want to display data during the data acquisition process. How do I  add the time stamp as one of the column in the 'Result Table' located at bottom left of the example code?
    Thanks,
    Ryan
    Solved!
    Go to Solution.
    Attachments:
    Cycle Analysis.vi ‏229 KB

     I inserted the portion you added to my program and it worked but not exactly the way I want. It added the time and date when I start the data acquision. But I want the time stamp to be shown on every single row. Please see attached image.Thanks.
    Attachments:
    Result.JPG ‏54 KB

  • [Oracle 8i] How to convert a string (time stamp) into a date?

    I'm having difficulty figuring out how to convert a time stamp string into a date (or possibly a number).
    The time stamp is 20 positions, character (NOT NULL, CHAR(20))
    in the format: YYYYMMDDHHMMSSUUUUUU
    where Y = Year, M = Month, D = Day, M = Minutes, S = Seconds, and U = Microseconds
    The reason I want to convert this is so that I can compare one time stamp to another (i.e. I want to be able to find the MIN(timestamp), MAX(timestamp), and do inequality comparisons).
    Is this at all possible?
    Thanks in advance for help on this!

    Hi,
    As Damorgan said, if all you want to do is find which is the earliest or latest, then you can just compare the strings: they happen to be in a format where that works.
    If you need to do other things, such as compare them to today's date, or see the difference between two of your rows in days, then you have to convert them to DATEs. (There's no point in converting them to NUMBERs).
    A new data type, TIMESTAMP, which handles fractions of a second, was introduced in Oracle 9.
    Since you're using Oracle 8 (according to your subject line), you either have to
    (1) ignore the microseconds, or
    (2) use a separate NUMBER column for the microseconds.
    Either way, use TO_DATE to convert the first 14 characters to a DATE:
    TO_DATE ( SUBSTR (txt, 1, 14)
            , 'YYYYMMDDHH24MISS'
            )where txt is your CHAR column.
    To convert the microseconds to a number (between 0 and 999999):
    TO_NUMBER (SUBSTR (txt, 15))

  • Precise time stamping of serial data

    I am having trouble with precise timestamping  of incoming serial data recived on 4 ports using 4 separate threads that continually attempt to read a byte.
    When the expected frame is recieved the data is tagged with a time stamp.
    The issue seems to be windows xp or the serial ports themselves.  I am using an xsens serial to usb, 2 lavaport serial cards and the built in serial port.
    Any suggestions for precise timing?

    there is some hints:
       -for milisecond precise timestamp, you can use GetLocalTime,GetSystemTime or GetTickCount.
        But to achieve true milisecond scale, you need use timeBeginPeriod(1)/timeEndPeriod(1) otherwise you get 10-16ms scale depend on system
        (please read help pages on msdn for timeBeginPeriod function)
       - create your program to not use CPU too much(no pooling,just message and/or sync wait),
         or even better, do not run any other apllication which consume lot of CPU/DISK resources on the same PC
       - for serial communication (but this also depend on baud rate) you can try to set send/receive driver buffer to 1 (from windows device manager)
       - try different serial port card/converter(with different drivers)
       - if still need something to try, set higher process and thread priority (SetPriorityClass,SetThreadPriority)
    After all of this, on windows, there are no precise timing.Even if you do everything you can do, there is still chance to get time gap, but you can detect it (in milisecond precision)

  • Time stamp error in Date management

    Hi All,
    I have defined a date rule and date profile which is copied from the rule VALID003 (i.e. today's date + 3 days) and assigned to transaction type 0010 (Business Activity). But its giving an error as below:
    Error when converting time stamp in date/time time zone INDIA.
    But when i test the rule separately it giving the correct result.
    What could be the problem ?
    Regards
    Sidd

    Hi,
    Check for the system date and time and the today's date and time being picked yup in your activity.
    system date and time can be checked by -
    SAP easy access Menu go to system -->status
    This time should be there in your date type giving valid from time so that the rule can add to this time.
    Hope it helps
    Regards
    Raj

  • Time Stamp against Master Data

    Hi,
    Is there any BADI to identify when (date & time) the master data field updated individually.
    Example: "ABC" company is having 2 user interfaces to update the Master Data a) CRM Call Centre and b) Disconnected Mobile Client (Mobile Client will down load the full customer master data from CRM, before Sales Professional goes to market). In Mobile Client disconnected mode Sales Professional can update customer master record, updated full customer master record will be loaded back to CRM in every 3 days. Example - for customer "X" Sales Professional changed contact number (eg: old contact number = 1234 and changed to = 2345) on 2009/09/17 at 10:00 am, which will be uploaded back to CRM on 2009/09/20 at 10:00 am. Customer "X" called ABC's Call Centre on 2009/09/18 at 14:00 and requested to update his new contact number (old contact number = 1234 to new contact number = ABCD, which could be different from the one he requested with Sales Professional). Problem is when the data uploaded from disconnected mobile client - will over ride the contact number from ABCD to 2345, even if I upload full record or only changed field. How can I set the system to check the each field updated date and time to compare with the date and time of each field uploaded from disconnected mobile client??? and keep or update the customer master record with latest field value(s)....
    Your kind assistance will be highly appreciated....
    Cheers,
    Peter J.

    Hi Gurus,
    Any ideas or directions will be highly appreciated...
    Cheers,
    Peter J.

  • Time stamp to acquire data

    I am acquiring position data with a timestamp. On the computer, I have simulated a current signal (no hardware attached) and want to acquire the current data corresponding to the position data timestamp.
    How do you do this?

    Hi Shan,
    you don't name that current source...
    Most "professional" ammeters will also provide a timestamp with the current data (all Keithleys I worked with allow this features). So you have to request that data from your data source.
    If this is not possible you will have to timestamp it in LabView...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • No update time stamp in the saved data file

    In NI Example Finder, there is a file called "Fieldpoint Datalogger.vi". I flip the "Time Format" switch to "HH:MMS" and the "File Type" switch to "Spreadsheet". The data saved into a file have time stamp at each line. However, the time stamp in each line of the data file saved as the same time without any update to the most current time. I put sampling frequency for 100 ms and saved as 50K bytes file size, but all the time stamps in the file show one same time (I believe it is the time to start to save into file and keep repeat it). How can I get the update time stamp for every 100ms or 500ms and save that time stamp into the data file from this "Fieldpoint Datalogger.vi"? Should I change anything on the subVI called
    "embedded FPLog.vi"?

    Hello,
    Fieldpoint systems usually base the timestamp on the National Instruments Time Server, which is installed on any computer using the Fieldpoint driver. This means that you can configure the Time Server on a Fieldpoint system to continuously check the system time of any computer on the network that has the Fieldpoint Driver installed by referencing its IP address.
    If the timestamp is not updating, then we should first verify that it has been configured properly.
    Take a look at the following Knowledge Base and let us know if using the listed steps takes care of this issue.
    http://digital.ni.com/public.nsf/websearch/C4E56AD6450FC5FD86256DFF0007FF01?OpenDocument
    Best regards,
    Justin Tipton
    National Instruments

  • Generic Extractor on DB Table without Date, Time stamp

    Hi all,
    We have requirement of creating a generic extractor on the table which doesnt have date or time stamp in the data field. The only option availabel is to extract from Document numbers.
    And we cant put the extractor mode to "Read from view" because the table contains Currency field which refers to external table for currency key.
    The moment we change the extractor mode from Extraction from view to Extraction from FM the option "Numeric pointer" gets hidden.
    What shall we do in this scenario ?? Pls advice.
    Thanks.
    Regards
    Nimesh

    Hello Tapan, Prakash
    Prakash : Currency key is needed in BW .
    Tapan : I was just trying diff. options i.e. extraction from view and FM . Problem with Generic Extractor is that i dont have any date fields getting updated in the table. The only field that can be used for delta is document number. And Generic extractor only allows date or time stamp option , its not allowing numeric pointer if one reads from FM.
    Regards
    Nimesh

  • Retriving records with the date and time stamp

    I need to get all the records that were update between 08:36:06 AM and 8:36:09 AM on the12/15/2009
    I am using this query it is giving me the right numbers (I think) because this condition GURMAIL_CPLN_CODE = 'UGAP', I would like something more
    precise using the date and time stamp with the dates
    12/15/2009 08:36:06 AM
    12/15/2009 08:36:07 AM
    12/15/2009 08:36:08 AM
    12/15/2009 08:36:09 AM
    select * from GURMAIL
    where
    PERMAIL_CPLN_CODE = 'UGAP'
    AND TO_CHAR(PERMAIL_ACTIVITY_DATE,'MM/DD/YYYYHH24:MI:SS AM') >= '12/15/2009 08:36%'Thank you

    Yes, but HH24 and AM cannot be used together:
    SQL> select to_date('12/15/2009 08:36:06 am', 'mm/dd/yyyy hh24:mi:ss am') from dual;
    select to_date('12/15/2009 08:36:06 am', 'mm/dd/yyyy hh24:mi:ss am') from dual
    ERRORE alla riga 1:
    ORA-01818: 'HH24' impedisce l'uso dell'indicatore meridianoUse this:
    select *
    from   gurmail
    where  permail_cpln_code = 'UGAP'
    AND    permail_activity_date between to_date('12/15/2009 08:36:06', 'mm/dd/yyyy hh24:mi:ss')
                                    and  to_date('12/15/2009 08:36:09', 'mm/dd/yyyy hh24:mi:ss')or this:
    select *
    from   gurmail
    where  permail_cpln_code = 'UGAP'
    AND    permail_activity_date between to_date('12/15/2009 08:36:06 AM', 'mm/dd/yyyy hh:mi:ss am')
                                    and  to_date('12/15/2009 08:36:09 AM', 'mm/dd/yyyy hh:mi:ss am')Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]
    Edited by: Massimo Ruocchio on Dec 23, 2009 12:05 AM

  • Time Stamp Error while extracting data from R/3

    Hi,
        We are getting time stamp error while extracting data from R/3.
    To solve this problem we did replication and run RS_TRANSTRU_ACTIVATE_ALL program. still we are facing same problem.
    Please suggest me to solve.
    Thanks
    Subba Rao

    Hi,
    Time stamp error arises when the time stamp of the data source in source  system and target system are different.
    For we have again activate data source in R/3 system using transaction RSA5 or RSA6 and in BI system goto transaction RSDS and replicate the data source.
    You can also find time stamp details for a data source in tables ROOSGEN and ROOSOURCE tables in BI and R/3 system respectively.
    Here are some useful links.
    [R3 016 Time stamp error where is it in BI?;
    [time stamp error in bi7;
    [Timestamp error in BI7;
    Thanks,
    Venu

  • Data file time stamp on Logical Standby

    Dear All,
    My Logical Standby Database that is Oracle 10gR2 on Wondows 2003 Server is fully synced with the production database.
    If i query number of records on Logical Standby they are the same as on production.
    And when i query applied_time from dba_logstby_progress view, there is hardly a difference of second since I have configured real time apply.
    BUT the date and time stamp of my data files and index files on Logical Standby is more than 12 days old.
    I am confused, why this its like this. Is there any workout to fix that? Is it normal? or what?
    Kindly help.
    Regards, Imran

    misterimran wrote:
    Dear All,
    My Logical Standby Database that is Oracle 10gR2 on Wondows 2003 Server is fully synced with the production database.
    If i query number of records on Logical Standby they are the same as on production.
    And when i query applied_time from dba_logstby_progress view, there is hardly a difference of second since I have configured real time apply.
    BUT the date and time stamp of my data files and index files on Logical Standby is more than 12 days old.
    I am confused, why this its like this. Is there any workout to fix that? Is it normal? or what?
    Kindly help.
    Regards, Imran
    Is there any workout to fix that?
    Who said it is something to "fix"?

  • Dates and convert to Unix Time Stamp using strtotime

    I kind of asked this before but now I really need this to work since I'm currently creating a form using the Update Record Form Wizard and the Date Picker to add/update/delete tour dates and this DB was created years ago and uses Unix Time Stamps to enter dates in the DB (example: 1202596733) and I know ADDT's date picker automatically doesn't support that format but there's got to be some way to incorporate the strtotime PHP command into either the add page or the tNG.dispatcher.class.php file. But how? Has anyone experimented with this previously? I was on another forum and they told me to add this:
    $timestamp = strtotime($_POST['tourdate']);
    to my code but they didn't tell me where and nothing seems to work in making it happen. Anybody got a clue?

    Hi Sean,
    You should be able to simply add the new directory to your include path. But this might fail if relative rather than absolute paths are used
    Indeed, ADDT internally uses relative paths at various places, e.g. the file "includes/common/KT_functions.inc.php" has function named KT_getSiteRoot(), where the variable $siteroot has the following value:
    dirname(realpath(__FILE__)) . '/../..';
    In addition many scripts are defining an absolute path to other scripts, e.g. the Captcha configuration file sets the global variable "KT_CAPTCHA_TEMP_URL" to "includes/common/_temp/.captcha/" -- means that moving the ADDT libraries to a folder like "includes/ssa/" will not work without modifying whatever ADDT script which uses such a hard-coded path, and there are plenty of them.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

Maybe you are looking for