AnalogWafeform Timing.StartTime is the same for the different records continues mode!

We read samples from the Commission NI 6132 DAQmx interface in continuous mode, i.e.

inputTask.Timing.ConfigureSampleClock (string. Empty, 1000000, SampleClockActiveEdge.Falling, SampleQuantityMode.ContinuousSamples, 1000);

We read the analog waveform records successfully in call back, and we look at samples - they are correct.
We need to know the moment when trigger onset occurred for each acquisition.

The data is read to the variable
AnalogWaveform awf =...;

and we do the following

If (AWF. IsPrecisionTimingInitialized)
{
InitialXTimeSeconds = awf. PrecisionTiming.StartTime.WholeSeconds;
InitialXTimeFraction = awf. PrecisionTiming.StartTime.FractionalSeconds;
}

The problem: InitialXTimeSeconds and InitialXTimeFraction are the same for all records and equal at the beginning of the task, i.e. time of the acquisition of the first record. What's wrong?

Hey, I noticed that you posted this question in another forum here. Continue to work on this in this forum.

Tags: NI Software

Similar Questions

  • How to get the different records for the date max.

    Hi all

    Here is the sample sql for sample table and data.

    Create table student (dept_id number(10), first_name varchar2(10),last_name varchar2(10),join_date date,years_attended number(10));

    insert into student values (1,'Ann','Coleman',to_date('3/7/1917','MM/DD/YYYY'),4);
    insert into student values (1,'Ann','Coleman',to_date('3/7/1916','MM/DD/YYYY'),5);
    insert into student values (2,'Rock','Star',to_date('1/1/1920','MM/DD/YYYY'),5);
    insert into student values (2,'Rock','Star',to_date('1/1/1921','MM/DD/YYYY'),6);
    insert into student values (3,'Jack','Smith',to_date('7/1/1900','MM/DD/YYYY'),3);

    insert into student values (3,'Jack','Smith',to_date('7/1/1901','MM/DD/YYYY'),4);

    commit;

    I need to get maximum date records when the name and dep_id corresponds to. I wrote the query below and it becomes the expected result, but I'm not sure it's quite effective.

    SELECT s.dept_id, s.first_name,s.years_attended

    FROM (SELECT dept, MAX (join_date) join_date

    STUDENT GROUP BY dept_id) x

    Student JOIN s ON x.dept_id = s.dept_id AND x.join_date = s.join_date;

    This above query returns records like below, and this is the goal.

    DEPT_ID NAME YEARS_ATTENDED

    1                         Ann                                4

    2                         Rock                              6

    3                         Jack                              4

    Can you please let me know the query SQL I wrote is effective or not? This sample table may have less data, but I'm dealing with millions of records.

    Hello

    Thanks for posting CREATE TABLE and INSERT statement. This really helps.

    Here's a solution. I also added a name that seems logical. In which case you can delete:

    Select dept_id, first_name, last_name

    , max (years_attended) Dungeon years_attended (last dense_rank order by join_date)

    the student

    Group of dept_id, first_name, last_name;

    DEPT_ID FIRST_NAME LAST_NAME YEARS_ATTENDED

    ---------- ---------- ---------- --------------

    1 Ann Coleman 4

    Rock 2 star 6

    3 Jack Smith 4

    Kind regards.

    Alberto

  • PHP code takes the first record in the database regardless of the selected one

    I struggled for hours with this trying to see why no matter what file is selected, the record displayed is always the first. It must be a stupid mistake on my part, but I can't see it.

    I use DW CC 2015 with WebAssist server for server code additions. I looked at the database itself, and it's OK.

    Test data

    Capture.JPG

    Copy the following code enumerates the various documents in the database. (I removed my HTML that works well for brevity).

    <? php require_once('.. /.. /.. / Connections/Terrier.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/rsobj.php');? >

    <? PHP

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("" SELECT * FROM documents ' ");

    $rsDocuments-> execute();

    ? >

    <! doctype html > < html >

    "' Snip...

    < p align = "left" > < a href = "add_terrier_document.php" > add new record of Documents < /a > < /p >

    < table width = "100%" border = "1" cellspacing = "2" cellpadding = "2" >

    < tbody >

    < b >

    < td width = "26%" align = "left" > < strong title > < / strong > < table >

    < td width = "52%" align = "left" > < strong text > < / strong > < table >

    < td width = "6%" align = "center" > < table >

    < td width = "6%" align = "center" > < table >

    < td width = "6%" align = "center" > < table >

    < /tr >

    <? PHP

    {While (! $rsDocuments-> {atEnd())}

    ? >

    < b >

    < td > <? PHP echo ($rsDocuments-> getColumnVal ("dc_title"));? > < table >

    < td > <? PHP echo ($rsDocuments-> getColumnVal ("dc_text"));? > < table >

    < td width = "6%" align = "center" > < a href = "view_terrier_document.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> view < /a > < table >"

    < td width = "6%" align = "center" > < a href = "edit_terrier_document.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> edit < /a > < table >"

    < td width = "6%" align = "center" > < a href = "confirm_terrier_document_delete.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> delete < /a > < table >"

    < /tr >

    <? PHP

    $rsDocuments-> moveNext();

    }

    $rsDocuments-> moveFirst(); return the RS to the first record

    ? >

    < / tbody >

    < /table >

    < a href = "<?" PHP echo $rsDocuments-> getFirstPageLink();? > "> first < /a > - < a href =" <? PHP echo $rsDocuments-> getNextPageLink();? > "> Next < /a > - < a href =" <? PHP echo $rsDocuments-> getPrevPageLink();? > "> previous < /a > - < a href =" <? PHP echo $rsDocuments-> getLastPageLink();? > "> last < /a >"

    < p >

    .... SNIP

    The table shows the different records in the database. I can go through the files back and forth and pick any one to edit - say one-third.

    The PHP code creates the URL of http:// localhost/priory_database_2/gateway/Terrier/documentation/edit_terrier_document.php?dc_in dex = 3

    However, the record that is displayed is always record 1, regardless of the currently selected folder.

    The edition code (less HTML) is.

    <? php require_once('.. /.. /.. / Connections/Terrier.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/rsobj.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/queryobj.php');? >

    <? PHP

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("SELECT * FROM documents ORDER BY dc_index ASC");

    $rsDocuments-> execute();

    ? >

    <? PHP

    If (isset($_POST["submit"]): isset($_POST["submit_x"])) {}

    $UpdateQuery = new WA_MySQLi_Query ($Terrier);

    $UpdateQuery-> action = 'put up-to-date. "

    $UpdateQuery-> table = 'documents '.

    $UpdateQuery-> bindColumn ("dc_index", "s", "".) "((isset($_POST["dc_index"])))? $_POST ["dc_index"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("dc_title", "s", "".) "((isset($_POST["dc_title"])))? $_POST ["dc_title"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("dc_text", "s", "".) "((isset($_POST["dc_text"])))? $_POST ["dc_text"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ('date_recorded', "s", "".) "((isset($_POST["date_recorded"])))? $_POST ["date_recorded"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("date_update", "s", "".) "((isset($_POST["date_update"])))? $_POST ["date_update"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> addFilter ('dc_index', '=', 'i', ' ".) () $_GET ['dc_index']). » ») ;

    $UpdateQuery-> execute();

    $UpdateGoTo = 'index.php ';

    "If (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo? rel2abs ($UpdateGoTo, dirname (__FILE__)):" ";" "

    $UpdateQuery-> redirect ($UpdateGoTo);

    }

    ? >

    ..... Snip


    < /table >

    < h3 align = "center" > change the document details < / h3 >

    < form id = "AddDocumentRecord" name = "AddDocumentRecord" method = "post" >

    < label for = "dc_title" > title

    < name textarea = "dc_title" cols = "150" lines = "3" maxlength = "300" id = "title" > <? PHP echo ($rsDocuments-> getColumnVal ("dc_title"));? > < / textarea >

    < / label >

    < label for = "dc_text" > Description

    < name textarea = "dc_text" cols = "150" lines = "20" maxlength = "60000" id = "text" > <? PHP echo ($rsDocuments-> getColumnVal ("dc_text"));? > < / textarea >

    < label for 'date_recorded' = > registration Date:

    < name textarea = 'date_recorded' cols = "50" rows = "1" maxlength = "20" id = 'date' > <? PHP echo ($rsDocuments-> getColumnVal ("date_recorded"));? > < / textarea >

    < / label >

    < label for = "date_update" > Date of last update:

    < name textarea = "date_update" cols = "50" rows = "1" maxlength = "20" id = "Refresh" > <? PHP echo ($rsDocuments-> getColumnVal ("date_update"));? > < / textarea >

    < / label >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" >

    < input name = "dc_index" type = "hidden" id = "dc_index" value = "<?" PHP echo ((isset($_POST["dc_index"]))? $_POST ["dc_index"] ":" "")? > ">"

    < / make >

    ... Snip

    The query for the edit page should look like

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("SELECT * FROM documents WHERE dc_index =?");

    $rsDocuments-> bindParam ('i', ' ".) "(isset($_GET['dc_index']))? $_GET ['dc_index']:" ")". "" », «-1 ») ;

    $rsDocuments-> execute();

    What this did that select a recording with a value of dc_index.

  • After installing firefox os native app appears with a generic icon, which is the same for each of them

    I solve problems reinstall B2G ZTE provider, but all the native application like phone, camera msg etc apperars with a generic icon without staining, it is the same for each of them.

    some app have been updated, i.e. the market and in this case a correct icon appears, but others not update appears with a generic icon uncolored, customized with the name of the application text only.

    my phone provider was movistar, the manufacturer was zte and the model is open from zte.

    I need help to install the correct icons without having to completely reinstall the system if it were possible. Otherwise, the help is to know how to reinstall B2G correct icons

    Hi Josefer,

    I'm sorry to hear that you have problems with your Firefox OS. What are the instructions did you follow to Flash your device ZTE open? Did you receive errors in the process?

    I would say the best way to solve this problem would be to reset your device.

    Warning: Resetting your phone will remove all data stored on the device, including applications, data from the calendar, e-mail accounts and settings.

    To reset the device, follow these instructions:

    1. Open the settings application.
    2. Press the button of device information.
    3. Press the button more than information.
    4. Press the Reset button.
    5. Press OK to continue or Cancel to cancel.

    If the problem persists, you may need to reflash your device using the construction and the instructions available on the download page of ZTE:

    In addition, please remember that the best place to find support for questions specific to the device is directly with the OEM, as they provide the device-specific builds.

    We hope that this problem fixed the problem you had. Please report to us if this helped!

    Thank you!

    -Ralph

  • Air ipad 2 at the same price in different stores for Apple in California?

    Air ipad 2 at the same price in different stores for Apple in California?

    To different Apple store, Yes. Some other retailers can offer a small discount (Costco is about $ 20 cheaper, for example). but for the most part, it will be the same price regardless of where you buy it.

  • I am trying to install a program and I get entry point getdlldirectoryw could not be found in the library of links Dynamics kernel32.dll file and the same for shreggetvaluesw to shlwapi.dll

    I am trying to install a program and I get entry point getdlldirectoryw could not be found in the library of links Dynamics kernel32.dll file and the same for shreggetvaluesw in shlwapi.dll. How can I fix the problem.

    You have all your current updates?
    Go to windows updates and see if there are updates that you do not have installed.
    The error message seems to indicate that your copy of XP has not been updated.

    Updated and let us know if you still receive the error message.

    Thank you

    Marilyn

  • possible to have 2 different application fields for two different clips at the same time

    Hello

    possible to have 2 different application fields for two different clips at the same time for the classification match in terms of the scope, only not to the eye?

    Not that I know of.  And Yes, it would be very useful. As would the ability to go back 2 in reading monitor and a button "game clip under the read head 1. Sigh.

    Neil

  • How can I check for dates that are the same for today.

    If I have a bunch of dates in a datetime colum. How can I check for dates that are the same for today.
    "For example, this value of days would be ' #dateFormat (now (),"mm dd yyyy") #

    The best I could come up with was:

    Select * from data where data.userID =
    2635 AND
    "Convert (varchar, dateAdded, 101) = ' #dateFormat (now (),"mm dd yyyy") #


    How can I get this to work smart peeople :)

    It is best to make the comparison on the datetime values. One technique is to get the current date at midnight. Then add one day to get tomorrow's date. In your sql query finds all values is greater than or equal to today and less than tomorrow.

    One solution is to do everything in MS SQL

    WHERE the dateAdded > = convert (datetime, convert (varchar, getdate(), 112), 112)
    AND dateAdded = dateAdd (d, 1, convert (datetime, convert (varchar, getdate(), 112), 112))

    Another option could be to use CF to calculate dates:


    WHERE the dateAdded > =.
    AND dateAdded<>

  • Report Generation Toolkit, production of the 2147417842 error, "The application called an interface that was marshalled for a different thread."

    Hello world

    I have an application that stores data in an Excel worksheet by using the report generation tool.  My VI have worked well in the past using Excel XP, but since I have upgraded to Excel 2007, I get COM errors like this:

    "2147417842 error occurred while the application called an interface that was marshalled for a different thread. in Excel_Insert_Text.vi', this is the exact wording, even with the odd punctuation and capitalization.

    The first occurrence of the error is not determined.  Sometimes, to the record 10 sessions, involving a new .xls file, may occur before this error.  Once this error occurs, I must leave LabVIEW to solve.  If I try to do something with Excel, I still get this error, even if sometimes it comes out different source Excel_Open.VI is another.

    These screw logging worked fine until upgrading to Excel 2007.  I checked and I have been using a very old version of the report generation tool, v1.0.1.  I read the documentation and had a big sigh of relief when I realized that I needed to upgrade to v1.1.2 for Excel 2007 help.  However, even after the upgrade, I still get the same errors.  I'm using LabVIEW 8.0.1 and I also build these screws in an application.   The error occurs in the application built both in the IDE of LabVIEW.  Anyone out there have any idea what I can do to fix this?  I google a bit and discovered it is a COM error, but I can't find any reference to the report generation tool specifically.

    Thank you

    Phil

    I think that suits him!

    Here's what I did: I left privileged execution environment level upper VI as "as the appellant.  I tried the "user interface" configuration, but it seemed to slow down considerably the program.

    Then, I found each sub - VI, calling the report generation tool and define the environment for running favorite "user interface".  All the errors went away, and the program is much happier now.

    Big assumption on what a Christian, thank you!

  • Problem with website security cerificates. Said the security certificate presented by this website was issued for a different website address.

    Problem began the week last with Verizon's Yahoo email. I can't access it. I get the message on the certificate.  Said the security certificate presented by this website was issued for a different website address.  can hnts in and out of yahoo, but can not get by e-mail. I have Windows vista 32-bit home. Have tried several things offered by yahoo... Delete history, cookies, defragment the drive hard, etc. Then they said need to ask Verizon. Community sitting there, no response. I had a help line, but what they had me try did not work. Could not do the download help remotely, I tried Java plugin download, has got an error 12031, and a Microsoft fix it but none of it worked. Could not load. Then they said it was having problems with Microsoft windows problems. Error files, corrupted files and certificate & register...  I did a few other things too but do not know if someone can help me... Not even if I am in the right place.  I really hope that someone can help you.

    Hi Patsabo,

    I suggest you to check if you are facing the same question in the new administrator account.

    Create a new user account-
    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    If you are not faced with the same question in a new user account, you can view the link below and use the steps provided to fix a corrupted - user profile
    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • Sleep Timer Pavillion DV 7 - How do you set the timer for a different time setting?

    Sleep Timer Pavillion DV 7 - How do you set the timer for a different time setting?

    Hello Pidcock,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I understand that you want to change on your computer sleep timer. I'll be happy to answer that question for you. Now you have not specified what operating system you are using, so I guess it's the same operating system provided with your computer (Windows 7). I will provide you the HP support document: Management of power (Windows 7 and Vista) Options, which will guide you in how to set the power of your laptop. Just in case you have upgraded to Windows 8 I am also including the HP Support document: Manage the power (Windows 8) Options. This document will guide you through the same steps in Windows 8.

    I hope that I have answered your question to your satisfaction. Thanks for posting this question on the Forums of HP. Have a great day!

  • How many user take RDP at the same time with different user login ID in Server R2 2012

    How many user take RDP at the same time with different user login ID in Server R2 2012?

    How many user take RDP at the same time with different user login ID in Server 2008 R2?

    How many user take RDP at the same time with different user login ID in Server 2012 starndard?

    How many user take RDP at the same time with different user login ID in Server 2008 standard?

    This issue is beyond the scope of this site (for consumers) and to make sure you get the best answer, we need to ask either on Technet (for IT Pro) or MSDN (for developers)

    If you give us a link to the new thread we can point to some resources it
  • WebDAV: use of the different logins to different WebDAV folders on the same server

    Hello

    I quite often use WebDAV to access the various folders on a server on the Internet. I do this "Add a network location" in Windows Explorer, then using the address https Server (for example https://www.myserver.com/folder1). The first time that I need to enter the credentials of the user and the corresponding password and Windows seems to store them somewhere so that I can connect to this folder also after a re-login without having to re - insert my credentials.

    The question I have, is that I also need access to different folders on the same server (for example https://www.myserver.com/folder2) that requires different user credentials and passwords. The only way I have found is to remove the first network location, disconnect and reconnect to the Windows and then add the new location of the network in Windows Explorer; Just delete the first network location and adding the second network location would not be enough that Windows had always stored the context of the 1st network location and tried to connect with the credentials of the user and the password of the 1st second.

    Question: is there a less cumbersome way to remove context from a WebDAV connection, so that I do not need to disconnect and reconnect if I need to connect to the same server with different user credentials?

    Thank you very much

    Johannes

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Need for visibility on the IPsec protocol: aggressive Mode

    Hello

    I have a few doubts about VPN. I already went through a large number of documents. Everybody says something I don't agree with. So please don't view this kind of material in your answer.

    Aggressive mode: what I know, there are 3 Exchange for aggressive mode. Initiator in the first message sends the ID parameters, DH, HIS (IP address, domain name FULL). Then the answering machine (2nd MSG) reacts with the SA settings, DH, ID, HASH_R, then the initiator (3rd MSG) responds with HASH_I and PHASE 1 is established here.

    As the initiator and the responder IDs are sent in clear text, so we say that aggressive mode is not course.

    DH is used to exchange keys between peers. DH, negotiates and then generate a SECRET_KEY which in turn, is used to encrypt the symmetric key. We have SA parameters for encryption, hash, authentication.

    Here are my questions:

    (a) all of ITS parameters, IDs, DH traded first and second messages. The third message from the initiator is to send to HASH_I. Now, I don't see at all any use of DH in this mode, no encryption (payload ISAKAMP is not encrypted).  A single phase 1 aims to build a secure layer of management so that the PHASE connection 2 (data connection) may establish under a secure layer (PHASE 1). Now, I see that in aggressive mode we are not able to achieve this secure layer. So, what's the point of having encryption algorithms and DH in PHASE 1 if they are never used? Instead of skip PHASE 1 and we can have the PFS in Phase 2 for serving as a DH and we were hashing algorithms, encryption too.

    (b) the PRE SHARED KEY is actually shared via connect using the DH? Or just a HASH of PRE-SHARED-KEY is generated and sent on the connection for authentication?

    (c) why the aggressive mode can be used for dynamic addressing and not the main mode?

    If please answer queries and correct me if I am wrong somewhere.

    Thank you

    Rakesh Kumar

    (a). theoretically, jumping Phase 1 and done everything in Phase 2 (for aggressive mode only) would probably be a good idea to make it safer.  However, this would require a complete redesign of the IKE protocol.  As you probably already know, aggressive mode is used by default only for VPN remote access, and I've never seen used for a site to any of the customers that I came in contact.  In aggressive mode, in my opinion, would be used only in situations where a large number of VPN tunnels are built and demolished all the time (as with RA VPN) to save on material resources.  But... It is what it is, not a very safe to use method.

    (b) the pre-shared key is used to create a hash and this hash is sent to the remote peer.  If the remote peer can create the same hash using its own pre-shared key, then peers know they share the same secrets.  The problem with aggressive mode is that the hash is sent in plain text format, so if an attacker is able to capture these data they could preform a brute force offline attack.

    (c). I think that this has to do with the fact that the aggressive mode sends its identity in text clear and not must therefore not be pre-configured as a peer answer as it does with tunnels with addresses static at both ends.

    --

    Please do not forget to select a correct answer and rate useful posts

  • Error: "no physical memory is available to the location required for the windows boot manager." The system cannot continue. "

    I have a stable system that works with a processor E6300, card mother evga 680i, graphics card 8800gts and 8gbs of RAM running on ulitmate windows 7 (32 bits - I decided to re - install with 64-bit to use the extra 4 GB of RAM, after I deal with the question below).

    I recently tried to add an adapter of Intel RS2WC080 SAS/SATA controller in a PCI express slots on the card mother 680i. I know that the card works (such as "it works very well in another motherboard), but for some reason when I put it in the 680i mobo I get the following message appears when I try to start windows. (i.e. the raid controller has no windows on the disks. I always use original hard drive always connected on the same Sata port on the motherboard)

    "No physical memory is available to the location required for the windows boot manager." The system cannot continue. "

    I tried to turn off virtually everything I could in the bios of the motherboard as an experience (including the things I needed). I also disabled the Intel RS2WC080 card bios.

    I'm puzzled. So what I want to know is simply a hardware compatibility problem, or is there some kind of workaround I can run in windows 7. For example, is there maybe some sort of way for her to start using a different memory location than its currently using? (Or is it something error message related to the memory of the bios that can only be overcome with software?)

    Thanks for any help.

    I tried to disable everything in the bios... including the things I needed. No luck

    Thank you very much for the reply Chris but I don't have abandoned bascially. Right now I guess the card and the 680i have some kind of incompatibility and I will just get a different mobo.

Maybe you are looking for

  • Synchronization with Outlook

    box iCloud to synchronize Contacts, calendars, tasks will not be checked

  • What does the error code ox80070426

    will not allow the Security Center open

  • 6500 e709n connects to the incorrect subnet

    Our office has recently received a new router for ATT and now our wireless printing does not work. I tried to restart/reinstall everything several times (and on different machines), but it always comes out the same. All my other computers and printer

  • It is a disk failure?

    Hello We have MD1220 box connected to the Dell server. I used SUU_721_Q12013_A00 disk of DE06 DE08 firmware update. One of the disc has not updated to firmware and after restarting the server I can't in OpenManage Server administrator. He showed DE06

  • On the HP dv6 laptop

    Hi all!, Im want to buy an HP laptop, but I look at this model that I've seen. What comes with light touch pad. I gave you the page with images. I want to know if this model is for sale. Thank you! Images: http://www.engadget.com/photos/hp-pavilion-d