Time stamps not linear

Hi,
I have a DAQ USB-6251 driven by labview.
The time stamps on the text file have backward and forward jumps in them.  See attached for picture.
They increase linearly for about 12000 samples, then jump backwards
about a 3 sec, linearly increase for about 1000, then jump forward
about 6 seconds.  This cycle then repeats ie increasing nice and
linearly for about 12000 samples, jumping back etc.
I suspect there is a buffer somewhere which fills up and then acts strangly when trying to reset.
Any explanations?  Any solutions?
Here's some further info about my setup:
Producer loop:
I generate a continuous analog output signal which I feed back into one of analog input pins which I also continuously acquire.
The generation and acquisition both have sample rates of 4096
samples/sec and 1024 samples are set to acquire/generate per loop.
The recorded input is enqueued.
Consumer loop:
Dequeues data and write to text file.
Regards,
Jamie
Using Labview version 8.0
Attachments:
time stamps not linear.jpg ‏17 KB

Ben,
Maybe this is a good chance for me to learn (be convinced of) something then.  I'd try this out for myself on hw, but I've got tests running now.
Let's suppose I have both an AI and an AO task, both set up to start off the same sample clock.  However, the AO outputs on the leading edge of a clock while the AI samples on the trailing edge of the clock.  Let's further stipulate that the clock is generated by an on-board counter at 5 kHz with 90% duty cycle.  So the AO update occurs 180 microseconds before the AI.  How do waveforms handle this offset in t0?  Will t0 simply be set to 0 because of the use of an "external" sampling clock?  Or will the two t0 values be equal and non-zero?  Or will they be sometimes equal and sometimes different, depending on the "phase" of the system clock -- either the 1 msec one or the 16 msec one used for system timestamps?
Now, concerning triggering:  Does t0 represent the time of the trigger?  Or of the first sample / output *after* the trigger?  Or is it the time you call DAQmx Start prior to receiving a trigger signal?
Other concern: even when not *strictly* necessary, I try to make a habit of making code that runs pretty efficiently, unless that puts an undue burden on development / maintenance effort.  My experience with processing large arrays vs. processing clusters containing large arrays has suggested that pure arrays are typically significantly more efficient to manage.  (I'm sure it depends on sizes and kinds of processing too.)  Aren't waveforms essentially cluster-like?
Well, enough of the blah, blah, blah.  I really *am* interested.  I know many of the analysis functions prefer (if not require) waveform inputs rather than raw arrays these days, so there are some clear code simplicity advantages to waveforms IF I can be convinced that I'm fully informed of the downsides and gotchas.  (Another example of worry: when integrating a waveform, how does the floating point roundoff accumulate from the 'dt' value?  Will results late in a long array contain more cumulative roundoff error?)
-Kevin P.

Similar Messages

  • Windows 8 Last Access Time Stamps not working

     Hi I have been trying to fix a issue with last access time stamps not working when I open a file
    so will have time on created modified and accessed from when created but some are wrong like one file
    saying
    created ‎Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    modified  ‎Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    accessed Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    I'm not sure what can cause this please help thank you

    Hi whowhatwere,
    Are you only confused about the last access time not change when you open a file?
    If you want to know more details about modified and created time, we can refer to the following KB.
    http://support.microsoft.com/kb/299648/en-us
    About the accessed time, please refer to the following blog.
    How do I access a file without updating its last-access time?
    http://blogs.msdn.com/b/oldnewthing/archive/2011/10/10/10222560.aspx
    The blog mentioned that: In fact, the intuitive definition of access is more specific: It's "the last time I opened, modified, printed, or otherwise performed some sort of purposeful action on the file."
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Date and Time Stamp not showing up on import?

    I recorded with date and time stamp on my Sony Sr-11 and when I import it in iMovie 11 it's not displayed.  Please help so when I import it shows up in iMovie 11.

    Playing back the tape in the camcorder that originally recorded the tape with the display output activated, doesn't mean that you actually recorded the date & time as part of the video. Check the user's manual of your camcorder to find out how to record date & time as part of the image - not just to a data track. FCP doesn't access the data code info.
    -DH

  • Time Stamp not affected by change of calculated fields.

    Dear Experts,
    We have several calculated fields that are depended on values of lookup records or the system-time.
    I experienced during recalculation that when the calculated field changes the Time Stamp did NOT change. This change did also NOT trigger the workflow with Trigger Action: Record Update. AND the record is not Syndicated because the syndication map has Suppress Unchanged Records.
    Has anyone an idea how to solve this?
    Kind regards,
    Job Jansen

    Dear Kanstantsin,
    I don't know what you mean by "simple field" but I have 2 calculated fields one is Text and the other is Boolean. In both cases the Time Stamp is not updated during recalculation.
    Of course both fields are selected fields in the Time Stamp field.
    Kind Regards,
    Job Jansen

  • Time Stamp not being created correctly

    Afternoon,
    Unfortunately, when writing a timestamp using GET TIME STAMP FIELD f the time contained with field f is one hour behind what it should be.
    Also when we use the command CONVERT DATE d TIME t DAYLIGHT SAVING TIME dst INTO TIMESTAMP tst TIMEZONE tz  where sy-uzeit = t, sy-datum = d, sy-dayst = dst (X) and  sy-zonlo = GMTUK the time within tst is still one hour behind.
    The system time is set to GMTUK as is my userID. This issue has arisen since the UK switched to daylight saving time last Sunday.
    If anyone can provide an explanation as to why this is I would appreciate it.
    Thanks and regards
    John.

    Sudheer,
    Thanks for pointing me in the direction of that blog. It provided to be very useful. When getting a time stamp the system always returns UTC (Universal Time Coordinated) and ignores if daylight saving time is in operation.
    To convert a timestamp you use convert time stamp and use the time zone sy-zonlo to get the correct local time.
    Thanks and regards
    John.

  • Time stamp not recognized by Excel

    I am working on a VI to collect data from 16 load cells. I am using FieldPoint. The VI saves this data to Excel and puts a timestamp along with the data. The problem is this. The number in the timestamp cannot be converted by Excel into a useable time. I have placed a probe on both sides of the conversion from the timestamp and verified the problem. There is probably another way to skin this cat.
    gasseous
    Message Edited by gasseous on 07-29-2008 01:20 PM
    gasseous
    One test is worth a thousand expert opinions
    Attachments:
    FE1410 DRH 4.vi ‏35 KB

    I went in and subtracted (5) hours x (60) seconds x (60) minutes from the 126316800 constant. This made the time correct. Surely NI has come up with a better method than this? I need to take this system to all corners of the globe and hate to have to adjust the time to match.
    I also had to delete the date time to seconds vi and associated hookup in order to get the time to work. I replaced all of this with the get date time vi and it seems to work fine. Excel now can convert the output to a useable number.
    Thank you for all the help!
    gasseous
    One test is worth a thousand expert opinions
    Attachments:
    FE1410 DRH 5.vi ‏36 KB
    FE1410 DRH 5.xlsx ‏14 KB

  • Receiver FTP processing parameters should not add time stamp

    Hi Gurus,
               I want to write the file at receiver end with the same name as in source directory.. (I dont want the time stamp to be added to my file at receiver side)
             For that i have configured processing parameters as
                1) File Construction mode --- create
                2) checked Overwrite existing file
                3) Put File -
    use temporary file
                4) Temporary File Name Scheme --- rec_*.tmp
                5) File type -
    binary
    But the files are not written in target directory..
    How to troubleshoot it...
    Thanks and Regards,
    govada.

    Hi,
    open RWB - coomponent monitoring
    and then - adapter monitoring or communication channel monitoring
    (depending on SP of your XI)
    then find your channel and you will see the error - if there is any
    BTW
    if you don't want the timestamp just don't use:
    Add Time Stamp property in the file adapter
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Time stamp is not getting updated for File Adapter in communication channel

    Hi All,
    Since yesterday, I am observing that the time stamp of communication channel for File adapter is not gettingupdated some times.
    I had to stop and start the communication channel to update the time stamp.Please let me know if anyone has come across such issue or any useful notes on this.I could not find any related notes on Market place.
    Regards,
    Dinakar

    Hi,
    This is happening only with one communication channel which is sender in derection.Any reason why it is happening like this?since the restart of the communication channel it is getting update now.I really do not know how to delete/create the communication channels as this was done our PI consultants.Pls guide me.
    Regards,
    Dinakar

  • Folders last modified time stamp are not updated in Windows 7

    After changing any .cpp file in Visual Studio, the last modified time stamp for the file's folder
    IS NOT updated. What's happening ?
    However when I change a Word (.docx) file, the last modified time stamp for the file's folder
    IS updated ! How come ?

    Hi,
    If you thought this issue gets worse and if you have already set NtfsDisblesLastAccessUpdate to 0, then please revoke it to 1.
    From the above Blog we can see that in Windows 7, the "Last Modified" field on log files is not updated when a program attempts to open the file or the utility is stopped, this is a design change to NTFS , becase we cache the metadata for
    folder contents and do not refresh it until a handle is closed on an open file or an explicit call is made to retrieve the properties of an individual file.
    Per your current issue that even if you closed these Vistual Studio files, the timestamp still didn't update. Please try the following and check whether any of them work:
    - open the file in a second program
    - view the proprties of the file
    - "dir <filename>" at a command prompt 
    In addition, if you edit these Vistual Studio files with Notepad(Before doing that, please close all the programs include Vistual Studio) and try to reproduce the issue, does the issue still occur?
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Time stamp does not update automatically

    Hi, All. I want include the time stamp (yyyy-mo-dd-min-sec) in the file name. However, the value of the time stamp does not update automatically/synchronizes with the computer clock at each new run. I need to do it manually with the right click and update the time to the current.
    How can I solve this? Thanks a lot in advance.

    What does this have to do with NI counter/timer hardware?
    What language are you using and what function are you using to get a timestamp? If the language is LabVIEW, then all you need is Get Date/Time in Seconds. If you are using a front panel Time Stamp control, then you are using the incorrect function.

  • Date and time stamp of user status does not appear

    Hi, gurus.
    For a specific transaction type, the date and time stamps for certain user statuses do not appear within the transaction although these missing date/time stamps are captured in the database upon checking by our ABAP.  It seems that this problem started when I added several statuses and rearranged their status numbers in the status profile last year.
    I'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions. 
    E.g.
    Status Profile                                                                               
    Status No.     ---       Status Code      ---            Short Text                                       
    10            ---                    IP1L                   ---       In Process 1st Level                        
    20            ---                    IP2L                   ---       In Process 2nd Level                          
    Date Profile
    Display Position   ---       Date Type
    1                          ---       In Process 1st Level       
    2                          ---       In Process 2nd Level
    We're going to create and assign a new status profile for the concerned transaction type.  We'll make sure that this status profile is sychronized with the date profile.  Hopefully, the date/time stamps will all be displayed in prospective transactions but the problem on the missing date/time stamps in historical transactions will still remain.
    Pls. help us.
    Thanks in advance,
    Theresa

    I'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions.
    No

  • Time stamp & array passed in a cluster through DLL are not accepted by Teststand

    I am trying to pass  Timestamp & array data [string array]   in a cluster  from DLL  is not  getting recognized by testsand.
    The action module (DLL)  Output (cluster)  generates   error "System Level Exception.[Error Code: -17502] "
    the png file shows the cluster
    I spoke to NI support & they  suppose that its time stamp that generates error
    but some fields (numeric, string) i am able to read
    Attachments:
    clustererror.PNG ‏41 KB

    Hello aparab,
    here is a link to another forum, which solves your issue:
    time stamp, data type for dll:
    http://forums.ni.com/t5/LabVIEW/time-stamp-data-type-for-dll/td-p/1085375
    to summarize:
    there are two possibilities to pass a cluster with a timestamp from LV to TS:
    1. use a string for the timestamp, although a numeric double might be easier to work with in TestStand
    2. use packed library

  • 5800 does not retain date&time stamp for SMS trans...

    I just got a new 5800XM a week ago.  I upgraded from a Samsung SGH-C260.  When I tried to copy the SMS messages off my SIM and on to the Nokia, all the date and time information of the original messages was lost.  I tried the SIM in a new Samsung Star and it was able to read the date and time information without trouble, so obviously the information is there and readable.
    Does anyone know of a way to successfully transfer these SMS messages without losing the date and time information?
    Thanks!

    Paresh - my understanding of the original post is that when she does show startup-config that no date is there. There is an explanation for this.
    Narayan - the service timestamps is a good command and I agree that specifying datetime is better than the default of displaying uptime. But this command does not have anything to do with the date in the config file.
    What does control the presence (or absence in this case) is whether the router has authoritative time at the time the config was changed or saved. The router can have authoritative time by use of the clock set command or by use of NTP. I believe that NTP is a much better solution.
    So if the router really knows correct time it will put the time stamp into the config. And if the router does not know correct time it will supress the time stamp. From the fact that the startup config does not have a time stamp we can believe that the router did not know authoritative time when the config was saved. And I do not know any good way to go back and discover it.
    HTH
    Rick

  • LVM file time stamps - time stamps are not uniform

    My LVM files do not have evenly separated time stamps.  Is this by design?  I want to record data from multiple channels at say 100S/s and see this in my LVM file.  Ideally each of the 100 data points would be separated by 0.01s.  This is not what I get.
    I have tried changing the samples per second and the samples per channel inputs on my timing and read VIs but I don't get even spacing.  I have figured out that the DAQmx Read VI always cuts the number of samples in the file in half.  So sampling at 100S/s gives me 50 data points per second in my LVM file.  Given that it cuts the points in half, I would like the spacing to be .00, .02, .04 etc., but I get this:  .00, .01, .02, .03, .08, .09, .10, .11, .16, .17, .18, .19... 
    Is this normal or am I missing something?
    HP

    Unfortunately, I am not a DAQ user (the last time I really used DAQ was 7 years ago, before DAQmx was created). So, I have never seen your DAQ read issue.
    LVM, on the other hand, I am intimately familiar with.  Using the write to spreadsheet will almost always be faster than the LVM write.  Under the hood, LVM write uses write to spreadsheet, but also handles a lot of other bookkeeping (you can look yourself by converting an LVM Express VI to a normal VI and diving into it).  Your biggest issue will be saving the timestamps correctly.  If you are using the waveform datatype from the DAQ read, the timestamp is included, so getting it right is not an issue.  Formatting it in a text format for save is.
    Precisely what are you trying to do?  From you earlier post, it appeared you were taking one set of several channels of data every 10ms and writing to disk.  Depending on how you use the LVM write, you may be attempting to open the file and close it at every write.  This would be very slow and could account for your jitter.  Saving at every data point is also very inefficient.  You can stream at disk rate limited speeds (~10 - 60 MBytes/sec, depending on your hardware) if you optimize your buffer and disk write sizes. Optimum disk write size is about 65,000 bytes for Windows XP.  Your data is probably far less than that.
    Please post more details and code and I will try to help you more.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Camcorder time/date stamp not working

    I am working on a new movie. I loaded about 20 minutes of raw mini DV from my camcorder, and it loaded onto the clips plane just fine. I wanted to add a second tape, made on the same camcorder at a slightly later date, but this tape does not change clips for every scene change. I checked iMovie preferences, and the coreect box is checked; I repaired permissions. The second tape still grinds along for nine minutes and changed for each clip. Does anybody have any thoughts? Thanks in advance for your help.
    Mike Ryan

    Welcome to iMovie Discussions.
    If the 2nd tape was ".. made on the same camcorder at a slightly later date, but this tape does not change clips for every scene change.." that suggests that the internal clock battery in the camcorder had run down, so there was no date/time stamp.
    Some camcorders use a separate flat, coin-sized cell to keep the clock going, and will do so for months - or years! - after the main camcorder battery has gone flat.
    Others have a small rechargeable cell inside, and that gets recharged by the main battery. So if, or when, that main battery goes flat, the extra rechargeable cell also goes flat after a few weeks or months - hence no date or time.
    It sounds as if this is a seldom-used camcorder, and that the main camcorder battery went flat, or was removed, and then the internal date/time cell ran out of juice.
    Before that camcorder is used again, its removeable/replaceable date/time cell should be replaced, or - if it's an internal recharging cell - the main battery should be recharged and left on the camcorder for an hour before it's used. Then - in either case - the camcorder's clock should be reset before shooting.

Maybe you are looking for

  • Flash 8 crashing

    Hi everyone, My Flash 8 programme is creating problems. Whilst working on an fla, I save my work every five minutes. However, after some time, I get the following message: Could not save as abc.fla. The file may be read-only or is already open in ano

  • Conditional Formula

    Hi, I need to accomplish the following: I need to create a formula that says if it was a good or bad quarter: If number of products sold was less than x i need to display the value "bad" in the respective column otherwise display "good". Using the IF

  • Excise for Asset

    Hi, While creating the purchase order we give the asset master only .in this case how to calcule the excise value based on the given tax code?. is there any possibilities without maintaing the material as asset in j1id? Regards, Renuga.A

  • Why does my itouch 1st generation have app store, how do i get it on?

    I have a itouch 1st generation, how do i get the app store on it, i do not have the app store logo on my dest top at all

  • Insert images problems

    When I insert PNG images in Captivate 5.5, the outlines change color and become red, green, etc. I use PNG images because it allows me to have forms with the center transparent (like the gray lines in the video). Is it the format that causes problems