NICard 6031E Acquisition too slow when synchronisation with ATMEGA128

Hello:
I have an NI Card 6031E acquiring in HARDWARE SAMPLE CLOCK timing mode which means I supply a clock from an ATMEGA128 and the card acquires a value after each CLOCK high from another ASIC (Multiplexer chip).
The clock comes from a microcontroller ATMEGA128.
PROBLEM: I send an ' r ' character to the ATMEGA128 and subsequently I call the SAMPLE CLOCK timing read function in my user interface Visual C++ 6.0 on the PC. I am trying to synchronise PC with ATMEGA and NICARD data read, BUT I CANT DO IT.
The thing is when the ' r ' char is received at the ATMEGA128 this one does what it has to do just ONCE and may be does it too fast for the NICARD to read the values supplied by the CLOCK from the ATMEGA128.
The ATMEGA128 supplies a few digital binary signals (0 or 1) to the ASIC and the ASIC having received that particular sequence or digital waveform it sends the data (128 values one after each CLOCK high) to the NICARD.
Therefore, each CLOCK high delivers a value to the NICARD from the ASIC. The problem is that it seems I loose the data on the NICARD because the sequence is done very fast at the ATMEGA128 and the NICARD takes 480us I think to perform an instruction. I tried placing the READ function before sending the r char but it blocks.
I need SYNCHRONISATION between the NICARD acquiring values and the ATMEGA128 sending the clock and the ASIC sending data. Can I use other CHARS. I am lost! HELP! -)
Thanks,
Javi

The ATMEGA128 code structure and CLOCK signal is as such:
1 - FOR loop, therefore repeats itself always until you come out of the program execution.
INSIDE FOR LOOP:
2 - wait 1 microsecond, CLOCK HIGH, wait 1 micro second and CLOCK LOW
3 - wait 26.4 microseconds, another FOR loop and inside it, (128 times CLOCK HIGH, wait 1 micro second and CLOCK LOW, and wait 26.4 micro seconds).
4 - Once finished program goes back to 1
So therefore the frequency of the CLOCK is of 37878.78 Hz or 37878.78 HIGH CLOCKS or samples per second which comes from 1/26.4microseconds.
However, the initial first CLOCK on the FOR loop starting in section 1 is HIGH after 1 microsecond as described in section 2.
The sampling frequency is set at 50000 samples per second on the NICARD, so therefore it is a sufficient setting for a 37878.78 Hz CLOCK.
I acquire the data via an NICARD and my code sends an "r" character from the VISUAL C++ user interface to the ATMEGA128 and when the ATMEGA128 receives the "r" char it SENDS the CLOCK (and relevant waveform) to an ASIC. Then when the NICARD receives the CLOCK it acquires 1 sample on every CLOCK HIGH.
I noticed a few days ago that when I start the CLOCK from the ATMEGA (same as sending an "r" char to the ATMEGA) on another Visual C++ application without the NICARD acquisition software functions and at the same time I start the Visual c++ application with the NICARD functions, I get almost the correct data.
It seems that separating both Visual C++ applications PARTIALLY works but it does not make much sense.
The difference between both is just having the NICARD functions present or not present, it seems, although it could be something else too.
As you can see the synchronisation between the NICARD (HARDWARE TIMING CLOCK) data acquisition and the ATMEGA128 or ASIC sending data is performed via the sending of the "r" char to the ATMEGA128.
Thanks.
Javi.

