Within the TCL and NPL, how do you start a DAQ-STC timer to count the elapsed time spent in time critical code?

Clarification: I have a 6030E DAQ board which has a built-in DAQ-STC counter chip. I've created a RTOS for my PXI8175 controller. Unfortunately, while in the TCL clock interrupts are ignored and therefore any time based operations are erroneous. Is there a way to tell the TCL to service clock interrupts? Otherwise, perhaps the following concept should be implemented: Initial Time Stamp + elapsed time spent in TCL = Final Time Stamp

While the system clock might fall behind, there are a number of ways to measure elapsed time accurately. Here they are in ascending order of accuracy:
1) Tick Count - Each tick is 1.000686 milliseconds.
2) DAQ-STC counter - The base clock is 20 MHz, thus the finest period of measurement is 50 nanoseconds.
3) NI-TIO counter - The base clock is 80 Mhz, thus the finest period of measurement is 12.5 nanoseconds.
4) RDTSC - Read Timestamp Counter is an assembly instruction which reads timestamps right off the CPU. The period depends on CPU speed (i.e. 1 GHz yields 1 nanosecond period).
Programming #1 requires two calls to Tick Count and a little math. There are shipping DAQ examples that demonstrate how to count events/time with counters, so that addresses #
2 and #3. As for #4, there's an RT shipping example that demonstrates how to use RDTSC. There's also an RT template, which is identical to the RT example I mentioned.
Let me know if you need more info.

