Jump to content

Jordan Kuehn

Members
  • Posts

    690
  • Joined

  • Last visited

  • Days Won

    21

Posts posted by Jordan Kuehn

  1. The point I was trying to get across (unsuccessfully it seems!) is that even with a timeout a lot of CPU is used up waiting for the DMA buffer to have enough elements. This is probably contrary to what most people would expect.

    I understood, but yes some might not.  The point I was trying to get across is that in that situation a timeout is better than nothing, i.e. waiting/polling the entire time for the number of elements to become available.  Either way, the picture is the better approach and allows the loop to do other things.

  2. Just to add to Jordan's post for those that don't know.

     

    His picture shows an efficient way of reading from the DMA FIFO, first check to see if there are enough elements by requesting zero with a zero timeout, this will return the number elements remaining. Then only perform the actual read if the number of available elements is equal to (or more than) what you want.

     

    My understanding of this necessity is that although the transfer occurs via DMA, if there are not enough elements yet then the CPU actually polls (using a lot of resource) until the number of elements is achieved, and this can really kill performance.

     

    A picture says a thousand words :P , but yes I included both parts to demonstrate a good way to check if the elements exist before attempting to read them.  Regarding your last point, I would suggest at least employing a timeout if someone isn't going to do the initial check.  The host loop should be structured in such that it doesn't need data every iteration (if you are looking for a chunk of buffered data), or manually provide your own polling by placing something like what I have in the picture in a loop with a timing element. 

  3. Well to make a long story short it didn't happen.  

     

    Some winter weather hit Oklahoma in the week in question and they needed me to drive to Dallas to take the exam since we don't have a rep in OK currently.  At this point, since there is no hope of me rescheduling in time for the summit, I plan to take it in a couple months when we have an OK rep and I don't waste 8 hours on the road.  I'm a little bummed because I was finally ready to take it, but I'll just hope to have it by NI Week and will watch the videos from the summit if they get uploaded again this year.

  4. Hey guys.  I've finally gotten motivation (and funding) to go get a CLA.  Any help or suggestions you have for preparing would be greatly appreciated.  I'm hoping to make it to the March summit.  I have read older posts, but I've also heard some news about changes to the test, so I decided to make a new post to hopefully capture more recent info.  Thanks for all the help you can provide and I'll hopefully see you guys in a few short weeks! (if not, I'll blame the higher-ups for not approving the trip instead of me crashing and burning on this test)

    • Like 1
  5. I would suggest working with the vision assistant to get started.  You can convert the express VI into a regular VI later by right clicking and opening the front panel.  This should get you a good starting point.

     

    Off the bat I'd point out that you don't want to dispose of your references until after processing.  What pattern are you trying to match?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.