Is there a quick and easy way to reorder de-interleaved data?

I am collecting 5 channels of data through a DMA FIFO by interleaving, then recording to a TDMS file. When I check it, it's in mostly good order, but there are certain points where the channels get switched. For example, the Channel order when I open the file is 1 2 3 4 5, as expected, for several thousand elements. But at some point, it gets shifted to 4 5 1 2 3, and later 2 3 4 5 1. Left-to-right, they are always ordered correctly, so it's easy to reorder them, but very tedious with millions of elements. I have attached some sample data. I'm looking for A) a way to prevent this or B) some kind of sorting tool or script in LabVIEW or DIAdem that may sort it for me. I'll work on a sorting script in the meantime. 
I am using LabVIEW 2011 Real-time and FPGA 2011, and the standard TDMS open and write functions. I also have access to DIAdem. 
Solved!
Go to Solution.
Attachments:
TDMS import-check analog data.xlsx ‏3807 KB

Sorry for the slow response - 
I've looked at everything, and so far I can't identify the problem. I believe my code is consistent with the producer-consumer architecture. 
On the real-time side, I am reading data from the FIFO and writing to the TDMS in the same loop.
On the FPGA side, analog channels are read, converted to the same fixed-point format with a time stamp in a single-cycle timed loop, and then ordered into the FIFO in a for loop. I have posted the relevant parts below.
I am using C-series modules in a CompactRIO.
Attachments:
top-fpga loop-bottom-rt loop.png ‏26 KB

