Serial Write - 8Mb file to write. Write command can only do 256 Bytes at a time. How to split up?

First, thanks for this resource. I've used this forum quite a bit as a "lurker" and it's gotten me this far. Hoping to learn a bit, so I can contribute
Anyway, my issue is this:
I am ultimately trying to write an 8Mb binary file to an 8Mb Serial Flash device via the Total Phase Aardvark. The writes to the flash device I am using are limited to 256 bytes per write command. The vi program attached is capable of writing 256 bytes at a time, but not anything more. I realize I need to incorporate some sort of "For Loop" (and I understand that I'd want to do it =(File Size)/256 interations, but I can't seem to figure out how.
Does anyone have any quick advice to drive me in the right direction?
Thank you!
Attachments:
Aardvark bin test 02.vi ‏33 KB

Well, you seem to have answered your own question, so it's not clear what your specific issue is. Is it how to extract 256 bytes at a time?
As for the code... umm... I'm not entirely sure what you're trying to accomplish with the whole top half of your code, but it seems to me that almost the whole thing can be replaced by a single call to the Read Binary File function. What is the format of these binary files?

Similar Messages

  • My HP Officejet 8500a All-In-One forwards faxes (as a tiff file) to my iphone.  Can only view/receive 1st page, embedded into email as a non-attachment.  Iphone receives email(s) pdf attachments well.  What can I do?

    My HP Officejet 8500a All-In-One forwards faxes (as a tiff file) to my iphone.  Can only view/receive 1st page, embedded into email as a non-attachment.  Iphone receives email(s) pdf attachments well.  What can I do?

    Try this app
    http://itunes.apple.com/us/app/fax-reader/id406902152?mt=8

  • ITunes tells me "Could not be used because the original file could not be found. Would you like to locate it?"  I can locate it and all my other music, but can only open one song at a time.  How do I set it to open all my music whenever I want it?

    iTunes tells me my song selection: "Could not be used because the original file could not be found. Would you like to locate it?"  I can locate it and all my other music, but can only open one song at a time.  How do I set it to open all my music whenever I want?
    Message was edited by: Woildbill

    I just spent several hours dealing with this when switching to a new PC. It was extremely frustrating as I knew my files were on my external HD but no matter how many times I copied my old iTunes folder over the files were still missing...because dummy me had forgotten to "unhide folders" on my new PC and my old files were actually stored in a hidden folder created long long ago.
    This is how I did it on Windows 7 with iTunes 10
    1. Look in iTunes Advanced Preferences to see where iTunes is saving files. (Edit, Preferences, Advanced)
         Example: C:/Users/Woildbill/My Music/iTunes/Music
    2. Ensure you are able to see hidden files - Control Panel, Folder Option, View, Show Hidden Files
    3. Use Your Computer's Search Function to Locate the Missing File (Start, Search, type name of song - I started my search in "My Music" folder but be sure to expand to entire Computer if not found right away)
    4. In Search Results, right-click found folder and select properties. This will tell you where the file is actually stored.
    5. Use Windows Explorer (right-click start) to navigate to the location of the file. It is likley your other missing files are in the same location.
    6. In Windows Explorer, copy the newly located files to the iTumes location from Step 1 and everything should work again.
    Hope this helps!

  • How to send business card (VCF file) through sms? it can only be send via email?

    how to send business card (VCF file) through sms? it can only be send via email?

    Go into your contacts click on the person you want to send, when the info opens scroll down to the bottom and click share contact it will as it you want to email or mms. 

  • I bought creative suites over 3 years, but now cannot update and registered in my account, the error massage are:This serial number has already been registered. Products can only be registered once.

    i bought creative suites over 3 years, but now cannot update and registered in my account, the error massage are:This serial number has already been registered. Products can only be registered once.

    The message is correct.  You can only register a product once... there is no need to register again after you do it the first time.  You can re-install and activate with the serial number, but there is no need to re-register.

  • When I open a pdf file on the net, I can only view page 1. How do I get to the other pages?

    When I open a pdf file on the net, I can only view page 1 and cannot move to page 2, 3, etc. How can I change pages?

    See [[Firefox keeps opening many tabs or windows]]
    You can have infinite tabs opening if you have selected Firefox as the application to handle a file if you get an ''Open with'' download window.
    Firefox should not be selected as the application to handle a file and you have to remove the action that is associated with that file type.
    You can delete [http://kb.mozillazine.org/mimeTypes.rdf mimeTypes.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] to reset all actions or set that action in Tools > Options > Applications to 'Always Ask'.
    See http://kb.mozillazine.org/File_types_and_download_actions ("File handling in Firefox 3 and SeaMonkey 2" and "Reset Download Actions")

  • Can only choose attachments one at a time for webmail and for entries to an art organization website.  And the site's "Upload File" button will not respond, so I can't even upload the one jpg I have chosen.

    I am the only one who can't upload to the submissions page. Javascript is turned on, not java, with Safari 5.0.6 and Leopard. Thanks for helping.

    Thanks for your response.  I do have javascript turned on (not java).  To answer your question,
    I was trying to upload 3 jpgs to the submissions page of a visual arts website. I could only highlight one jpg at a time in the "Choose File" option, and then the "Upload File" button of the submissions page would not respond.
    It's an ongoing problem with this site (I'm the only one with this issue and there are a lot of submissions). I have to send the images as email attachements to the administrator of the site.  When doing this via webmail, I still the one attachment at a time problem, but the images get to the administrator.  Thanks for helping.

  • Why does Apple say that Numbers can open and save Excel files, when in actuality, it can only open .XLSX files and only Export to Excel (not save-as excel)?

    When attempting to open .XLS files in Numbers, the format is not recognized. When the format is .XLSX, the format is recognized. Why is it this way? It's still much more common for folks to have the .XLS file format on their excel files. Why would Numbers not be backwards-compatible?
    Additionally, to state in the benefits of this program that one can save to 'Excel' is a little misleading. You can't save to anything except .numbers. Sure, you can export to Excel (with file extension .XLS, I might add), but you can't save or save-as.
    Does anyone else see the irony in being able to export to .XLS but not be able to open an .XLS?
    There is something to be said for clarity.
    You can't expect folks to have Numbers and Excel on their systems, so how else are they supposed to open .XLS files in Numbers?
    And I don't need to see another advertisement for NeoOffice or OpenOffice here, thanks. I'd actually like Numbers to be a little more sensible.
    That is all.

    When the advertisements were written, there was no Lion so we were able to Save As Excel.
    At thiqs time there is no longer Save As command under Lion but the feature is always available.
    When your editing task is ended, you are free to use this scheme:
    File > Duplicate
    File > Save and in the dialog you will have the option save as Excel.
    Numbers isn't and I hope that it will not become an Excel editor.
    Its resources contain a flag defining it this way.
    I posted several times a script editing this resource.
    This morning I'm not in a mood allowing me to do your duty.
    Search by yourself in existing threads with a keystring like
    viewer AND editor
    Yvan KOENIG (VALLAURIS, France) jeudi 27 octobre 2011 09:40:23
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • I transferred files from a NAS server to the Mac Mini Snow Leopard Server and now some of the files have Custom Access and can't  be opened by some users.  How do I fix this?

    We're setting up our Mac Mini Snow Leopard Server, and in the process transferred files that had been stored and accessed from our Blackarmor NAS server over to the Mac.  These files were all created on PC's and are Office Excel files, WordPerfect files or PDF's.  When you look at the files on the Mac from the Mac and bring up Get Info for the affected file, it says that the file has Custom Access.  The files that work properly don't have that configuration.  I can access and open the files on some computers, but some users can't open the files from their computer even though they can see it.  We're all using PC's and they get the Error:  Access Denied-Contact your administrator--or something similar.  I've seen on the web similar issues and it may have something to do with ACL permissions.  I don't know enough about Mac OS to understand this, but what is baffling is that they can be opened from some PC's but not others, and all of the Users have the same accessibility to the files.  Thanks for a solution!!

    Oh, on the losing Internet, try this...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    Click OK.
    PS. Your English is quite good & completely understandable.

  • I can only use one tab at a time. If I go to File, New Tab a second tab will not open. I am able to create a 2nd tab by clicking a link from the first tab.

    I am unable to open further tabs, if I either right click or go to File; Ne tab; nothing happens.

    The Ask Toolbar is causing that in the Firefox 3.6.13 version. Evidently something in that extension isn't compatible with a Firefox security fix. Disable that extension or un-install it.

  • I'm using a Mac OS X (10.9.2) Mtn. Lion (converted to Mavericks) and use Safari for Gmail, my long time email program. Lately I almost cannot use Gmail at all. "Missing Files", "Errors", etc, etc, and can only use it in Basic HTML. HELP!

    I have no idea if the problem is with Safari or with the Gmail files.  I get the msg. "Error' over and over and often "you may have entered the address wrong" (when I KNOW I HAVE NOT) and other msgs. which I do not remember at this time. I'm having to use ''Basic HTML" and that seems to be OK - tho it is insufficient. The "Mail" app in OS X works fine but I cannot tolerate the format and must solve this dilemma. Any suggestions?  I've read the "related issues" section and have not found anything closely related to this issue and would appreciate any suggestions.
    Thanks tons.
    Sam Sayger
    Hernando, MS

    I have no idea if the problem is with Safari or with the Gmail files.  I get the msg. "Error' over and over and often "you may have entered the address wrong" (when I KNOW I HAVE NOT) and other msgs. which I do not remember at this time. I'm having to use ''Basic HTML" and that seems to be OK - tho it is insufficient. The "Mail" app in OS X works fine but I cannot tolerate the format and must solve this dilemma. Any suggestions?  I've read the "related issues" section and have not found anything closely related to this issue and would appreciate any suggestions.
    Thanks tons.
    Sam Sayger
    Hernando, MS

  • Zen Nano Plus, I listen to talking books, I can only get 256 files on my zen, HELP PLE

    I have plenty of space left. What can I do

    Do not transfer all your audio files to the player root directory. Try deleting a few of them first then create a folder. Move these audio files to the folder instead.
    Jason

  • How do I restore firefox toolbar. I used "restore default home page", but still no toolbar. I no longer have the "back" , refresh, or anything else on that bar. Also, the file, edit, view etc line can only be seen by the "alt" key. I'd like to have th

    This happened only once.
    == This happened ==
    Every time Firefox opened
    == I updated ZONEALARM security and had to accept their toolbar which I tried to delete and did it wrong. (Should have looked in your help section first). I succeeded in deleting Zonealarm toolbar, but also the Firefox ones.

    Hello Bill.
    To restore your interface layout, go into ''View > Toolbars > Customize... > Restore Default Set''.
    If you can't see the menu bar, press ALT or F10 in your keyboard to make it temporarily visible. If you want it to be permanently visible, go into ''View > Toolbars > Menu Bar'', or right-click the Navigation Toolbar (the Reload button, for example) and select ''Menu Bar''.
    If this doesn't help, right-click the navigation toolbar, select ''Customize...'' and click ''Restore Default Set''. If it doesn't appear right away, try pressing ALT or F10. You can go into ''View > Toolbars > Menu Bar'' to make it permanently visible, or right-click the Navigation Toolbar and select ''Menu Bar''.
    If none of this helps, you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Try disabling all add-ons (just to check), to see if Firefox goes back to normal.

  • By a sub VI, Writing data countinously to file by a ''Write' button in Main VI??

    Good morning...day  to all !
    I've made a program, where I'm reading data generated by a device connected to a com port. These data are red from the port to an indicator buffer and then, into a file when a button, " write file" are pressed. I've placed the 'WriteDataToFile.VI' in a Sub VI placed in Main VI.
    When my Main Program starts and I switch a start button, a file dialog box opens, so I can choose an existing file or a new file to write data to!
    I want to Make a Button named  " Write file" so when pressed , the Dialog box opens and I can choose a file to write to.
    In that way I can avoid the Self pop up dialog box.
    I've spended the hole weekend  trying doing that, but no succes. The biggist problem by that is:
     To write a continously to a file I  also need to continously read the data from the port, And because of that, I got to write the data to a file as quickly as possible when Red from the port. So I gotta put the WriteDataToFile.VI 'sub', in the ReadData:vi 'Sub'. By that I always get the Dialog box poped up, by each while loop iteration. Just because the Software to the open Dialog Box (Write file), is placed in the ReadDataVI, Sub.
    Please Help me with that Guys , girls, any one, also peoble from Mars To!
    Attachements !!
    Regards
    H.F.Zamzam    
    HFZ
    Attachments:
    ReadDataWriteToFile.vi ‏62 KB

    Hi Zamzam,
    I think the point you should work on is the architecture of your whole application, LabVIEW has very well designed templates.
    If you go to new >> new... >> vi from template >> frameworks >> design pattern >> user interface event handler
    It is a very robust architecture with which you can draw cases for (almost) any kind of event such as a click on a button.
    in your application, you could choose the file to write on the first run, then put the file refnum in a shift register and add an event case handled by the "write to file" button that writes the acquired datas.
    You could even go further and set that "wite fo file" case on other event, for instance new data from the port com.
    wooopps... I tried to be as clear as I could but english is not my natural language , so please tell me you need some more help
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Write / read files to RAM memory

    Dear all,
    I want to write a text file to RAM memory and after read it from RAM memory.
    Why? Because, I want to read my text files quickly, in short time.
    if I use default method for reading files it take long time for reading the file and for write the file.
    But, if I use write / read files to RAM memory, I can read my files quickly and read my files from RAM for processing and write my files to HDD.
    Can you help me?
    I searched on the Internet this problem and I did not find any one solution.
    From my searching on the Internet, I understand that Java can not do that.

    The problem with this program is that it load 1 minutes, but I want to load a second.
    Here is my java code:
    import java.io.*;
    public class File {
    public static void main(String[] args) {
    // Start to reading the file
          try{
        FileInputStream fstream1 = new FileInputStream("big.txt");
        DataInputStream in = new DataInputStream(fstream1);
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
        String strLine;
        while ((strLine = br.readLine()) != null)   {
    // Start to replacing method
        String strreplace = "%";
        String result = strLine.replaceAll("a", strreplace);
    // End of replacing method
    // Start to writing to file
          try{
        FileWriter fstream2 = new FileWriter("out.txt", true);
            BufferedWriter out = new BufferedWriter(fstream2);
        out.write(result); // Write to file the result
        out.close();
        }catch (Exception e){
          System.err.println("Error: " + e.getMessage());
    // End of writing to file
        in.close();
        }catch (Exception e){
          System.err.println("Error: " + e.getMessage());
    // End of reading from file
    } // Here is the end...Please to do the following steps:
    1. Copy my code;
    2. Download text file from: [http://norvig.com/big.txt|http://norvig.com/big.txt]
    3. Open the text editor and select all text (Ctr+A) and dublicate the text 10 times for creating a big text file (30-40 MB);
    4. As a java developer, You know what to do next.
    I'm waiting your solution.
    Thanks in advance!

Maybe you are looking for

  • Report required

    Hi, I am seeking a report in SAP for the following we have a standard amendment (sales orders)  not to  process any amendments within 3 working days of delivery.  However I do agree to a number of exceptions where we allow the customer to change his/

  • InDesign 9.2 - Save to network location takes a long time.

    Saving InDesign files to a network location seems to take an extremely long time during which I am unable to do anything else inside InDesign. I know that this has been an issue for me for at least 2 weeks (since March 3, 2014, possibly earlier). I a

  • Sent icloud email reported as "malformed header"

    A friend found one of my icloud account emails in their spam folder, automatically put there by their email provider. In the message they had appended a scoring for why the email had been put there, some of which was based on the content I sent (most

  • External Ref. in Manual Assignment in Single Positions

    Hi, We create future position in product type 70D. 70D is mapping under Manual Assignment in Single Positions. Many open contracts create same date and same price but only contract no. is diff. At the time of we create close deal system show date wis

  • No supported wireless adapter in r500 2714 cto

    I am not able to connect wirelessly because my adapter is not recognized on my R500 2714 CTO Laptop with Windows 7 Home Premium.