Daqmx read.vi timestamp incorrect problem (storing the timestamp from start task)

Hello,
I have a state machine with 1st state: configure DAQ where i have [daqmx create channel.vi --> daqmx timing sample clock--> DAQmx start trigger--> daqmx start trigger] connected in order
sample clock in continuous mode, 10000 samples to read and sample rate 1000 Hz ,
start trigger has rising edge selected with a dev1/PFI0 from a daq board.
next state of SM is read channels which has daqmx read.vi set to 1d waveform  Nchan Nsamp.
and the program first configures and goes to read channels state and is just waiting for the true value on PFI0,
but the time stamp is not updated to current time/ when daqmx read starts instead it is getting the initial t0 from the time when it was in configure DAQ state of my SM in other words it stores the starting time when strart task.vi was run and then updates from then on.
so in effect i am not getting the exact time stamp values while i am running the vi.
i tried to build waveform by inputting the actual current time but the chart doesnot scroll and shows only few values each reading, when i tried to input the t0 from the waveform given out by read daqmx. vi, it then behaves normally..
option #1 from this link says
http://forums.ni.com/ni/board/message?board.id=250&thread.id=47648&view=by_date_ascending&page=2
Try and do exactly what the driver does.  This
will require you to do exactly what you are doing in the posted
example.  Call the current system time immediately prior to calling the
DAQmx Read and subtract dt * x where x is the number of samples already
acquired.  This will require you to know exactly how many samples have
been acquired.  This can be found by calling the Total Samples Per
Channel Acquired property immediately prior to the DAQmx Read.  This
introduces some points of innaccuracy.  For example, you're system time
is already innaccurate to some amount.  In addition, it takes some time
between calling system time, calling the total samples acquired, and
calling the DAQmx read.  If 2 samples are acquired between calling the
system time and total samples acquired, you could be off by a few
samples.  For slower clock rates, you will have more accuracy. 
but there are no samples that are acquired until the rising edge, so the number of samples is always zero before the read operation
http://digital.ni.com/public.nsf/allkb/5D42CCB17A70A06686256DBA007C5EEA 
this link says that
and the number of samples in my waveform is constantly changing around 20-40, so i cannot really input the current time to build the waveform, thats what i can figure out for now..
can somebody tell me why this is happening or is there any fix around this, how to get the current time into my daqmx read.viso it displays the currect time on my waveform chart
Thanks,

thanks,
im using LV 8.6, daqmx driver 8.9.5.
yes the program u posted get the currect time. but see attached program thats what i have in my program exactly
if you took out the time to using the get waveform components using the waveform  from daqmx read. i still have the timestamp as the application start time. plz see attached code 8.2v and FP
the waveform time x axis is not current, it is starting from the application start time.
PS: samples to read = 10,000 and sample rate = 1000
plz help..
Attachments:
daqmx read problemp.png ‏8 KB
daqmx read problem.vi ‏36 KB