Similar Messages

  • IMovie too slow when using with iPhoto videos

    Dear Geniuses
    I do have several videos into iPhoto, many of them ... and using iMovie to edit video is INCREDIBLY slow ...
    The only "solution" is to move the iPhoto videos into iMovie?
    Any ideas if iMovie 10 or 11 or 12 will be better at this?
    Is Aperture or Final Cut Pro X an alternative solution?
    tx in advance

    Hi Beppe,
    Your issue is related to Windows Embedded. Please post thread on the following forum for more effective response.
    http://social.msdn.microsoft.com/Forums/en-US/home?category=embeddedwindows.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • InDesign CC 2014 is very very slow when working with a table.

    InDesign CC 2014 is very very slow when working with a table. Every 1/2 - 1 hour it nearly falls back, impossible to work with. While this project must be finshed quite soon..
    What the hell is the matter with this Creative Cloud. I havea very fast iMac form 2014. I closed all other programmes, even cannot listen to music now. More people with this problem??
    Martien

    @Martien – How complex is your table?
    How many cells? Merged ones as well?
    Complex formatting of texts inside the cells?
    Complex formatting rules of table rows and/or columns?
    Many images inserted?
    If yes, and the table is running through many text frames of many pages, I fear, you can do nothing against slowness.
    Nothing but: Greek text, not showing the page contents in the Pages Panel, in short: anything you can do to get better performance in redrawing of the screen.
    If you have the chance to break up one big table in several parts, do that and edit its parts one after another isolated. Pehaps in different documents.
    Then merge the parts in one table, if you want to flow it from page to page.
    Uwe

  • Mac working too slow when switch to one to another user acconut

    Mac working too slow when switch to one to another user acconut...
    it means when working on one user acconut and i switch to another account its take too much loading + slower than 10.8
    solve it..
    Thanks

    iTunes will naturally stop playing since it acknowledges that you're not actively using your current account.

  • JBOSS startup slower when launched with JAVASERVICE

    Hello,
    We noticed that Jboss 3.2.3 is twice slower when started with javaservice than started from a dos console.
    Does anyone had the same issue ?
    Any hint ?
    Reagrds,
    R�mi

    Use this : http://wrapper.tanukisoftware.org/doc/english/introduction.html instead of javaservice ;-)
    R�mi

  • LTFS is slow when dealing with many files

    Working with LTFS on Windows 7 64, I find find that it slows down significantly when dealing with many files (>1500)
    From the behaviour, I suspect that it has to do with the number of file handles.
    Some LTFS vendors have a copy utility that deals very well with this situation.
    I could not find anything like that for HP.
    Does it exist? Is there an open source solution?
    Thank you,
    - Bartels

    Can someone from the Experts please respond?
    Your LTFS solution is in certain situations much slower than the competitors; the difference is a huge factor three..
    I would really like to know if there is a solution or not. Either way.
    - Bartels

  • Premiere Pro 2.0 slows when dealing with larger video files

    I'm having issues with Premiere Pro 2.0 slowing to a crawl and taking 60-90 seconds to come back to life when dealing with larger .avi's (8+ mins). When I try to play a clip on the timeline, drag the slider over said clip, or play from a title into said clip on the timeline, Premiere hangs. The clips on question are all rendered, and the peak file has been generated for each different clip has well. This is a new problem; the last time I was working with a larger clip (45+ mins, captured from a Hi-8 cam), I had no problems. Now, I experience this slow down with all longer clips, although I've only dealt with footage captured from a Hi-8 cam and also a mini-DV cam. This problem has made Premiere nearly unusable. I'm desperate at this point.
    System:
    CPU: P4 HT 2.4ghz
    Ram: 2x 1gb DDR
    Video: ATI Radeon 9000 Series
    Scratch Disk: 250gb WD My Book - USB 2.0 (I suspect this might be part of the problem)
    OS: XP Pro SP2
    I'm not on my machine right now, and I can definitely provide more information if needed.
    Thanks in advance.

    Aside from some other issues, I found that USB was just not suited for editing to/from, and on a much faster machine, that you list.
    FW-400 was only slightly better. It took FW-800, before I could actually use the externals for anything more than storage, i.e. no editing, just archiving.
    eSATA would be even better/faster.
    Please see Harm's ARTICLES on hardware, before you begin investing.
    Good luck,
    Hunt
    [Edit] Oops, I see that Harm DID link to his articles. Missed that. Still, it is worth mentioning again.
    Also, as an aside, PrPro 2.0 has no problem on my workstation when working with several 2 hour DV-AVI's, even when these are edited to/from FW-800 externals.
    Message was edited by: the_wine_snob - [Edit]

  • How can I find out which .pst or .ost file itunes referres to when synchronising with outlook

    I´ve switched to iphone 4S from my 3Gs and would like to "clean" my itunes Sync before I use the new phone. Problem is, that the synchronisation with Outlook 2003 doesn´t work anymore. I guess the reason is that itunes refers to an old .ost or .pst file on my computer. I ve got several outlook profiles and changed from exchange to pop3. My question: How can I find out which .pst or .ost file itunes referres to?
    Thanks a lot in advance :-)

    Select the tune and then - Get Info - in the dialog box is a note of the Apple ID used to purchase.
    MJ

  • The mic volume is too high when calling with an earphone without mic

    There are a common problem on the mic volume when calling with my earphone (TF-10 pro without mic). The mic volume seems like turned to speaker mode, so all the background sound has also captured. Therefore, I would like to clarify that it is a common problem or not.

    nobody has the same issue with me?

  • Videos taken with my iPhone 5 play back fine on my phone, but are too slow when imported to my PC.  Everything seems updated.  HELP!!

    When I take a video with my iPhone 5, it plays back great on my phone.  However, when I upload to my computer it plays back extremely slow, or the image freezes while the audio keeps going.  I've tried Windows Media Player, Quicktime, VLC media player, and they are all updated.  So is my computer software.  I never had this problem with my previous iPhone 3Gs. This is very annoying, help!!

    SharmFarm wrote:
    Good ev Ning Mario49    firstly I would like to say a great thank you for your attention to trying to help me,,,,,    i have looked at the links and will try everything stated first thing…
    Hi Mario,,,,
    I tried everything in your reply,,, thank you again,, I had done that once before and all was working great,,
    I have just now tried the Reinstall via iTunes, about 20 into the download, the iTunes logo on the phone disappeared, and the Apple Logo appeared again,,, I waited until the iTunes stated that the download had finished, and the install was in progress,,,
    Nothing happened, still the Apple Logo was visual on the screen, iTunes never recognised the phone which it was on my iTunes account previously,,,
    Still just a bunch of lines, maybe 5 or 6 so small writing,, I personally can not read what it is telling me, someone said it reads, incorrect shutdown,,,????????
    Please advise,???
    I am now at a loss,,, I really became excited when I saw the iTunes icon after putting the phone into restore,,,???
    Thank you again
    D

  • Ipod too slow when reading video files via DVD player with USB port.

    Hi all, this is my first message in this forum.
    I've got a DVD player that has a USB port and reads all types of disks. When I use my IPOD 80 GB the files I read are somehow frozen and don't run properly (lack of sync between audio and video, etc). I've got version 1.2.1 and use it in disk mode otherwise the player doesn’t see it. Meanwhile a friend of mine uses it's 60 Gb IPO on the same player, version 1.0 and it doesn't need to go to disk mode, and the player reads perfect from it. Is this a problem of the ipod software version?
    Both ipods are in Fat32 format, but in his ipod the partition is set to active. I can't change mine to that, because windows is seeing my IPOD as a removable device, and my friend’s IPOD as a disk.
    Hope I haven't been too confusing, and I welcome any help anyone can give.
    Thanks.

    Sorry, but I don't even know
    what it is you are trying to do. Are you attaching
    the iPod to a stand alone DVD player? Are you trying
    to export stuff out of the iPod into the DVD player?
    Patrick
    Hi, I'm attaching the iPod to a stand alone DVD player, that has a usb input port. And then read video files from it.

  • JDeveloper is becoming too slow when you work with web services

    Hi,
    I am trying to write some web services code but after generating the Java classes from the WSDL the IDE becomes extremely slow.
    I need to wait 5-10 seconds each time while writing a word in Java editor. I tried to disable auto suggest and all the fancy things like that but could not make it faster.
    Any suggestions ?
    I am using JDeveloper 11g r1p1.
    Thanks

    Hi,
    I don't have any backing bean for this project. I am implementing a web service by using a WSDL. I guess the problem is JDeveloper can't handle having so many Java files .
    When I generate the Java classes from the WSDL I end up having hundreds of Java classes and some are a little long. Looks like it is the same behavior that you mentioned about having big backing bean classes..
    For now I am using IntelliJ Idea for editing the Java code and I use JDeveloper for running only. Idea doesn't bother having that many Java files and works as it supposed to work.
    Thanks

  • Response time too slow when there is competition in the same connector PCo

    Dear all, I'm having a problem with using PCo 2.1.
    I created all the conections in PCo with OSIsoft PI and when I create a TagQuery
    on MII to get the values of a tag is not occur problem in response time.
    But when I have another TagQuery or Transaction, which is collecting data at the same
    time, sharing the same connector, the time response is very slow.
    Using the UDS this problem does not happen.
    So problem is that when there is competition in the same connector, the response time is extremely slow.
    Has anyone experienced this?
    Regards!

    Hi Udayan,
    Thanks again for attention,
    I found this problem on the two MII versions, 12.0 and 12.1.
    The UDS and PCo are on different servers and using different ports too.
    I didn't find errors on netweaver about this, but I'll verify one more time.
    On true, on version 12.0 of MII there is two connections with PI, one PCo and another UDS, that are using the same port. But this does not happen on the MII version 12.1, there I'm using different ports.
    Thank you very much!

  • Logic slow when working with video

    Hi there
    I'm trying to work with video in Logic 8 but it slows down pretty dramatically when I imported the video. Are there any settings I can tweak to get the action to run more smoothly. The playhead jumps very slowly around, it takes the video a few seconds to start to play after pressing play in Logic. The video file I'm using is a Quicktime Mp4, around 288 Mb in size. The details of my system are on the signature below. Any help is much appreciate it.
    Thanks - Gunnar

    Don't use mp4, this is most likely the cause of your problem, especially if the video codec of your file is H.264. Mp4 allows you to have better perceived video quality with a lower file size, but the tradeoff is that it makes your computer do a lot of work in real time to decode the video.. Thus the slowdown of logic.
    Try converting your video file to QuickTime DV, this is a much more performance-neutral format, your video file will be much bigger but it won't be making any huge demands on your system to play back.
    Also, if your movie is too long it can also cause slowdowns in your logic project. When working on feature length films, they are always divided into reels of around 25 minutes each which keeps things manageable. If your film is very long you should divide it up.

  • Why is the Tick Count function slow when used with a .dll but fine with normal lab view code?

    when using the Tick Count millisecond timer with a .dll I've written in C, I'm getting some odd timing issues.
    When I code the function I want (I'll explain it below in case it helps) in LV and run it as a subVI, feeding it the Tick count as an argument, the function runs quickly, but not quite as quickly as I would like. When I feed this same subVI just an integer constant rather than the Tick Count, it takes about the same amount of time, maybe a tiny bit more on average.
    When I bring in my function from a .dll, however, I start to run into problems. When I feed my function an integer constant, it is much faster than my subVI written in LV. When I feel my .dll the Tick Count, however, it slows down tremendously. I'm including a table with the times below:
                 |  Clock   |   Constant   |
    SubVi:   | 450ms  |  465ms       |
    .dll         | 4900ms|  75ms         |
    This is running the function 100,000 times. The function basically shifts the contents of a 2-dimensional array one place. For this function, it probably won't be a huge deal for me, but I plan on moving some of my other code out of LV and into C to speed it up, so I'd really like to figure this out.
    Thanks,
    Aaron

    Hi Aaron,
    Thanks for posting the code -- that made things a lot clearer for me. I believe I know what's going on here, and the good news is that it's easy to correct! (You shouldn't apologize for this though, as even an experienced LabVIEW programmer could run into a similar situation.) Let me explain...
    When you set your Call Library Function Node to run in the UI Thread you're telling LabVIEW that your DLL is not Thread-safe -- this means that under no circumstances should the DLL be called from more than one place at a time. Since LabVIEW itself is inherently multithreaded the way to work with a "thread-unsafe" DLL is to run it in a dedicated thread -- in this case, the UI thread. This safety comes at a price, however, as your program will have to constantly thread-swap to call the DLL and then execute block diagram code. This thread-swapping can come with a performance hit, which is what you're seeing in your application.
    The reason your "MSTick fine behavior.vi" works is that it isn't swapping threads with each iteration of the for loop -- same with the "MSTick bad behavior.vi" without the Tick Count function. When you introduce the Tick Count Function in the for loop, LabVIEW now has to swap threads every single iteration -- this is where your performance issues originate. In fact, you could reproduce the same behavior with any function (not just TIck Count) or any DLL. You could even make your "MSTick fine behavior.vi" misbehave by placing a control property node in the for loop. (Property nodes are also executed in the UI thread).
    So what's the solution? If your DLL is thread-safe, configure the call library function node to be "reentrant." You should see a pretty drastic reduction in the amount of time it takes your code to execute. In general, you can tell if your DLL is thread-safe when:
    The code is thread safe when it does not store any global data, such as global variables, files on disk, and so on.
    The code is thread safe when it does not access any hardware. In other words, the code does not contain register-level programming.
    The code is thread safe when it does not make any calls to any functions, shared libraries, or drivers that are not thread safe.
    The code is thread safe when it uses semaphores or mutexes to protect access to global resources.
    The code is thread safe when it is called by only one non-reentrant VI.
    There are also a few documents on the website that you may want to take a look at, if you want some more details on this:
    Configuring the Call Library Function Node
    An Overview of Accessing DLLs or Shared Libraries from LabVIEW
    VI Execution Speed
    I hope this helps clear-up some confusion -- best of luck with your application!
    Charlie S.
    Visit ni.com/gettingstarted for step-by-step help in setting up your system

Maybe you are looking for

  • At300-103 3g not working correctly

    I have posted on Toshiba Europe and got told to contact support in my home country so I called Toshiba in Vienna Austria only to get told they do not support my tablet that I should contact Toshiba Europe I am really tired of the run around and ready

  • Qosmio G30-E10: Display resolution switches from 1920x1200 to 1024x768

    Hello, Qosmio G30-E10 Display resolution switches sometimes from 1920x1200 (my default) to 1024x768 after returning from Standby or Hibernation i run Vista Ultimate, newest Display Driver from Toshiba Download Area. This doesn't happened any time, bu

  • Replace from bin crash Pr CS6

    Has anyone else noticed that Pr crashes when replacing a title already on the timeline/sequence with a freshly minted one in the bin? This has happened twice. Does not happen if I save at every step.

  • Attaching search help to a screen field

    Hi all, I've created a search help (zhlp) and want to attach it to the screen field in the selection screen of my report. SELECT-OPTIONS KSCHL FOR VAKE-KSCHL MEMORY ID VKS. I've attached zhlp to the screen by defining it on the element list of the sc

  • Pages docs created in iPad do not synch with macbook pro

    I have updated all software on macbook pro, ipad and iphone.  Pages docs. synch on iphone and ipad but not on macbook pro.  I have set up cloud on all. Additionally, I REALLY liked iwork and was able to collaborate with colleagues on documents. NOW W