CRIO scanned variable reads are slow. Do you know why?

I have a cRIO 9073 with a few I/O modules (for a total of 8 AI, 2 AO, 30 DI, 50 DO). I want to read and write the I/O from a PC.
This is the code I used on the PC (LV 2011):
(And no, opening the variable once before the loop doesn't help).
This is the basic structure:
It's supposed to use the scan engine on the cRIO to read and write the I/O values. The scan engine was left with its default values of a 10 ms scan rate and 100 ms network update rate.
My Problem is that the updating of both the DI and the DO is slow (it varies between immediate and ~6 seconds). It almost looks like there's a cycle somewhere and the time it takes for updating is dependent on where in that cycle the DI or DO was actually set. The primitives themselves run quickly (the loop has a 100 ms delay in it and it always runs at that speed), but the data takes time to arrive.
The cRIO hardly has any code running on it - the FPGA reads two DI cards and transfers the data as a U64 value through a DMA FIFO and the code on the RT target only takes this value from the FIFO and writes it to a network stream (not too quickly either, since most of the time there's no data in the FIFO). There's another network stream in the same loop which the cRIO uses to send error clusters to the PC. And that's it. That was all the code running on the cRIO, and yes, it did have a delay.
As far as I could tell, the code which managed the network stream always responded immediately. Triggering data in the FIFO results in an immediate display of the data on the PC. It's just the I/O read through the scan engine which is slow (and apparently not even all of that, since the AI display on the FP would update at several Hz).
At some point we tried moving the I/O reads to the cRIO (using ni.var.io instead of ni.var.psp), but that heavily loaded the CPU on the cRIO (although I can't understand why, since it was a simple loop which read a SV and wrote the data from it to the IO variable).
The latest thing we tried was to take the data from the SV, convert it to a U32 and send that to the FPGA VI. The FPGA VI then writes and reads the actual I/O. This seems to work, but makes me unhappy as it's considerably less inelegant from the system we had originally.
This didn't happen on another test unit which had less cards and code in it, so I'm not sure if this is a problem with too many cards/code or with something we did to the unit. I don't have experience with the cRIO, so I don't know how it's supposed to behave. Maybe we'll try configuring the test unit to be the same as the real unit and see what happens.
If I understand correctly, the real problem here is in the diagonal line in the diagram above, but I'm not sure why.
Does anyone have any idea why this is happening and if there is any way to do this (read and write the I/O from the PC at around 5-20 Hz) elegantly?
Try to take over the world!

Hi tst,
The scan engine is certainly not the fastest option for acquiring data from the i/o modules. However, you should be able to acquire the data consistently in the rate range you are looking for. The face that you're inconsistently getting ~6 s pauses in updating the DI and DO is strange.
One thing that was unclear in your explanation is how you're using hybrid mode. What I/O modules are you using with scan mode and which ones are you using in FPGA mode?
You said that you have found an "inelegant" solution by writing data from the shared variable (data transferred from the host VI?) directly to the FPGA and having the FPGA write and read the result. Programming the FPGA directly will always be quicker then accessing the i/o through scan mode. Do you have this module set to program in FPGA mode? Did you have it set to program the scan engine when you were using that interface?

Similar Messages

  • HT4623 MY IOS UPDATE IS BEING EXTREMELY SLOW, DO YOU KNOW WHY ?

    My IOS update has taken almost 2 hours and isn't even half way completed yet?
    I can't figure out why, can anyone help, or tell me how to speed it up ?
    Thanks

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
     Cheers, Tom

  • I can´t download skype to my new macbook pro, I can´t find it in the App Store, do you know why?

    I can´t download skype to my new macbook pro, I can´t find it in the App Store, do you know why?

    There are a number of developers who have chosen for various reasons not to offer their software through the Mac App Store, so don't assume that if an application is not in the App Store that the application is not available. It may well be available directly from the developer or some other download site. MacUpdate is a good resource for looking for applications:
    http://www.macupdate.com
    Regards.

  • Do you know why I cannot access the scheduling and rescheduling features of onetoone? This is over several days.  Either I am not able to fill in the ID/password boxes from an Apple email appointment reminder, or if I go through Apple onetoone via Safari,

    Do you know why I cannot access the scheduling and rescheduling features of onetoone? This is over several days.  Either I am not able to fill in the ID/password boxes from an Apple email appointment reminder, or if I go through Apple onetoone via Safari, I get perpetual spinning after I fill in and click. Help! Thanks.

    Call the store in question:
    http://www.apple.com/retail/
    Extension 5 in the stores in my area has usually led me to getting ahold of a real person.  It may differ by store.

  • I am needing to change my credit card info in my account but it is declining me. Do you know why?

    I am needing to change my credit card information in my account by it is declining me. Do you know why?

    What do you mean by "declining you"? In this discussions case, it was possible the user was using a debit card https://discussions.apple.com/message/22737457#22737457. If this is what you are experiencing, this may solve your problem.

  • Do you know why oracle queries many times sys.props$ for BACK_END_DB

    I noticed that oracle executes the following query too many times.
    select p.value$, lengthb(p.value$)
    from
    sys.props$ p where p.name = 'BACK_END_DB'
    Oracle 9i DB
    This query is not executed into a form, report, package or procedure.
    Question is:
    Do you know why oracle queries many times sys.props$ for BACK_END_DB?
    or how can we avoid it?
    Regards
    Marcos Galeana

    Hi,
    Internal table sys.props$ contains data for some oracle parameter/variables. Oracle makes internal calls to its internal tables for many fornt end SQL statements (recursive queries). So do not worry about those internals calls.
    Regards

  • Unable to install the IOS version 4.3 on iPod Touch and iPhone 4 you know why?

    Unable to install the IOS version 4.3 on iPod Touch and iPhone 4 you know why?

    Wifi or USB update? Have you tried the other?
    Have you tried reseting the iPod? Notihng is lost?
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.

  • Have iphone 4s for almost 2 yrs. Can not keep charged. Do you know why?

    Have iphone 4s for almost 2 yrs. Can not keep charged. Do you know why?

    You probalby need a new battery.

  • When syncing to my PC iTunes gets stuck at step 7 of 7 with "waiting for items to copy" - do you know why?

    when syncing ipad2 to my PC iTunes gets stuck at step 7 of 7 with "waiting for items to copy" - does anyone you know why?  The rest of the sync seems okay

    i don't know why it happens. but i know how frustrating it can be. the same thing happened to me. i posted a few inquiries in different apple forums and didn't get any ideas of how to fix it. i did however find a solution on my own.
    i found that if i did a "restore my ipad" that it fixed it. i was hesitant at first because i was afraid of loosing valuable information. but much to my relief i didn't loose any thing. other than an hour of my time.
    this seemed to fixed my problem of being stuck on "waiting for items to copy". my ipad now syncs both wired and wirelessly without any hang ups. however i would suggest that if you are syncing a large amount of data (movies for example) that you do it wired and not wirelessly. i found that it takes a lot longer to sync movies wirelessly.
    good luck

  • TS1424 I tried to purchase on itunes store and it said "your apple id has been disabled". Do you know why and how do I fix it?

    I tried to buy on itunes and it said" your apple id has been disabled".Do you know why and how do I fix it?

    If changing your passwords does not solve, then contact itunes support

  • I was trying to download a FREE app. It was keep saying that I have to verify my credit card details. As I did. Unfortunately they charged me 1,98 eur. Do you know why???

    I tried to download a free app.It was keep telling that I had to verify my credit card.In the end they charged me 1,98eur! Do you know why?

    Just for info..
    This is the official answer from Apple.
    "When you update your billing information (in this case when you filed your credit card), the iTunes Store will place an authorization hold on your credit card to verify your account information. You might see this authorization request on your online statement.
    Don't worry, this is not an actual charge, it is simply a test to confirm that your credit card account is active and has credit available to accommodate transactions."
    Many thanks

  • When I downloaded iOS 6 my iPod keeps crashing when on the App Store! Do you know why this is happening? Is there anything I can do?

    When I downloaded iOS 6 my iPod keeps crashing when on the App Store! Do you know why this is happening? Is there anything I can do?
    Hello my iPod keeps crashing when I downloaded iOS 6
    Is there anything that I have done wrong?
    My iPod is a is a iPod touch 4th gen.
    Thanks

    Known problem. See:
    IOS 6 App store crash: Apple Support Communities

  • I can´t download skype to my  IPHONE5, I can´t find it in the App Store, do you know why?

    I can´t download skype to my  IPHONE5, I can´t find it in the App Store, do you know why?

    https://discussions.apple.com/message/26086237#26086237

  • Using iClouds on my iPhone 4S, my Notes do not transfer from the old iPhone, do you know why?

    Using iClouds on my iPhone 4S, my Notes do not transfer from the old iPhone, do you know why?
    I have backed up everything in my older iPhone 3GS and were able to restore everything through iCloud's. The only section not transferred is my Notes on the old device. Does anyone know why and how I can transfer all my Notes?
    Thank you

    outlook did not worked for me, i tried with what i can find on the internet but in the end i gave up and used a chinese software to upload my contacts to the server and downloading it to my 4s

  • I cannot drag folders onto my 1 tb hard-disk. Do you know why? I can transfer things to my computer but I cannot drag them from my computer to the hard-disk..

    I cannot drag folders onto my 1 tb hard-disk. Do you know why? I can transfer things to my computer but I cannot drag them from my computer to the hard-disk..

    You can reformat the drive but that will wipe all the data on it. Move everything to your Mac. Reformat the drive using Disk Utility. If you need both Mac and Windows access, I suggest ExFAT. Then move it all back

Maybe you are looking for

  • Delete Pages, file size, PDF Optimizer Clean Up

    Using Acrobat 9 Pro (for Windows, if that makes any difference). I have a 148 page PDF of a magazine, about 58 MB in size. I Deleted 40 pages of ads, leaving just the useful content. The file size is still about 58 MB. When I run Advanced -> PDF Opti

  • Help.iTunes could not connect to the iPod, you must enter passcode first...

    My wife recently turned her iTouch on, to find this connect to iTunes screen. When we connect it to iTunes, we get this pop up. The problem is, the iPod will not allow us to do anything but shut it off and it remains on the connect to iTunes screen?

  • Uploading Logo in report program....Urgent

    Dear SDN Team Members, I'm trying to upload the logo into my report program.  I've this logo in smartform but i'm not sure how to upload that logo into my Report program. Could anyone help me send the code for the same. Thanks in Advance. Best Regard

  • Support for Crystal Report XI runtime on Windows Server 2008 R2

    Hi all, I was wondering if Crystal report XI runtime is supported on Windws Server 2008 R2. I've found this url http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e06b8953-a62b-2d10-38b9-ca71f747e2b1?QuickLink=index&overridelayout=tru

  • Iphone update problem

    Both on my Windows computer (Vista Premium) (itunes 7.6 updated today) and my Mac (OS 10.4.11) (itunes also updated today), I have gotten the identical message on both machines while attempting to update from 1.1.3 to 1.1.4): "iTunes could not sync t