Similar Messages

  • Is There A Quick And Easy Way Of Avoiding "Stepped" Edges (Aliasing)?

    I am using Compresor 3.0.3 to encode HDV projects to SD DVD.
    I originally tried Exporting QuickTime Movies from FCP but discovered there was terrible shimmering on straight edges and severe judder when panning or if someone walked across the frame.
    Using the "DVD Best Quality 90 minutes" setting smoothed out all the above problems.
    Unfortunately it left noticeable stepping or aliasing on diagonal sharp lines !
    This is much less of a problem than the judder but if possible I would like to get rid of it.
    I have read up about the Bonsai method, but the processing times involved are enormous and not warranted by the slightness of the problem.
    I have also seen an anti-alias slider in Compressor but when I used it the processing slowed almost to a halt. Maybe I was operating it incorrectly ?
    Is there a quick way to get rid of the stepped edges, or is it something everyone has to live with when converting HDV to SD DVD ?
    Ian.

    Yes it's all PAL Kyle. The problem isn't just mine though. It seems to be par for the course. From what I have read, the Bonsai method was devised to overcome it but the actual problem is really so slight, that for amateur work the cure is a bit over the top.
    http://www3.telus.net/bonsai/Step-by-Step.html
    It's too darned hot Luca ! Especially at night.
    Your process seems a bit like the Bonsai method and I'm beginning to think that I might be exaggerating the problem in my mind.
    The aggravating thing is that when I did a straight Export>To QT Movie, although I got terrible judder, there was almost no sign of aliasing ......... which is why I felt there should be a simple solution.
    I'll just have to pray that they bring the prices of Blu-ray down rapidly, so there will be no need to use standard def.
    I am going to experiment with shooting 25PF tomorrow to see if that helps ........ or not.
    Ian.

  • Is there any quick and dirty way to determine what something will look like

    Hi,
    Is there any way (rule of thumb) to determine what something will look like when printed.
    for example.
    I am doing a composite (hope this is the right word). It will have some people sitting at a table and I want to have another layer with another picture behind it.
    I plan for the output to be fairly small (print size), say 4 x 5 or whatever.
    Now, if I go to the internet and google (or mamma.com) and search for images (large) and it comes back to me, I will see pictures that are (for example) 800 x 526 pixels 367 kb, or 940 x 480 pixels 166 kb.
    I would have to assume the 367 kb will print at better resolution, but if i liked the 166 kb picture better, is there a quick and dirty way to determine if it would print better (say 250 or 300 dpi or whatever) or not?
    So, bottome line,
    Assume my output picture will be 4 x 5 (and I want 300dpi (or is it ppi)
    How do quickly look at google results and determing if they will print ok?
    Bob

    The closest to a one click fix in photoshop cs-cs5 is
    Image>Adjustments>Shadow/Highlight or opening the
    image through camera raw and using the recovery slider.
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-765da.h tml
    MTSTUNER

  • Quick and easy way to learn to use Oracle Spatial?

    Could anyone recommend a quick and easy way to learn to use Oracle Spatial?

    Depends on your style.
    Reminds me of a story a contractor to an IT department I worked in once told me.
    He used to work in Silicon Valley in the '70s and told a story of a company that
    hired a particular programmer who was brilliant but unstable. They used to set
    up a room with a VT100 and a bottle of Tequila. The programmer would arrive
    and set to work. As the Tequila emptied it was replaced. At some point over
    the following days or weeks a scream would be heard from the room, followed
    by a crash as the VT100 went through the window and the programmer disappeared.
    They would replace the window, the VT100, the Tequila and wait till he came back
    from "walkabout".
    "Extreme Programming" '70s tyle!
    OH&S would never allow this nowadays! That, plus Prozac means these sorts
    of programmers are probably very rare!
    Cheers!
    S.

  • Quick and easy way to encode video files?

    With out using another application.

    An easy and simple way you can do this is by using Finder. It might not be the best option, depending on what you need but try it out.
    Control+Click on the file and select > Encode Selected Video Files
    You can choose from 480p, 720p, 1080p, Audio Only, or  Apple ProRes under the Settings drop down menu.
    Then choose whether you want to Encode for higher quality or greater compatability.
    When you have selected your settings the window will tell you the Format, Resolution, Date rate and what it compatible with. The 480p, 720p and 1080p will use H.264 compression which is highly compressed and probably what you want to choose to compress your file.
    After you have selected your settings select the destionation and if you want to delete the source file and click continue.
    Done. Easy and simple, done right in finder.

  • OWB11gR2 - simple and easy way to load XML formatted data into db tables?

    Hi,
    we're currently trying to load table data stored in XML files into our datawarehouse using OWB 11gR2.
    However, we're finding this is not quite as trivial as loading flat files...
    Most postings on this forum points to the blog-entry title "Leveraging XDB" found here (http://blogs.oracle.com/warehousebuilder/2007/09/leveraging_xdb.html).
    This blog also references the zip-file owb_xml_etl_utils.zip, which seems to have disappeared from it's original location and can now be found on sourceforge.
    Anyway, the solution described is for OWB 10g, and when trying to import experts from the zip-file etc. we end up not being able to run the "Create ETL from XSD" expert, as the 11gR2 client is different from the 10g and does not have the Experts menu et.al.
    Also, this solution was published over 3 years ago, and it seems rather strange that importing XML-formatted data should still be so cumbersome in the newer warehouse builder releases.
    The OWB 11gR2 documentation is very sparse (or rather - quite empty) on how to load XML data, all it has is a few lines on "XML Transformations", giving no clue as to how one goes about loading data.
    Is this really the state of things? Or are we missing some vital information here?
    We'd have thought that with 11g-releases, loading XML-data would be rather simple, quick and painless?
    Is there somewhere besides the blog mentioned above where we can find simple and to the point guidelines for OWB 11gR2 on how to load XML-formatted data into Oracle tables?
    Regards,
    -Haakon-

    Yes it is possible to use SQL*Loader to parse and load XML, but that is not what it was designed for and so is not recommended. You also don't need to register a schema, just to load/store/parse XML in the DB either.
    So where does that leave you?
    Some options
    {thread:id=410714} (see page 2)
    {thread:id=1090681}
    {thread:id=1070213}
    Those talk some about storage options and reading in XML from disk and parsing XML. They should also give you options to consider. Without knowing more about your requirements for the effort, it is difficult to give specific advice. Maybe your 7-8 tables don't exist and so using Object Relational Storage for the XML would be the best solution as you can query/update tables that Oracle creates based off the schema associated to the XML. Maybe an External Table definition works better for reading the XML into the system because this process will happen just once. Maybe using WebDAV makes more sense for loading XML to be parsed (I don't have much experience with this, just know it is possible from what I've read on the forums). Also, your version makes a difference as you have different options available depending upon the version of Oracle.
    Hope all that helps as a starter.
    Edited by: A_Non on Jul 8, 2010 4:31 PM
    A great example, see the answers by mdrake in {thread:id=1096784}

  • A quick and easy way to add genre to songs in a playlist

    I have a 160mb classic ipod and I want to shuffle only a portion of my total library tracks. I am thinking the best way to do this is to use the Smart Playlist function and shuffle by genre. But if I do that I want to change the genre label or add one to many of my 4000 songs. Is there anyway to do this easily? I tried to select every song in a playlist and right click and use Apply Sort Field, but unfortunately genre is not one of these fields! Any idea?
    Or (although this may be the wrong forum), is the any way, short of making one gigantic playlist, to get my iPod to shuffle among just certain playlists?

    The only way to add to files to a playlist on the player itself is to put them in the queue, then save the queue as a playlist.

  • My computer had a virus and had to be cleaned, but I had my Mozilla bookmarks in a Word file now located on my Desktop. There should be an easy way to drag the bookmarks to the new Mozilla. Can you tell me how in simple straightforward steps? Thanks.

    Question
    My computer had a virus and had to be cleaned, but I had my Mozilla bookmarks in a Word file now located on my Desktop. I have spent hours trying to drag those bookmarks to the new Mozilla. There should be an easy way to do this. Can you tell me how in simple straightforward steps? Thanks.

    If the Word file is a document file type (.doc), you may be able to save it as a .html file, then import that .html file into Firefox.
    In Word, open the .doc file containing the Bookmarks,
    *click File > Save As,
    *in the "Save in" box, choose a Folder or location on your hard drive to save the file where you can find it later,
    *in the "Save type as" box choose ".html",
    *in the "Filename box" enter "bookmarks.html" (without the quotation marks),
    *click "Save"
    Then follow the-edmeister's instruction in Firefox:
    *Bookmarks > Organize Bookmarks -> Import & Backup - Import HTML... = from an HTML file
    *See: http://support.mozilla.com/en-US/kb/Importing%20Bookmarks%20from%20an%20HTML%20File

  • HT5622 Hello - my wife and I use the same appleID (legacy of our first ipod) and now that we've gone to the cloud with multiple devices, is there a smart, easy way to either segregate the data in the iCloud to each of our respective devices or ??  Thx

    Hello - my wife and I use the same appleID (legacy of our first ipod) and now that we've gone to the cloud with multiple devices, is there a smart, easy way to either segregate the data in the iCloud to each of our respective devices or ??  Thx in advance ...

    Hello eagjdw
    You can keep the one Apple ID for purchases and then create another one for a personal account for contacts and calendars. The article below will assist further
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • E1200 and "Quick and Easy Setup"

    My parents were trying to setup their E1200 router. We had to do a reset (using the button) since we couldn't access the router admin menu (someone had hacked/changed the password). I'm doing this remotely over the phone.
    Now, when they open Internet Explorer, they are getting a"Linksys Quick and Easy Setup" screen no matter what web site they try to get to. They don't have access to the original CD to install Linksys Connect. Mom says that when she clicks on "No CD? Download the software" link, nothing happens. Looks like she's got internet, though, as there's a link to the Linksys forums, and she's seeing updates from the forums."
    I don't know what this screen looks like, but isn't there some way to get past this splash screen? The computer is plugged into the router via a cable, so I'm not sure why they can't access the internet manually. Is there a way to just "disable" the "Quick and Very So Not Easy Setup" and skip right to using the internet?
    Thanks.

    Hi dapupster. I suggest that you let your parents do another reset. Tell them to make sure that they press down the reset button that's underneath the device ( please check the  picture). Let them press it down for 30 seconds while the device is powered on.  Once done, let them unplug the unit, plug it back in and try to access the setup page manually through 192.168.1.1.
    If the challenge remains the same, let them unplug the router from the modem and have them access the 192.168.1.1 page with only the computer that's connected to the router.  Hope the suggestions help.

  • Why do we have to activate individually all third party apps!!! There should be as easier way!

    Why do we have to activate individually all third party apps!!! There should be as easier way! Apple TV is not Apple anymore...

    Primarily because those third party apps are just that, they are not Apple apps, and each have their own requirements for activation.

  • Signing Applications - There must be an easier way

    Hello, I want to put free-iSMS on my N97 however it's unsigned so I can't. I've been reading up a lot on Google on how to sign an app or how to hack the N97 both of which are very long winded processes. There must be an easier way I can do it. It's all quite new to me and everything appears to be Chinese (literally).
    Does anyone know of the simplist guide that wont confuse me? 
    And is it safe to put all my phone details on the web???

    I followed the guide found within the forum you suggested, however when I went to download the certificate my (works) proxy server stopped the download due to the following reason
    [code]
    WARNING: ProxyAV has detected a virus in this
    file!
    File has been dropped.
    ProxyAV Administrator: unknown
    2009-10-09 14:47:52+00:00UTC
    Hardware serial number: 2205050030
    ProxyAV (Version 3.1.1.3(29863)) - http://www.BlueCoat.com/
    Antivirus Vendor: Sophos, Plc.
    Scan Engine Version: 2.90.1
    Pattern File Version: 4.45E.989453.1691461856 (Timestamp: 2009/10/09 12:16:00)
    Machine name: ProxyAV
    Machine IP address: 172.18.31.55
    Server: 221.238.19.22
    Client: 172.18.16.1
    Protocol: ICAP
    Virus: "Mal/Generic-A" found!
    URL: http://theme.esqimg.com/eshequn/isign/theme/isign/SignTool2.zip
     [/code]
    Is this a problem?
    Message Edited by rhysgm on 09-Oct-2009 05:06 PM

  • Is It Possible to Clone RAID Array in a Safe and Easy Way?

    Why do computer users need to clone RAID array, especially Windows Server users need to do RAID cloning? Generally speaking, they need to clone RAID array regularly in order to upgrade disk or migrate data from small disk to a larger one. A typical
    example is that when the partitions on the hardware RAID runs out of space, you may prefer to rebuild the hardware RAID with larger hard disks. Then, you need to backup the data to another place, rebuild the hardware RAID and restore data again.
    What a time-consuming task!
    Is it possible to clone RAID array in a safe and easy way? The answer is yes and this article will introduce a RAID cloning software.

    Hi jiangchunli,
    Were you looking to post this question in some other forum? This looks like related to RAID and Disk upgrades.
    This forum is meant for
    http://www.windowsazure.com/en-us/services/recovery-manager/
    Please let us know if this is indeed Hyper-V Recovery Manager related so we can help better.
    Thanks
    Praveen
    Praveen/ www.PraveenKumar.in

  • HT1386 simple and easy way to sync my contacts from iPhone 3gs to Macbook Pro that both my partner and I use. Have tried with photos and and only 350 of 3,500 items have synced. Remember simple and easy, I'm still learning-slowly.

    Simple and EASY way to sync contacts from 3gs iPhone to MacBook Pro. Partner and I both use macBook. I have tried and get a message that only 350 of 3,500 item have syncd- all photos. I'm still learning and am very afraid of doing something that will wipe out all info,contacts and photos. Entering this site, the account shows my partners name, but accepts my other information.

    First of all, you should always save you photos on computer like any other digital camera.
    Backup on iCloud or iTunes only backup your Camera Roll. The other photos should be already on the computer.
    Note: Photos are not saved in iTunes, it's only a conduit between your iPhone and your photo managing software on computer.
    What computer do you have?

  • Updating 3GS from 3.1.2 to 6.1.3 taking way too long. Is there a better and faster way?

    How long does it take to update an original 3GS to 6.1.3? I followed the iTune instructions and it has been updating for hours already. Is there a better and faster way to do this?

    SO if I want to represent the London Underground
    network as a Graph how would I be able to do it?By writing classes of your own or using some one else's. I don't think that the collections framework has out-of-the-box support for graphs.... So try google first.
    The implementation details depend on the API you are going to use, of course...
    from A to B 5 min
    from B to C 4 min
    from A to C 9 min
    this information is redundant, the third info should be omitted. <nit-picking>
    No it's not - What if there's a special, more direct route from A to C? Also, getting from A to B to C will usually take more time than the time from A to B plus the time from B to C. The trains have to stop at B, don't they?
    </nit-picking>
    Maybe this approach is more complex, but it solves the problem Have I understood correctly - isn't what you describe just another way to implement a graph?

Maybe you are looking for

  • Editing 1080 50fps on a mac mini

    I want to edit video shot in 1080 50fps using adobe premiere elements. I want to edit the original .mts files with the h.264 codec. Will the new Mac mini 2.3 ghz quad core be able to do this? (maybe with a memory upgrade) or do I need to buy an iMac?

  • Depreciation of asset

    Hi Experts this is regarding asset depreciation. Can we calculate depreciation for an asset based on units produced instead months or years. Please reply. Thanks and Regards Balu.

  • Questions about Personalized MAIL Forms

    Hi all! I got some questions regarding the Personalized Mail Forms in CRM: 1. When you set up the subject part of the Form is it possible to "personalize it too"? What i mean is it possible to add attributes to the Subject for example the target's na

  • Xserve G5 - won't boot from disk, only network

    I recently installed Yellow Dog 4.0 on a drive (far left) in a 3 bay G5 and I cannot get it to boot from the disk in the drive (not even by lighting the 3rd light on the lightshow). However, when I take the drive out and put it into a different G5 se

  • Can I take my iPhone to the Apple Store to reset the passcode?

    I'm trying to sell my old iPhone 4S and I can't remember my old passcode. If I take it to the Apple Store, can they reset my passcode for me? It's no problem if they need to erase the whole phone since I would be doing that later anyway.