Similar Messages

  • HT201210 I cant seem to be able to update to iOS 6.1 through my PC for my iPhone 5...The error reads: 'There was a problem downloading the software for the iPhone 'Thomas Honiball'. You do not have permission to access the requested resource".... please h

    I cant seem to be able to update to iOS 6.1 through my PC for my iPhone 5...The error reads: 'There was a problem downloading the software for the iPhone 'Thomas Honiball'. You do not have permission to access the requested resource".... please help!!

    Only developer's have access to iOS 6 now. Thus, if you are a developer you have have access to the developer's forum for iOS 6.
    Otherwise you have a bootleg copy and are on yur own./

  • JDBC Receiver Adapter:Incorrect syntax near the keyword 'FROM'

    Hi All,
    I'm trying to get data from an SQL 2005 server using synchronous JDBC receiver adapter. I'm using PI 7.0. My outgoing message is as follows:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_IZIN_YUKU_REQ xmlns:ns0="http://holding.com/brd/">
    - <STATEMENT>
    - <ECZ_IZIN_YUKU action="SELECT">
      <table>ECZ_IZIN_YUKU</table>
      <access />
    - <key>
      <iy_yil compareOperation="GT">1900</iy_yil>
      </key>
      </ECZ_IZIN_YUKU>
      </STATEMENT>
      </ns0:MT_IZIN_YUKU_REQ>
    I've found the following log in the trace file:
    #1.5#0014C23BCFC900630000003D000013B000042740B0A858B1#1169058702046#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC#sap.com/com.sap.aii.af.app#com.sap.aii.adapter.jdbc.XI2JDBC.onInternalMessageBinary(Message)#J2EE_GUEST#0####fa10f5f0a65811db84410014c23bcfc9#XI XI2JDBC[CC_JDBC_RECI_BRD_TO_BHT/HUMANIST/]_2574##0#0#Error#1#com.sap.aii.adapter.jdbc.XI2JDBC#Plain###Error processing request, rollback: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ECZ_IZIN_YUKU' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'FROM'.#
    Thanks a lot..

    Hi,
    Make sure the XML structure for your SQL statement is correct. Include the all the fields in the structure of XML.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_IZIN_YUKU_REQ xmlns:ns0="http://holding.com/brd/">
    <STATEMENT>
              <TECZ_IZIN_YUKU ACTION="SELECT">
                     <TABLE>ECZ_IZIN_YUKU</TABLE>
                              <ACCESS>
                                   <EMPNO></EMPNO>
                                   <NAME></NAME>
                               </ACCESS>
                                 <KEY>
                                       <iy_yil compareOperation="GT">1900</iy_yil>
                                 </KEY>
    </TABLENAME>
    </STATEMENT>
    </ns0:MT_IZIN_YUKU_REQ>
    Best Regards

  • Problem with the text from previous year in current year appraisal (PPR)

    Hi Gurus,
    I have some problem with the text from the PPR of the previous year in the PPR current year.
    The text from the previous year have not the same displaying in the tab "previous year" of  the current year PPR.
    EXAMPLE :
    this is write in the PPR of year 2009 in Individual Targets without Incentives (tab My S-imple) :
    -Aufrechterhaltung der MA motivation, in dieser Zeit der Neuorientierung.
    -G1 Unterstüzung
    -Fachübergreifende Teamarbeit ausbauen
    Gefährdungsbeurteilung weiter führen
    -tragen von PSA einfordern
    -VI Opt.(Intervalle)
    -Azubi und Praktikanten AUsbildung unterstüzen
    and this is what I have in the PPR of 2010 in Individual Targets without Incentives (tab Previous Year's Targets):
    -Aufrechterhaltung der MA motivation, in dieser Zeit der-Aufrechterhaltung der MA motivation, in dieser Zeit der
    -Aufrechterhaltung der MA motivation, in dieser Zeit der
    -Aufrechterhaltung der MA motivation, in dieser Zeit der
    -Aufrechterhaltung der MA motivation, in dieser Zeit der
    -Aufrechterhaltung der MA motivation, in dieser Zeit der
    -Aufrechterhaltung der MA motivation, in dieser Zeit der
    -Aufrechterhaltung der MA motivation, in dieser Zeit der
    there is the error, all the end of the text isn't displayed and the begin of the text is repeated.
    I think that this issue is created at the creation of the PPR.
    If someone have a idea he is welcom.
    thanks and regards

    Hi,
    Please follow the note:425601,
    Go to Tcode: OBA5 change the error messge into warning message. carry out the settlement and roll abck the warning message into the error message after sucessfull settlement.
    Reward points if found useful.
    Thanks!

  • There was a problem verifying the certificate from the server

    i can not sign in to my lync server in client user and the error message is "There was a problem verifying the certificate from the server".
    i can sign in in my lync server by any account but i can not sign in in other pc clients.

    Hi,there,
    Just some additional info...
    Please go through the following old threads with the same error message
    http://social.technet.microsoft.com/Forums/en-US/ocscertificates/thread/19d74620-9ea8-4f19-bc01-25387e4ee380/
    http://social.technet.microsoft.com/Forums/en-US/ocscertificates/thread/7a973094-6cd1-4f3f-9af0-6d330a9b8428 
    http://social.technet.microsoft.com/Forums/en-US/ocscertificates/thread/4034e791-6c3c-4c35-b936-bca734204fd4/ 
    Hope these helpful!
    B/R
    Sharon
    Sharon Shen
    TechNet Community Support
    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.

  • CA issue - Workstation signin "There was a problem verifying the certificate from the server"

    Hi,
    We have issues with all workstations on our domain. I just recently setup Lync 2013 server on a windows 2012 OS. When I went to test sign-in, I received a message "There was
    a problem verifying the certificate from the server". To fix this issue, I had to download the cert and import it into Trust Root Certification Authorities on the local workstation. This will be impossible if I have to do this for multiple machines.
    Is there a way around  this? Why is it asking to do this?
    Thanks guys, much appreciated.
    MM

    You can follow the instructions here to use Group Policy to install your root certificate to all your workstations.
    Or you could re-deploy your CA as an Enterprise CA.
    Hi Georg,
    Thank you for your reply.
    I did deploy my CA as an Enterprise CA..... Not sure why its still asking me to install on workstations?
    How can I confirm its an Enterprise CA?
    Thanks,
    MM

  • Problem with the% deviation from Project Server 2010 field

    hello
    I have a problem with the% deviation from Project Server 2010 field.
    Within a file or project, this project contains tasks.
    Each task has completed the field% deviation.
    Within the row "Summary" in the field of% deviation does not perform the sum of all fields of tasks.
    Only occurs on certain projects, these projects have the view of PR Progress Report
    Anyone know happens?
    thank you very much

    Hi
    Sorry, I'll be more specific now.
    Within the field% deviation. Your settings in PWA is:
    The formula for field% Deviation:
    Str (IIf ([Job baseline] = 0; IIf ([Working] = 0, 0, 100); IIf ([Working] = 0; -100; Int (100 * ([Job] - [Work Online base]) / [Working baseline])))) + "%"
    Under the heading rows Calculation Summary:
    > Use formula.
    Within the field Allocation Calculation of rows:
    > It is labeled the "Apply unless you manually specify".
    The field [Job] and field [Job baseline] are fields Pack project server.
    The error is in project, in the list of tasks.
    In the top row, this row summary makes the sum of the ranks of the tasks of the file.
    But in my case only in the summary field the same value appears in the tasks.
    In all the cells in column% deviation appears the same value.
    I hope it helps.
    thank you very much

  • My macbook doesn't work. After pressing down the power button I hear the sound from starting the apple symbol appears and after a while a sign prohibited appears on the place of the apple symbol

    My macbook doesn't work. After pressing down the power button I hear the sound from starting the apple symbol appears and after a while a sign prohibited appears on the place of the apple symbol

    Hi Kappy Thanks for your answer. I did a reboot on my Macbook as suggested and this operation is going on non stop for 14 hours and on the screen always appears the same message that you can see in the picture in attachment. Any ideas?

  • Can't stop the syncronizer from starting

    I am runnning Elements 8 on an XP system.  When the Photoshop.Com syncronizer runs, it sucks the life out of my CPU.  That would be ok with me because it appears I should be able to tell PS8 to only sync when the system is idle, however I can't keep the syncronizer from starting up.
    I stop the syncronizer and I also have turned off the flag to sync when new ablums are created.  However if I try to rename an album, the syncronizer fires up no matter what I do.  Until the syncronizer stops, I can't use my PC.
    Is there a way to fix this?
    Thanks,
    Joe

    On the welcome screen there is an option to manage the account, Sign out from there and it shoould be the perfect. Or after launching the program (Organizer or the Editor) go to the menu bar and click on your name to sign out. Once you sign out it will not syncronize.
    You can also try to Open the task manager and under processes end the one that says as backup.

  • I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have-I guess I can auto start the DVD but would prefer a button-how and where would I put this "play all" marker??

    I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have…I guess I can auto start the DVD but would prefer a button…how and where would I put this "play all" marker?? Thanks..

    The start chapter button is a play the whole movie button regardless of how many other markers you have.
    Once a DVD starts playing it continues to the end.
    Chapters marker simply gives the viewer a place to start playback whether it be the start, middle or near the end.
    Al

  • How to stop the dispatcher from starting the server?

    Hi all,
      I am trying to disable the dispatcher from starting the server automatically, Both in the service or daemon, and in the go.bat files.
    Thanks
    Jeremy

    Right now, I start the state from the go.bat script.
    Then I start the dispatcher from the go.bat script
    what happens next, (the default setting after intsallation) is that the dispatcher calls the server in cmdline mode.
    I would like to be able to start the 3 independently for troubleshooting.
    Even when I try to use windows services to start them, I can only start the "state" and "dispatcher" service.  Some how the dispatcher is calling the server, regardless of how I start the dispatcher.
    Thanks
    Jeremy

  • Mdx : Sum up the measure from start but need only non empty rows

    Hi All
    i have created a calculated measure where it suming up all its previous avaialable values based on Date dimension.
    Everything is working but we are getting all rows from that datetimension . how can get only till current date,
    SUM(NULL:[Date].[Hierarchy].currentmember,[Measures].[SIMID])
    Surendra Thota

    Hi Surendra,
    According to your description, you want to calculate the sum up the measure from start for those non empty rows, right?
    In this case, please try the query below.
    WITH MEMBER [Measures].[Sum from start]
    AS
    SUM ({NULL:[Date].[Calendar].CurrentMember},
    [Measures].[Internet Sales Amount])
    SELECT {[Measures].[Internet Sales Amount],[Measures].[Sum from start]} ON 0 ,
    nonempty([Date].[Calendar].[Calendar Year].MEMBERS) ON 1
    FROM [Adventure Works]
    Result
    Besides, here is a blog which describe various way to calculate running total, please see:
    http://blog.sqltechie.com/2011/01/various-way-to-calculate-running-total.html
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Windows 7 "a patch is preventing the system from starting" error code 0x490

    I have a Windows 7 machine.
    It was working fine.
    Now it will not boot.
    When I try system repair, it says:
    Root cause found
    A patch is preventing the system from starting.
    Repair action: System file integrity cheack and repair
    Result: Failed. Error code 0x490
    I have tried doing safe mode, last known good configuration etc and nothing works
    Also, I tried to restore to an early checkpoint, but it claims that none exist, even thought I know we save restore points.
    Please advise?

    "I suggest running Command Prompt from the repair menu and then Check Disk:
    1. Insert the Windows 7 Disc and boot from it.
    2. In the recovery menu, choose Command Prompt .
    3. Type the following command and press Enter:
    Chkdsk /r /f
    Please also try the following commands and press Enter at the end of each line:
    Ren C:\Windows\winsxs\pending.xml pending.old
    Ren C:\windows\SoftwareDistribution SDOLD
    Regedit.exe
    When the register editor opens, please navigate to the following key:
    HKEY_LOCAL_MACHINE\COMPONENTS:
    * High light the COMPONENTS key. Please check if the following values exist in the right pane:
    AdvancedInstallersNeedResolving 
    PendingXmlIdentifier
    * If so, please right click on them and choose Delete them. Confirm the operation.
    * Restart the computer."
    Quote from : Vivian Xing
    http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/227bcd32-f0dd-4aab-942e-07e0cadec083

  • I'm having a problem syncing the songs from the playlist on my computer to my iPod. any ideas ?

    I  am having a problem syncing the music playlist from my computer to my iPod. Any ideas?

    What happens when you try?
    Have you successfully synced music from that iTunes library/computer before?
    Do the songs play in iTunes on the computer:?

  • Hello I have a problem with the iPhone from China apple store

    Hello
    I have a problem with the iPhone and I do not know who to turn to.
    I bought an iphone 4 in the Apple Store in Shanghai, and it has a bug! I changed the regional settings to my native language, but the search in safari goes site the Google.cn.
    What should I do? On this particular no one says. This is clearly a bug!
    Also in my phone no youtube. I know that youtube banned in China, but I'm not in China now!
    Why do not you strapped local restrictions on the location of the phone??

    eh...
    The reason I bought the iphone in China - the price is reduced by 50% сompared to the price in Russia.
    I just thought that these restrictions are useless. And Apple should remove them when you change the region ...

Maybe you are looking for