How do I get the difference in time using 2 ttl pulses

Hi everyone,   I have a question using the delay time.  What I need to find the time interval between 2 incoming TTL pulses and fire the output TTL pulse precisely the same time interval after the second TTL pulse.  I have been using Labview 7.1 with real time module and FPGA module (I think 1.0 because I can not find wait for rising edge vi).  I am using NI 7830R card.  The length of each TTL pulse is about 1-5 microsec.  Second pulse comes in at about 1 millisec after the first one.  So I need to fire aboyut 1 millisec after the second incoming TTL pulse.  Because of the non constant TTL pulse length, I would like to reference at rising edge of incoming ttl pulses.  Can anyone give me a help on this?
Thank you very much.
Hideya 

Hi Hideya,
As is the case with many programming questions, there are several ways to go about solving this one.  The solution I have in mind is to poll the digital input line for a transition from low to high.  The simplest way to do this would be to use a loop with a shift register to store the previous digital input value.  When the current digital input value is greater than the previous value, you can get the tick count (microsecond resolution sounds like it would be sufficient).  You can then do that sequence of operations a second time.  The difference between these two tick counts can be used as the input to the wait (microsecond) function.  After that you can send your digital output pulse.
Best regards,
David H.
Systems Engineer
National Instruments

Similar Messages

  • How do I get the difference of time and/or date using JavaScript?

    Hi All,
    I have four user text entry values (Date and Time) which require a difference to be performed on them.  The results would be put into a fifth text box named "Burn_Time". The entries are
    Start_Date, Start_Time, Stop_Date, and Stop_Time.
    How do I calculate the elapsed time between the entries?  For ease of calculations I surmised putting the values in 24 hour format would be helpful (not sure if this is true or not).
    Here is an example:
    Start_Date = 2012-04-10
    Start_Time = 10:00
    Stop_Date = 2012-04-12
    Stop_Time = 10:00
    Burn_Time = 48 (hours).
    Any help would be greatly appreciated!

    Here's the first in a series of three tutorials on the subject: http://acrobatusers.com/tutorials/date_time_part1

  • How can I get the date and time and display it on the report main page?

    Gurus,
    How can I get the date and time and display it on the report main page?
    Thanks!

    Hello,
    You can create a Formula Colum returning a date :
    function CF_1Formula return Date is
    begin
    RETURN(SYSDATE);
    end;
    Put a Field in the Layout having this formula column as source .
    Regards

  • How can I get the App store to use money in my account rather than a credit card when I want to buy something?

    How can I get the App store to use money in my account rather than a credit card when I want to buy something?

    The iTunes/Mac App Stores use credit on an account first. You are asked to supply an additional payment method when the cash credit doesn't cover the complete cost of the purchase.

  • How can I change the file download time using Adobe Send? Adobe SendNow had a lot more options.

    How can I change the file download time using Adobe Send? Adobe SendNow had a lot more options.I don't see nay with Adobe Send.

    There isn't a feature in Adobe Send for setting and end-date for a file's availability. At any time, you can Unshare the file, however.

  • HT2473 How can I get the date and time back on the menu bar?

    Several items disappeared from my menu bar for no  reason known to me.  I miss the date and time and want it back. Please .  I have gone to System Preferences and clicked "date and Time" but it will not allow me to check anything on the page even though there is a box "Show date and time in Menu bar".
    What should be my next move?

    One more thing might help us
    In the Finder > Date & Time Preferences > Take a Full ScreenShot of the entire display showing the "absence" of the check box (or whatever) to Show in Menu Bar
    ⌘ Command + ⇧ Shift > Press ' 3 ' > release all three
    Use the camera tool > locate the screenshot in the Desktop (not sure whether it will say "Picture 1.png" or have a TimeDateStamp as a title.
    ÇÇÇ

  • How do i get the difference information between two B1 version

    Hi all,
       i want to know what are the difference between 2004a and 2005a , for example, any fields existin B1 2005A but not exist in B1 2004A form, any form exist in B1 2005A, but not in B1 2004
       For fields ,  Can icompare the XML? but there are may forms in B1, is there any simple way to make this work?
    i appreciate any help and suggestions!
    thanks in advance!

    Hi Liu,
    in the XML-output of the objects, you have every field.
    You have to set SAPbobsCOM.BoXmlExportTypes.xet_AllNodes
    for the fields to be displayed as in SQL-Server.
    xet_ExportImportMode shows different names for the fields
    Regards,
    Holger

  • How do I get the robotic vocoder sound using evoc - Kraftwerk style?

    I've setup evoc according to the manual,
    and I get it to vocode,
    but it doesn't sound very 'robotic',
    at least not compared to Kraftwerk.
    Does anyone have the details,
    e.g. what evoc ps sound should I use,
    how should I change the default parameters,

    The trick here is to go low, and monophonic (don't play chords). What you are after is basically a one-wave osc as your synth sound to be used in the evoc. Straight up square or saw wave played low in pitch with an open filter should give you the results you are looking for. Mess about with the formant width and shift to get it timbraly where you want. I've noticed that the evoc can be a little quiet, so you may need to boost the signal a bit.

  • How Can I Get The Table_Name Where I Used Dbms_Errlog?

    CREATE TABLE ERROR_LOG
    ORA_ERR_NUMBER$      NUMBER,
    ORA_ERR_MESG$           VARCHAR2(2000 CHAR),
    ORA_ERR_ROWID$      UROWID(4000),
    ORA_ERR_OPTYP$      VARCHAR2(2 CHAR),
    ORA_ERR_TAG$           VARCHAR2(2000 CHAR),
    ORA_ERR_TABLE_NAME      VARCHAR2(30),
    ORA_ERR_TIME           DATE     DEFAULT SYSDATE,
    ORA_ERR_AUTHOR     VARCHAR2(30)     DEFAULT USER     
    I create a single table for handling errors for all tables.
    I just want to Get the table name where I used dbms_errlog.
    I want to get table_name where I performed last DML Statemet?
    Edited by: Nilesh Hole on May 24, 2010 4:50 AM
    Edited by: Nilesh Hole on May 24, 2010 4:57 AM
    Edited by: Nilesh Hole on May 26, 2010 3:43 AM

    I should have written "you should not" rather than "can not." The advice holds.
    The point of using the package in its default mode is that you can fix the problems.
    Do it generically and all you learn is that an error occurred.
    SQL> select * from ERROR_LOG_SERVERS;
    ORA_ERR_NUMBER$ ORA_ERR_MESG$                                      ORA_ERR_ROWID$     OR ORA_ERR_TA
                  1 ORA-00001: unique constraint (UWCLASS.PK_SERVERS)                     I
                    violatednot much useful information.
    But I appreciate you posting the idea so I show on my website why doing this is a bad idea.

  • How can I get the difference of  tables between two oracle server?

    We team have 2 oracle servers in the same version.
    one is develop server and the other is priduct server.
    I want to know what is difference in tables define between the two oracle servers.
    give me a method or a step or a sql script or a tool to compare these two set of tables.
    Edited by: Oracle-Sunmeng on Aug 1, 2012 6:36 PM

    Hi Sunmeng,
    Does Database Link exists between Databases ??
    If I am Clear, Are you looking Something like this.
    To Identify the tables difference, you can query the USER_TAB_COLUMNS view.
    SELECT DISTINCT table_name, 'User1' AS user_table
               FROM user_tab_columns
    UNION ALL
    SELECT DISTINCT table_name, 'User2' AS user_table
               FROM user_tab_columns@dblink
           ORDER BY 1;Which gets us all the Tables available in Both User. where you can filter based on what
    you require.
    Similary, you for column difference
    SELECT   table_name, column_name, 'User1' AS user_table
        FROM user_tab_columns
    UNION ALL
    SELECT   table_name, column_name, 'User2' AS user_table
        FROM user_tab_columns@dblink
    ORDER BY 1;If you need to count the no of columns in both Tables of different databases. Then try this,
    SELECT table_name, 'User1' user_name,
           (SELECT MAX (column_id)
              FROM user_tab_columns a
             WHERE a.table_name = b.table_name) colno
      FROM user_tables b
    UNION ALL
    SELECT table_name, 'User2' user_name,
           (SELECT MAX (column_id)
              FROM user_tab_columns@dblink a
             WHERE a.table_name = b.table_name) colno
      FROM user_tables@dblink b;And, what the Columns in both tables may be same but, if datatype and length of column differs ?????
    Thanks,
    Shankar
    Edited by: Shankar Viji on Aug 1, 2012 10:47 PM
    Edited by: Shankar Viji on Aug 1, 2012 10:49 PM

  • How do I get the length of time of a step in the report?

    heyy,
    I noticed that the time a step needs for termination is listed in the report. But just for few steps. How can I manage this for the other stepts??
    Thanks for your help!
    Carlos

    Hey Heinz,
    sure! I send you a picture of my sequence and its report...
    Thanks!
    Carlos
    Attachments:
    Sequence.PNG ‏62 KB
    Report.PNG ‏34 KB

  • How do i get the date and time to display when my ...

    I have a nokia 2730.
    Thanks

    Hi there lkbluntzer,
    You may find the information in the article below helpful.
    Send and receive messages
    http://help.apple.com/iphone/7/#/iph01ac18d71
    See what time a message was sent or received. Drag any bubble to the left.
    -Griff W. 

  • Lightroom just created a new 2014 folder to receive images from 2014, but I already have a 2014 folder which has received all my previous images. How do I get the system to keep using the original 2014 folder?

    How do I route newly created images into my existing folder for 2014? Why did the system create a new folder which seems to be snatching all my new images?

    Well, something is not making sense here, and I might have to spend some time thinking about it, or hopefully someone else will know exactly what the issue is.
    The first screen capture you provided shows the Lightroom Folder Panel, with folders on the C: drive named 2012, 2013 and 2014 and then the problem second 2014 folder, followed by many folders whose name begins with "My Canon".
    The most recent screen capture you provided shows the C: drive problem 2014 folder, but none of those other folders!
    Can you show us a screen capture of your Windows Explorer C: drive folders? Particularly, can you expand the folder structure so that it shows where the 2012 and 2013 and original 2014 folders and the problem 2014 folder are located? If that takes 2 or more screen captures, that's fine. ALso, if you can show the "My Canon" folders, please do.

  • How do I get the WebLogic server to use the XMLRegistry?

    I'm using WebLogic 7.0.2, and I want to use the Apache TransformerFactory and DocumentBuilderFactory
    instead of the default weblogic.* classes. I've found the documentation, where
    I define an XML Registry as follows (snippet from my config.xml)...
    <Server ListenAddress="####" ListenPort="####" Name="myserver"
    NativeIOEnabled="true" ServerVersion="7.0.2.0"
    StdoutEnabled="true" StdoutSeverityLevel="8"
    StuckThreadMaxTime="14400"
    XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="CT XML Registry">
    <COM Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="myserver"/>
    <JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="myserver"/>
    <JTARecoveryService Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <Log FileName="myserver/myserver.log" Name="myserver"/>
    <SSL Enabled="true" HostnameVerificationIgnored="true"
    ListenPort="###" Name="myserver"
    ServerCertificateFileName="democert.pem"
    ServerPrivateKeyAlias="demokey" ServerPrivateKeyPassPhrase="{3DES}gAuVwsR68oAlLdIfO1PAtw=="/>
    <ServerDebug Name="myserver"/>
    <ServerStart Name="myserver"/>
    <WebServer DefaultWebApp="DefaultWebApp"
    LogFileName="myserver/access.log" LoggingEnabled="true" Name="myserver"/>
    </Server>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    Name="CT XML Registry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
    TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
    WhenToCache="cache-on-reference"/>
    I've played aorund with xercesImpl being in and out of classpaths, etc. But no
    matter what I do, calls to TransformerFactory.newInstance creates an instance
    of weblogic.xml.jaxp.RegistrySAXTransformerFactory and DocumentBuilderFactory.newInstance()
    creates an instance of weblogic.xml.jaxp.RegistryDocumentBuilderFactory.
    I don't want to use these classes, and supposedly I can control which classes
    I will use, but it's not working for me. Has anyone been able to get this working?
    Is there anything else that I'm missing?
    Thanks,
    Ed

    I was unable to use the XMLRegistry touse the Xerces2 libraries with WebLogic 7.
    I did find in WebLogic 7 doco that the latest release of Xerces that it would
    internally support was 1.4.4 (http://e-docs.bea.com/wls/docs70/xml/xml_admin.html#1066271).
    If I wanted to use this version of Xerces, I would need to use WebLogic 8. This
    is not an option for me at this stage.
    So, I used this approach. When starting the WebLogic server, you can assign ClassPath
    entries to an environment variable called PRE_CLASSPATH. This will prepend the
    class path used by the App Container's JVM with the values in the variable. I
    added the xercesImpl and xalan jars to this entry.
    Because the WebLogic class loaders will always defer to the parent class loader,
    it will check this class path first. So now I can directly instantiate the apach
    implementation classes (typecasting them back to their API interface definitions)
    and use them within the container.
    "Ed Hillmann" <[email protected]> wrote:
    >
    I'm using WebLogic 7.0.2, and I want to use the Apache TransformerFactory
    and DocumentBuilderFactory
    instead of the default weblogic.* classes. I've found the documentation,
    where
    I define an XML Registry as follows (snippet from my config.xml)...
    <Server ListenAddress="####" ListenPort="####" Name="myserver"
    NativeIOEnabled="true" ServerVersion="7.0.2.0"
    StdoutEnabled="true" StdoutSeverityLevel="8"
    StuckThreadMaxTime="14400"
    XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="CT XML Registry">
    <COM Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="myserver"/>
    <JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="myserver"/>
    <JTARecoveryService Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <Log FileName="myserver/myserver.log" Name="myserver"/>
    <SSL Enabled="true" HostnameVerificationIgnored="true"
    ListenPort="###" Name="myserver"
    ServerCertificateFileName="democert.pem"
    ServerPrivateKeyAlias="demokey" ServerPrivateKeyPassPhrase="{3DES}gAuVwsR68oAlLdIfO1PAtw=="/>
    <ServerDebug Name="myserver"/>
    <ServerStart Name="myserver"/>
    <WebServer DefaultWebApp="DefaultWebApp"
    LogFileName="myserver/access.log" LoggingEnabled="true" Name="myserver"/>
    </Server>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    Name="CT XML Registry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
    TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
    WhenToCache="cache-on-reference"/>
    I've played aorund with xercesImpl being in and out of classpaths, etc.
    But no
    matter what I do, calls to TransformerFactory.newInstance creates an
    instance
    of weblogic.xml.jaxp.RegistrySAXTransformerFactory and DocumentBuilderFactory.newInstance()
    creates an instance of weblogic.xml.jaxp.RegistryDocumentBuilderFactory.
    I don't want to use these classes, and supposedly I can control which
    classes
    I will use, but it's not working for me. Has anyone been able to get
    this working?
    Is there anything else that I'm missing?
    Thanks,
    Ed

  • HT5622 I have changed my appleID and password through my laptop.  I have then changed it on my iPod Touch in settings. When I try to update my apps on the ipod touch it keeps throwing up the old appleID.  How can I get the iPod Touch to use the new ID?

    I have changed my appleID and password through my laptop. I have then changed them in my iPod touch settings in "iTunes & App stores" When I try to update my apps it fails because it wishes to continue to use the previous ID.  What do I have to do to make it accept the new ID?

    Also
    If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

Maybe you are looking for

  • Does iTunes Store no longer accept PayPal as a method of payment in the U.S. (California)?

    I've tried logging in through the apple store app, on a desktop and through the iTunes store in my phone, NONE of them are giving me an option to change my method of payment to PayPal...?  Does anyone know if they stopped accepting PayPal as a method

  • Un-Responcive Click Wheel

    This is my First Hard Drive Based iPod, i have owned a 1st gen nano. the problem with my classic is that the click wheel randomly stops responding when scrolling. so when scrolling the albums list the click wheel will stop after every 20 albums. i ha

  • InDesign Adding Shadow/Lines to Transparent PSD & JPG Files?

    I'm relatively new to InDesign, but as I've run this issue through an expert friend of mine who could not puzzle it out- I'm coming here. I have a number of different images, both JPG's & PSD's that have some transparent areas in them. I'm incorporat

  • Delete consecutive blanks in a string

    Hi I got a csv file that I want to import. It looks like user1 Peter Parker user2 John Doe The problem is, that there are a lot of blanks between "user1" and "peter" and between "Peter" and "Parker" and so on... When I run:  import-csv "C:\userlist.t

  • 3G drops WiFi connection every 20 seconds

    Hi, I'm debugging why a particular application I wrote myself won't work. The application basically creates a CFNetwork-based connection to the Mac over WiFi, and this used to work. I've recently updated to Mac 10.6.1 and iPhoneOS 3.0.1, and it no lo