Similar Messages

  • TS3198 After doing the backup and restore how do you know if the phone is unlocked if you do not get the message: "Unlock Complete. Congratulations, your iPhone has been unlocked. To set up and sync this iPhone, click Continue."

    After doing the backup and restore how do you know if the iphone is unlocked if you do not get the message: "Unlock Complete. Congratulations, your iPhone has been unlocked. To set up and sync this iPhone, click Continue."

    If you don't get the message, your phone is NOT unlocked.

  • How do you start a loop with an event and end the loop when u release ....

    How do you start a loop with lets say an event of some sort, whether it be holding down a key or pressing the mouse click and then stopping the loop when you release that key or mouse button.?
    double c = 1.8, i = 1, max = 90, exp = 0;
    final double inc = 0.002; //speed at while it increases
    boolean f = false, g = false;
    while (true)
        while (f == false && stopMeter == false) //increasing speed going up to 90
            exp = Math.pow (c, i);
            i += inc;
            pAngle.setText (Math.round (exp) + "");
            if (exp > max)
                f = true;
                g = false;
            } //end if
        } //end while
        while (g == false && stopMeter == false)  //decreasing speed going down from 90
            exp = Math.pow (c, i);
            i -= inc;
            pAngle.setText (Math.round (exp) + "");
            if (exp < 1)
                g = true;
                f = false;
            } //end if
        } //end while
    } //end whilethis is a snippet of my increasing increments. Its for an angle meter. I can't get it to stop, when the user clicks or does something... the program just gets stuck in an infinite loop. I am still new to java and i do not know how to fix this.

    You are in the wrong forum. Try this one instead: http://forum.java.sun.com/forum.jspa?forumID=31
    /M

  • HT204370 If the movie says Audio is in English and Spanish, how do you listen to the Spanish audio?

    If the movie says Audio is in English and Spanish, how do you listen to the Spanish audio?

    Everyone does things a little differently. I love to "jam " along with iTunes ( or old Lp's) . Always have. That's where/how I've learned to play .
    I'm sure leonieDF is giving a proper way to jam along on a keyboard with an iTune. He blows my mind all the time with what he knows. Nuff respects to him !
    What I do is make a GB project I call "Jam With". I'll make several new tracks that are blank. Just has a few instruments named in the blank tracks. You can change those per song ...
    Because I'm not concerned about changing the pitch / key.... of the iTune or the tempo ... I can simply play along with it.
    Peace,
    P. Dreadie

  • How do you delete photo's and also how do you search in your phone for apps/anything using the latest software

    how do you delete photo's and also how do you search your phonefor apps / anything ???
    i am using the latest software update
    many thanx to all in advance

    Anywhere on a home page swipe down (not from the very top or you'll get the Notification Center) to launch Spotlight.

  • How can you start up your ipod if holding the hold and home button does not work?

    how can you start up your ipod if holding the hold and home button does not work?

    Remi,
    How long did you hold these buttons for? Did you try more than once?  Have you tried letting it charge for a bit and trying again?
    If nothing else, see this article for more troubleshooting assistance.
    http://support.apple.com/kb/TS2771
    B-rock

  • I would like to know if I can "join CD tracks" once they are downloaded into a playlist in my ITunes folder on my computer and/or how do you "join CD tracks" if you are downloading from iTunes itself.   I have two songs that I would like to "join" but I d

         I would like to know if I can "join CD tracks" once they are downloaded into a playlist in my ITunes folder on my computer and/or how do you "join CD tracks" if you are downloading from iTunes itself.   From the information through the "Help" menu, it seems you can only "join cd tracks" when you are in the process of downloading them from a CD onto your iTunes playlist?
    .....any suggestions would help.
    Thank You
    DW

    The help menu is correct.

  • What is the apple mobile device service? how do you start it ?

    what is the apple mobile device service? and how do you start it?

    Try Here   http://support.apple.com/kb/TS1567

  • How do you start the hardware test on an imac with bluetooth keyboard

    How do you start the apple hardware test on an imac with a bluetooth keyboard as the instructions is to press the D key whilst restarting? And of course the imac cant see the keyboard whilst booting up as the bluetooth connection has yet to be established

    Have you tried following the directions for running it from the DVD? The instructions are on the Hardware Test link.If you are correct and it cannot due to the wireless keyboard not making a connection you will need to borrow a wired USB keyboard.  

  • HT5248 How do you start the dictate feature?

    After the update iWork still looks the same and search Help did not bring anything up. So how to you start the dictate feature to have your speech to text?

    Once you upgrade to ML, you go to System Preferences and enable it. Then you select your shortcut for turning it on and off. The default is a double-tap on the fn key.
    Jerry

  • How do you start and stop music on iMovie

    how do you start and stop music on imovie?

    http://support.apple.com/kb/HT4157
    To stop, just to back into those settings and cancel before the monthly plan automatically renews.
    Regards.

  • How can you view an event's time in the month mode of the calendar without clicking on it?

    How can you view an event's time in the month mode of the calendar without clicking on it?

    bbmca,
    Have you tried enlarging the month view window?

  • How can you start the tag config editor from a vi or when labview starts?

    how can you start the tag config editor from a vi or when labview starts?

    Hi,
    There is a VI called "dsc_TagEditorLauncher.vi" under "C:\Program Files\National Instruments\LabVIEW 7.1\project\lvdsc" folder that can be used to launch the TCE programmatically. I hope this helps.
    Best Regards,
    Remzi A.
    Applications Engineering
    National Instruments

  • How do you start music on the 8th frame in iMovie on iPad

    how do you start music on the 8th frame on a ipad with imovie

    Add a song to the start, trim it to 10 frames or what you want,
    THen turn the volume to zero.
    THen next track then starts where the silent track ended.
    Terrible workaround, but it works.

  • How do you start new line in paragraph style?

    New trial user and can't figure out why a seemingly simple operation doesn't work..
    How do you start a new line in a paragraph block?  When I hit the enter key, it just returns to the front of the same line, overwriting the same line over and over again.
    1. Clicked Text tool.
    2. Dragged out a paragraph block.
    3. Started typing and noticed that when it reached the end of the paragraph block, it just wrapped to the beginning.
    Frustrated so could use some help.

    …but also make sure that the No Break option in the dropdown menu (triangle at upper right corner) of the Character Panel is UNchecked:

Maybe you are looking for