RT - How can I make data transfer to host faster?

Hi 
I have created a program that acquires data on FPGA then transfers them to RT so RT can send them up to the windows host once UI is connected.
The program is based on message type structure as in NI's examples.
However, I have one problem the data to windows host is not transferred fast enough.
Pic1 shows the offending bit of code and FPGA.png what's hiding in the subVi.
FPGA is meant to acquire to cycles of a sine wave. In this case it approximately 40 ms of data at 25us sampling rate (40kS/s 8 channels). Later the data is sent to the host. As you can see I have a dedicated stream for data only and a different one for message passing.
If I disable the code in the case structure this loop executes in 39-40 ms, however when I start sending the data to the host the rate drops to 57-60 ms per iteration and that sooner or later leads to buffer overflow.
I have experimented with passing the acquired data to a different loop using a queue but that wasn't faster. I have also tried pipelining but that did not speed it up either. Would you have any suggestions how I could improve my transfer rates?
Thank you.
Bartosz
Attachments:
Pic1.png ‏100 KB
FPGA.png ‏75 KB

Hi barteklul,
There are 2 main methods of achieving fast data transfer between RT and Host PC:
1. Using the "Shared Variables", they allow you to transfer data deterministically from
RT to Host PC, usually are used to monitor data.
Please have a look at this article:
http://zone.ni.com/reference/en-XX/help/370622J-01/lvrtconcepts/rt_projectvariable/
This is the example code:
https://decibel.ni.com/content/docs/DOC-15928
The only disadvantage of such method is that if for example RT gets data really fast
your Host PC can miss some samples.
2. In order to receive all data from RT
(guaranteed 100% data transfer without missing any samples) "Network Streams" should be used.
It is a little bit more complex to implement, but if you want to store data to the file "Network Streams"
are strongly suggested. In addition "Network Streams" are not deterministic.
For more details about network streams please read this article:
http://www.ni.com/white-paper/12267/en/
At the moment I see that you are using "Network Streams" to transfer data and also I can see that you have some timing on RT
which can slow down the data transfer rate. I suggest you to transfer data to Host PC as soon as it comes into the FIFO.
Also if you transfer data just to monitor it, I suggest you to try Shared Variables method.
I hope that you will this information useful!
Kind Regards,
Max
Applications Engineer
National Instruments

