What's the best way for reading this binary file?

I've written a program that acquires data from a DAQmx card and writes it on a binary file (attached file and picture). The data that I'm acquiring comes from 8 channels, at 2.5MS/s for, at least, 5 seconds. What's the best way of reading this binary file, knowing that:
-I'll need it also on graphics (only after acquiring)
-I also need to see these values and use them later in Matlab.
I've tried the "Array to Spreadsheet String", but LabView goes out of memory (even if I don't use all of the 8 channels, but only 1).
LabView 8.6
Solved!
Go to Solution.
Attachments:
AcquireWrite02.vi ‏15 KB
myvi.jpg ‏55 KB

But my real problem, at least now, is how can I divide the information to get not only one graphic but eight?
I can read the file, but I get this (with only two channels):
So what I tried was, using a for loop, saving 250 elements in different arrays and then writing it to the .txt file. But it doesn't come right... I used 250 because that's what I got from the graphic: at each 250 points it plots the other channel.
Am I missing something here? How should I treat the information coming from the binary file, if not the way I'm doing?
(attached are the .vi files I'm using to save in the .txt format)
(EDITED. I just saw that I was dividing my graph's data in 4 just before plotting it... so It isn't 250 but 1000 elements for each channel... Still, the problem has not been solved)
Message Edited by Danigno on 11-17-2008 08:47 AM
Attachments:
mygraph.jpg ‏280 KB
Read Binary File and Save as txt - 2 channels - with SetFilePosition.vi ‏14 KB
Read Binary File and Save as txt - with SetFilePosition_b_save2files_with_array.vi ‏14 KB

Similar Messages

  • What is the best way to read in a file?

    i'm currently doing it like this:
    Vector inVector = new Vector();
    try
    File file = new File( "C:/1jkiesel/testAgent/Customers.txt" );
    BufferedReader in = new BufferedReader( new FileReader( file ) );
    String str;
    while( ( str = in.readLine() ) != null )
    inVector.add( str );
    in.close();
    catch( IOException e )
    e.printStackTrace();
    is there a better way? especially th full file path thing...

    I did a search in the formums for
    "best practice read file"
    there were too many results so it was not very helpful
    I think that the best practice is to look at the "read" methods for
    each stream super class and decide which one is best for the particular
    application you have.
    I ask a follow up question:
    Is there a web page where we can find some comparisons of the various methods? Comparisons like speed, size, exception handling?
    hope this helps

  • This community is great -- very helpful. What is the best way to read "word" docs on my brand new iPad 2? Is there an app for that?

    This community is great -- very helpful. What is the best way to read "word" docs on my brand new iPad 2? Is there an app for that?

    If you're just reading them from email attachments, you can just open it to "view" the document.
    However, if you wish to do editing and work, you'll need an application. I use Documents to Go, but there are other versions that people are happy with - do a search in the App store for "office suite" or "word processing".
    The next challenge is getting docs back and forth. Doc2Go and others have their own ways to physically sync docs when connected to a computer; you can also email changed/revised/new documents from the iPad to yourself. However, I use a "cloud service" called DropBox that stores docs in the cloud (so I can get to them anywhere) - I paid for the Premium version of Docs2Go to allow that kind of syncing.

  • I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    You will need a Mac, with OS X 10.6+ on it, to be able to develop iOS apps.
    There is some info on these pages :
    developer site : https://developer.apple.com
    developing for iOS 7 : https://developer.apple.com/ios7/
    developer support : https://developer.apple.com/support/
    developer forums : https://devforums.apple.com/index.jspa (you will need to be a registered developer to access them)

  • What is the best way for this situation?

    Hi I have an xml file in my application. over a period of time i have to add few nodes to the existing xml file.
    In my business logic when a specific requirement is met i have to add one child node to the existing parent node for an existing xml file.
    what is the best way to do this? which api is the best for this?

    DrClap wrote:
    Muralidhar wrote:
    using DOM parser we can parse the xml file but can we write to XML file?Sure. That's the inverse operation of parsing, and it's called "serializing".
    The usual way to serialize a DOM to a file is to create a Transformer and apply the identity transformation to the DOM. However there are also third-party XML serializers that don't take that approach.I have not understood what the identity transformation mean. but i have searched for an example and found the following way to do it using Transformer. I hope what i find is right.
    Transformer tFormer = TransformerFactory.newInstance().newTransformer();
              tFormer.setOutputProperty(OutputKeys.METHOD, "xml");
              Source source = new DOMSource(doc);
              Result result = new StreamResult(new File(url.toURI()));
              tFormer.transform(source, result);

  • I'd like Time Machine to backup my personal account's files separately from my guest account's files. Both have big files.  What's the best way to do this?  Should I connect 2 external HD to my new iMac, one for each account?

    I'd like Time Machine to backup my personal account's files separately from my guest account's files. Both have big files.  What's the best way to do this?  Should I connect 2 external HD to my new iMac, one for each account?

    NeuroBrain wrote:
    Since my new external hard drive is have a lot of space, I'm thinking of splitting it for Time Machine and external storage.
    This is a common mistake and I highly advise against it.
    1: TimeMachine saves states of changes and thus requires more room on the TM drive than the boot drive it's backing up.
    2: Something happens to the TM drive, loss, theft, dropped, power surge, etc., you lose both backups.
    3: The storage drive might become a portable need, with it being on the TM drive, now your increasing the risk to the TM backup that something could happen to it along with the storage drive, due to increased movement.
    Seriously, have a read,
    Most commonly used backup methods
    it's ASC User Tip that saves us regulars all the trouble of having to repeat ourselves over and over again in the posts, because we tend to forget things too, or not here sometimes etc.
    "Plan for the worst and the good will take care of itself" - Donald Trump

  • I am getting pop ups on safari and firefox lately and am worried i may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    I am getting pop ups on safari and firefox lately and am worried I may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

  • HT4914 I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    Is/was failing or has failed?
    If the old computer still runs one of these methods may be best.
    Method 1
    Backup the library with this User Tip.
    Restore the backup to your new computer using the same tool used to back it up.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    I don't have personal experience with iTunes Match, but in principle you should be able to download all the tracks currently registered to your iTunes Match account. This isn't quite the same as restoring your previous library exactly as it was. There is always the potential for iTunes match to provide the wrong version of a song and could be content such as movies, podcasts, audiobooks etc. that would have been excluded.
    tt2

  • I want to upgrade my Imac from tiger 10.4.11 to Mac OS 10.6 Snow Leopard. What is the best way to do this.

    I have just purchased an iphone 4 and it needs me to have the latest itunes on my computer.  I have not upgraded by computer for some time and thought this is probably the time to do it. My computer is an imac intel with Tiger 10.4.11. I want to upgrade my Imac from tiger 10.4.11 to Mac OS 10.6 Snow Leopard or higher.  What is the best way to do this?  Appreciate any help as I am out of practice. I used to be an old hand at this, but things have moved on since I didn't upgrade or use my computer as much!

    Catherina wrote:
    ...  What is the best way to do this?
    The best way, really the only way, is to purchase Snow Leopard.
    Online (UK): http://store.apple.com/uk/product/MC573/mac-os-x-106-snow-leopard
    Elsewhere: call the phone number in the Apple Online Store.
    Apple's price is $19.99, £14.00, €18.
    Snow Leopard is not available to download from any legitimate source.
    Once you install Snow Leopard, upgrade iTunes to version 10.7 or the latest, iTunes 11.
    iTunes 10.6.3 is the last version of iTunes to support Mac computers with Mac OS X 10.5.8 with either Intel or PowerPC processors, but since you have an Intel iMac, the best solution is to purchase Snow Leopard. Leopard is no longer available from Apple and prices from aftermarket vendors can be unreasonably high.

  • Urchased a new desktop pc and I want to move itunes and all files including IPAD apps to my new computer and delete off my old one.  What is the best way to do this?

    I just purchased a new desktop PC and want to move Itunes and all my Ipad Apps to new computer, and delete off my old computer.  What is the best way to do this?

    Hi,
    See Here for Transferring your iTunes Library
    http://support.apple.com/kb/HT4527
    Make sure Everything is working to your satisfaction Before Deleting anything from your old computer...
    Cheers,

  • Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC

    Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC. I would appreciate any help with this.

    Thanks for the quick help. I do have to leave for work. When I try to
    download the images from the camera they seem to only be in jpeg (I don't
    see any rw2 or raw files to download). If I select the jpeg file it seems
    to only download a jpeg file. I do understand that I do have the option to
    open the jpeg in RAW. In doing this, is all the extra information included
    in the RAW file there or is it lost coming from the camera
    Once again thank you for trying to make me understand how this works.
    Have a great day.
    On Sat, Sep 13, 2014 at 12:14 PM, ssprengel <[email protected]>

  • Contacts Sync - I have my contacts on iphone5 and MacBook Pro 2012.  I just purchased a MacBook Air 2013 and want the same contacts on that device.  What is the best way to do this?  Non-techie.  Thanks

    I have my contacts on iphone5 and MacBook Pro 2012.  I just purchased a MacBook Air 2013 and want the same contacts on that device.  What is the best way to do this?  Non-techie.  Thanks

    Follow the instructions for enabling your iCloud account on the MBAir here >  Apple - iCloud - Learn how to set up iCloud on all your devices.

  • What's the best way to read JSON data?

    Hi all;
    What is the best way to read in JSON data? And is the best way to use it once read in to turn it into XML and apply XPath?
    thanks - dave

    jtahlborn wrote:
    without having a better understanding of what your definition of "use it" is, this question is essentially unanswerable. Jackson is a fairly popular library for translating json to/from java objects. the json website provides a very basic library for parsing to/from xml. which one is the "best" depends on what you want to do with it.Good point. We have a reporting product ([www.windward.net|http://www.windward.net]) and we've had a number of people ask us for JSON support. But how complex the data is and what they want to pull is all over the place. The one thing that's commin is they generally want to pull down the JSON data, and then put specific items from that in the report.
    XML/XPath struck me as a good way to do this for a couple of reasons. First it seems to map well to the JSON data layout. Second it provides a known query language. Third, we have a really good XPath wizard and we could then use it for JSON also.
    ??? - thanks - dave

  • What's the best way for home sharing to iDevices without iTunes?

    What's the best way for home sharing movies and tv shows on my iDevices?  I know I can use home sharing through iTunes, but I'm looking for a way to share videos to my iDevices without having to leave my computer on.  I have a MacPro, iPhone, iPad, Airport Extreme, and Airport Express (and several external hard drives).  Can anyone suggest an app that would do this?  Can I have videos on an external hd attached to an Airport Extreme/Express and have it stream without iTunes?

    If your "server" is new enough to run Mountain Lion, you can purchase the OS X Server app from the Mac App store and you'll have everything you need to host a NetInstall (NetBoot) server.
    If your machine does not support Mountain Lion, you'll need to purchase the appropriate Mac OS X Server software (i.e. Lion Server or Snow Leopard Server)
    From there you can host NetInstall or NetRestore images, depending on your preferred workflow, which can be created using System Image Utility.
    As Richard points out you can also use Deploy Studio which, again depending on your preferred workflow, might simplify things.

  • Narrating Keynote (Voice over slides)?  What is the best way to do this?

    If I have a keynote presentation and I need it narrated (like a a voice over) what is the best way to do this?
    Is it to record an audio file then insert it somehow into the presentation?
    Sorry if this is a dumb question, just not sure how to make it work. I need my boss to do the voice over- so I will probably only get one shot.

    This forum thread offers some options to do this. One simple strategy is to record separate bits of narration for each slide, and simply attach that to each slide. When the presentation is run, the audio file will play for each slide. This approach is much easier than alternatives, but the downside is that it does not allow for narration across slides, which may or may not be important to you. If it is necessary, then you should check out the option (discussed in the thread) of pre-recording the entire narration, then using Soundflower and Keynote's Record Slideshow functionality to create a show with narration.

Maybe you are looking for

  • How do I delete HP_Tools partition & turn of beep on my DV7-6153ea?

    Hi Everyone, I recently updated my bios with a HP update and a fourth partion called 'HP_Tools' has appeared on my new DV7-6153ea Windows 7 (sp1) laptop. My question is this... I don't want a fourth partition on my harddrive especially for 99mb. I'd

  • In Message Monitoring Message showing holding status

    Hi Can anyone solve this problem.Its urgent for me. My scenario is IDoc->XI->FILE The file i am trying to generate is an xml file which i am dropping in XI application server using File system. The problem is when i am going to see the message using

  • Samsung 46" LCD tv. doesnt turn on.

    I have a 46" samsung lcd tv that is about two years old and a couple of days ago I tried to turn it on and it made the sound it usually does when it turns on but before the screen came on i heard the tv shut off by itself then it automatically turned

  • Enhancing the data request in Agent inbox

    Hi , I have a requirement to add more custom fields to search view in Agent inbox and perform the search based on custom field values entered on screen by user. I have added append structure to CRMST_AUINBOX_SEARCH with custom fields and in BSP_WD_WO

  • Security question answers forgot

    Need to reset my security question answers to be able to download. Can someone help??? Thanks Shelley