Similar Messages

  • How can I make my mac mini run faster? Everytime i try to download a internet page I get the circle with colors. It takes too long. Help

    How can I make my mac mini run faster. Loading internet pages is too slow

    i have the same problem...it can take 10-15 seconds to just switch tabs..i think i will solve it by taking mine back

  • How can I make my print job go fast again?

    How can I make my print job go fast again? Since february when there was a update for snow leopard, all of my print jobs almost take forever to finish.. a pdf file 10MB size will take about 1 hour to send to the printer that is a Nashuatech mp c3500.
    And yes, if the pdf for example is 20MB size, it will take about 2 hours to get it done..
    My equipment is:
    Macbook pro OS X 10.6.8
    Nashuatech NRG MPC3500

    Sometimes, Software Update doesn't apply updates entirely correctly, and odd issues can happen.
    You might download and install the latest combo update for 10.6.8, which is at http://support.apple.com/kb/DL1399 . Before installing, bring up Disk Utlity (on your hard drive in applications/utilties) and repair permissions. Install the update, then repair permissions again when done.

  • How can I make my flash video load faster?

    How can I make my flash video created in Flash Pro CC load faster, as of now it takes 2 minutes to load?

    This is the source file for video.php:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title> VOPVIU Video
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css" media="screen">
    <!--html, body { height:100%; background-color: #666666;}
    body { margin:0; padding:0; overflow:hidden; }-->
    #flashContent { width:750; height:600; }
    </style>
    </head>
    <body style="background-color:#6E9BD2;">
    <center>
    <div width="100%" height="100%">
    <h3 align="center"> Victims of Political Violence in Uganda <br/> (VOPVIU)
    </h3>
      <table border="0" width="52%">
       <td width="80%" align="center">
        <em>
         <font color="#FFFFFF">
      <strong>
      <p> Victims Of Political Violence in Uganda
      </p>
    Number of views 344       </strong>
      </font>
        </em>
       </td>
       <td width="20%" align="right">
        <form action="vopviu.php">
         <div>
      <input type="submit" value="Exit Video">
      </div>
        </form>
       </td>
      </table>
      <table width="70%" height="70%" border="0">
      <td width="70%" height="70%">
      <center><div id="flashContent">
    <center>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="750" height="423" id="faddu_vopviu" align="middle">
    <param name="movie" value="faddu_vopviu.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#666666" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="faddu_vopviu.swf" width="750" height="423">
    <param name="movie" value="faddu_vopviu.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#666666" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflash">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
      </center>
      </div>
    </center>
    </td>
    </center>
    </table>
    </div>
    </center>
    </body>
    </html>

  • Canon EOD Rebel sl1 (100d) raw photo's (.cr2) cannot be read in aperture. How can I make dat?

    How can I read my photo's from my Canon Eos 100d (Rebel sl1) in aperture.
    The extension is .cr2.
    The extension from my photo's from my Canon 5D Mark III are .cr2 as well, but i can read those in aperture.

    .cr2 is a general file extension for Canon Raw format, but the raw support is specific for each camera. The list of supported raw formats is here: http://www.apple.com/aperture/specs/raw.html
    I do not yet see your camera on that list. You may have to wait for the next raw support update to be able to open the raw files in Aperture.
    While you are waiting, you may want to shoot raw and jpeg pairs and use the jpeg as original file, and change back to the raw as master, when your camera will be supported. Or try, if the free Adobe dng-converter can read the images: see  here http://www.macupdate.com/app/mac/16064/adobe-dng-converter
    Regards
    Léonie

  • How can i make my macbook pro run faster? seems slower then usual. :(

    okay, so my macbook pro lately seems to be going slow, well, its been gradually getting worse and worse.
    i am getting the rainbow wheel thingy just about every time i click onto a new button.
    i have SOPHOS (antivirus) installed, have never installed any antivirus or mackeeper ****.
    i usually only have safari and maybe itunes open.
    2.2GHz Intel Core i7     8 GB 1333 MHz DDR3 RAM (MEMORY)      OSX 10.8.4     15 inch screen     350GB free hard drive space
    ANY HELP WILL BE GREATLY APPRECIATED!

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    Otherwise, take the steps below when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • How can I make my Minecraft Bukkit server faster?

    I host my own minecraft bukkit server.
    Ip: ccmc.us.to
    And I was wondering, since I host it on my iMac, I would like to know if anyone knows how to make it faster. Why I want to make it faster: More Players, Hold more plugins, Prevent lag, prevent lag on other players, improve connection, etc.
    My system specs:
    Model Name:          iMac
      Model Identifier:          iMac12,1
      Processor Name:          Intel Core i5
      Processor Speed:          2.5 GHz
      Number of Processors:          1
      Total Number of Cores:          4
      L2 Cache (per Core):          256 KB
      L3 Cache:          6 MB
      Memory:          32 GB
      Boot ROM Version:          IM121.0047.B1F
      SMC Version (system):          1.71f22
      Serial Number (system):          C02HGGT7DHJF
      Hardware UUID:          5F444975-87A3-51B3-82C4-9E4E88E606BF

    Hi Russo, not much you can do on an iMac... maybe a SSD or faster Internet, but..
    What do you get for raw speeds here, for both Java & Flash, DSL Reports...
    http://www.dslreports.com/stest

  • How can I make my iPod touch 4g faster??

    My iPod touch 4g is really slow and laggy most of the time and I don't know how to fix it. Also my cnet app closes randomly sometimes and, I don't know why. Can you please tell me how to make my iPod touch faster and less laggy. Thanks

    Periodically double click the home button and close all the apps in the recently used dock. Then power off and then back on the iPod. This frees up memory. The 4G only has 256 MB of memory.
    Next
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.

  • How can I make adobe photoshop cs6 run faster?

    Windows 7 Ultimate
    Processor: AMD Athlon(tm) XP Processor 3000+ GHz
    Installed memory (RAM): 768 MB usable
    System Type: 32 bit operating system
    Thanks for your help!

    GrantyPanty wrote:
    How exactly do I get more RAM or install a 64 bit operating system? How much RAM do I need?
    That depends on your computer; best ask in the shop where you bought it.
    How much do you need?  The more, the better.  I have only 4GB, and my Photoshop works decently well (for the limited tasks I use it for).  If you use it heavily, probably 8GB or 16GB would be better.
    However, you can only use this memory if you use
    the 64-bit edition of Windows
    the 64-bit edition of Photoshop
    Unfortunately you cannot upgrade 32-bit Windows to 64-bit Windows; you need to install it from scratch.

  • How can I make my MacBook Pro work faster?

    MacBook Pro
    13-inch, Mid 2010
    Processor  2.4 GHz Intel Core 2 Duo
    Memory  4 GB 1067 MHz DDR3
    Software  OS X 10.9.4 (13E28)
    I'm not sure what should I do. Should I upgrade certain parts? Should I do something with the software?
    I am lost. I am not familiar with CPU knowledge.
    Help. Please. Thank you.

    Your particular model can handle up to 16GB of RAM - I would suggest at least 8GB as the 'sweet spot' for current and future versions of OS X.
    You could also upgrade to a SSD to see a real speed increase - see -> Upgrading Your MacBook Pro with a Solid State Drive.
    Both of these upgrades are jobs that you can DIY. There are tons of videos online showing you how to install both. No need for the pros - just two screwdrivers and you can accomplish the upgrades.
    Good luck,
    Clinton
    MacBook Pro (15-inch Late 2011), OS Mavericks 10.9.4, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

  • How can I make Final Cut X run faster on MBP 13?

    Hi all,
    I have a Macbook Pro 13inch Early 2011, 320 HD, OSX 10.8.3 2.3 GHz with 4 GB of memory. I use Final Cut X about once a week for editing, but it's literally frying my laptop. When I open it, I can't have any programs running. FC and my laptop become slow and unresponsive about once every ten minutes. I save all of my projects on my external HD and I have the background rendering turned off. Is there any solution for FC being this slow? I'm doing the editing to save up for a 15 inch MBP, but for now I have to use my 13inch. Any help would be greatly appreciated.

    At a minimum, increase your RAM to 8 GB.
    Put your events and projects on an external Thunderbolt or Firewire 7200 RPM drive.
    Maintain at least 25% free space on your boot drive.
    Use proxy clips.
    Russ

  • How can i make my macbook pro run faster?

    My macbook is running super slow. The spinning beach ball appears every thirty seconds and it's annoying. I ran the verify disk permissions and verify disk twice and nothing helps. Please help me

    Verily only checks the disks. It does nothing beyond that.
    How much free space does the system disk have?
    Alaln

  • How can I make my late 2006 iMac faster?

    I have a late 2006 iMac and it has been running really slow. I have already cleaned it with CleanMyMac 2 and I clean it everyday. Is there anything I can do to speed it up? Thanks!

    Mac OS X v10.5 Leopard requires:
    A Mac computer with an Intel, PowerPC G5, or Power PC G4 (867 MHz or faster) processor
    512 MB memory or more
    A DVD drive for installation
    9 GB of available disk space or more
    Some features require a compatible Internet service provider, fees may apply.
    Some features require Apple's MobileMe service; fees apply.
    And .... 10.5.8 is a must for the iPad to be recognized in iTunes. It will not work with Tiger at all.

  • How can I make iPad 1 operate faster

    How can I make my iPad 1 run faster

    As the result of months of web surfing and testing, I could narrow down the issue at is causing performance on all our original iPads! One would say to turn all the iCloud features off, but I have found that there are major performance bugs in contacts and calendars! Turn them off in the iCloud part if the settings. This, alone with disabling spotlight search results in no keyboard lag and no "checkerboard effect" in safari whe pages won't load fast enough! I hope this helps everyone as it did to me!

  • How can i make my iphone run faster

    How can I make my iphone 4 run faster?

    ray miranda wrote:
    I have my iMac purchased in 2008 and it is running very slow.  I have a time capsule.  I believe it only has 1 GB of SD Ram.  Will it run faster/better if I increase the Ram?
    YUP!
    How large is you HD and how much space do you have left?
    Care to share which OS you are using?
    How can I make my iMac run faster?

Maybe you are looking for