Binary file open .. problem with formatting

dear all,
probably it is too much time I am not using any more Labview, but I have a problem in opening the attached data file.
 it is supposed to be a matrix of 1000x316, with integer values up to 16 bit (65k levels).
In matlab i open it with fopen command, and assigning the format as "uint16"..
now I want to create a quick viewer in labview, but I can not go beyond the classic binary string... 
may you help me with this stupid problem?
regards,
Edo
Solved!
Go to Solution.
Attachments:
image_P10.0_slit_P2.00.zip ‏261 KB

Is this what you need?  It results in a 1000x316 array of U16s.
Message Edited by jcarmody on 01-08-2009 12:07 PM
Message Edited by jcarmody on 01-08-2009 12:08 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
Attachments:
binfile.vi ‏8 KB
binfile.gif ‏3 KB

Similar Messages

  • File opening problems with JDev 10.1.3

    I'm using JDev 10.1.3.0.4 on Linux with these subversions:
    ADF Business Components     10.1.3.36.73
    CVS Version (External)     (CVS) 1.12.12 (client/server)
    Java™ Platform     1.5.0_06
    Oracle IDE     10.1.3.36.73
    Struts Modeler Version     10.1.3.36.73
    UML Modelers Version     10.1.3.36.73
    Versioning Support     10.1.3.36.73
    Whenever I start JDev this error appears:
    java.lang.StackOverflowError
         at java.util.HashMap.get(HashMap.java:320)
         at oracle.ide.net.URLFileSystem.findHelper(URLFileSystem.java:126)
         at oracle.ide.net.URLFileSystem.findHelper(URLFileSystem.java:163)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
    The same error appears on the console JDev was started from whenever I open a file.
    Are there anyone experiencing the same errors?
    Are

    Hi,
    Could you follow up in this post Re: BUG: 10.1.3 EA Window Closes When Dragged in the Editor with the requested information?
    Regards,
    Lisa
    JDev QA

  • Binary File compare - Problem with char 65533

    Hi,
    I tried to copy an sqlite database (a normal text file) out of my *.jar file. The database is in my java project as a resource file. I read every byte and store it directly into the new file, but somewhow it changes 4 Bytes to 65533! The correct values are 2 times 129 and 2 times 144. It's really strange!
    Have you an idea why this happens? Or is there a better way how to copy out a resource file?
    Thank you for your answers.
            URL u = this.getClass().getResource("/database/resources/mydb.sqlite");
            try {
                InputStreamReader in = new InputStreamReader(u.openStream());
                File outputFile = new File("newdb.sqlite");
                FileWriter out = new FileWriter(outputFile);
                BufferedWriter writer = new BufferedWriter(out);
                while ((c = in.read()) != -1) {
                    writer.write(c);
                in.close();
                writer.close();
            } catch(Exception e) {
                jErrorFld.setText(e.toString());
            }

    Writers are for characters not bytes. Use OutputStreams.

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Application Express 3.1 + BI-Publisher + problem with formating numbers

    Hello together!
    I use the Oracle BI Publisher Template Builder for Word (10.1.3.4) to generate RTF-Templates. I upload these templates in Oracle Apex (Advanced support-->BI-Publisher/OC4J as print service).
    It works well, but I have a problem with formating numbers.
    In Template Builder I define following number formats, for example: #.##0 for numbers like 1.454.234 and #.##0,00 for numbers like 54,80
    In Template-Builder Preview it looks well.
    But whatever I do, in use with Oracle Apex dots and comma are allready interchances in the printout.
    That means,
    1.454.234 become 1,454,234 in PDF-Report
    54,80 become 54.80 in PDF-Report
    Other than that, the layout is exactly the same like in Template Builder defined.
    What's wrong?
    Do I have to change any country parameter?
    Juliane

    I also had the same problem. I tried with normal formating of 99g99g999d99 instead of ##,##,##0.00 and it has resulted correct way.

  • File sharing problems with my Media Player, an A C Ryan

    I have a media player, an A C Ryan, hooked up to my wifi at home and it normally accesses all my hard disks that is plugged and shared on my iMac. I had no problems when the iMac was on Snow Leopard. Under Network/Workgroup in the AC Ryan's menu, I can see and access all the files on the hard disks.
    The moment I upgraded to Lion, all such access was lost. The AC Ryan cannot connect to the hard disks any more via the wifi network. it's as though file sharing has stopped completely. I checked the file sharing settings on the iMac and nothing has changed i.e. the disks were shared as usual. After struggling with many possible solutions and failing (I checked out a lot of forums), I reintalled Snow Leopard and the problems were immediately solved.
    Is there something seriously wrong with Lion's file-sharing? Has this been fixed in 10.7.2? My friend who has a similar setup (his media player is the WD Live) has exactly the same file sharing problem with Lion.
    I would appreciate any feedback. Thanks!

    I believe that NTFS-3G has issues with Lion.
    I use Paragon NTFS and have had no issues at all. I am pretty sure that NTFS-3G will get updated, but you need to check their site to find out when.

  • BIOS binary file open failed

    '¶},eê'F„‰½,à:http://www.microstar.com.cn„º[òÏsí†,
    ê}eÙÌB©†.
    „ñí4s
    *}(¡žÕôZ„;ú°„î˜)
    Ø÷'¶Á,_÷ ~„5ØKY
    Ž2003t5ý-p„®K7N2-L;,Söå;
     :K7N2-L,
    F/dž$*,å;
     b:K7N2-Detal-L,wSŸà
    „5„Mn‚:
    AthlonXP1800+( BO8Ã)
    DDR 333 256MB
    w6ã80GlØ
    ®K7N2-Detal-L
    ®GF4 MX440SE
    °(„;BIOSH,6/5.0H,, à:¡   Mnoq,_¡   UØ
    ,@åê}(®„live monitor(windowsXP7°BIOS,}†°„BIOS(5.6H,)
    K,‰Åöú°‚Ð:"BIOS binary file open failed",
    åS/ÀHŸà,
    ÷îå‚Uã³?

    im guessing based on
    BIOS binary file open failed
    http://www.msi.com.tw/html/support/bios/note/ntfs.htm

  • File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5

    Hi
    I am facing one problem when I complie and run my code
    with the following compiler and standard C++ library :
    OS Used : SunOS GUILIN 5.8 Generic_108528-13 sun4u sparc SUNW,UltraAX-i2
    Compiler Used : g++ 3.3.3
    Standard Library Used : libstdc++.so.5
    Problem : I am supposed to create 1000 file streams,
    but when I run my program, it creates only 254 file streams,
    after that assertion occurs!!!!
    OUTPUT :
    ========
    $ echo $SHELL
    /usr/bin/sh
    $
    $ ulimit -n
    50000
    $
    $ ./a.out
    i : 253
    errno : 24
    Assertion failed: in, file main.cpp, line 28
    Abort - core dumped
    $
    ========
    MY CODE :
    ==================================================
    #include <sys/errno.h>
    #include <assert.h>
    #include <fstream>
    #include <iostream>
    #include <string>
    extern int errno;
    const int MAX_STREAM = 1000;
    using namespace std;
    int main(int argc, char* argv[])
    ifstream in[MAX_STREAM];
    string file("boo");
    for ( int i=0; i != MAX_STREAM; i++ )
    in[i].open(file.c_str());
    if ( errno > 0 ) {
    cout << "i : " << i << endl;
    cout << "errno : " << errno << endl;
    } // end of "if ( errno > 0 ) {"
    assert(in[i]);
    return 0;
    ===================================================
    But, if I compile the exactly same program with the
    following compiler and run the executable under the
    same environment as above, it is running without
    any problem and 1000 file streams are created
    smoothly without any assertion.
    OS Used : SunOS GUILIN 5.8 Generic_108528-13 sun4u sparc SUNW,UltraAX-i2
    Compiler Used : g++ 2.95.3
    Standard Library Used : libstdc++.so.2.10.0
    Anybody can help me to overcome this problem with
    g++ 3.3.3 compiler and libstdc++.so.5 library.
    With Very Best Regards
    Subrata Basak
    MediaRing Ltd., Singapore

    CVS differentiate text and binary files (they are marked as one or the other by using a CVS option when adding the file). If a file is marked as text, cvs will perform line-end conversion if needed.
    On Linux, line endings are coded as LF, whereas on Windows they're coded as CRLF. When you copied files from Windows to Linux, you probably did a binary copy, which left the CRLFs intact. When you checked those files into CVS on the Linux server, Linux CVS did not convert the CRLFs into LFs.
    The result of this is that if you check the files out on Linux, they will still contain CRLF (which is wrong for Linux). You may verify this by checking out a file on Linux, then opening it using vi -b. The CRs should show as extra ^M's at the end of each line.
    If, on the other hand, you check out the file on Windows, a conversion will take place, where all LFs are converted to CRLF. The result of this is that your file will contain CRCRLF at the end of each line.
    The best way to fix this is probably to check everything out on the Linux box, remove every CR from every file, then check everything back in again.

  • File Open Problem. Open in Browser But need in Access

    Dear friends,
    I developed an application in MS-Access and having as "FutureStat.bak" I want this file to be distrubuted over network. So, i placed the file in Stat folder under root folder with an index file which gives a hyperlink to this file.
    If i use tomcat 4.1 it prompts for Open With / Save
    But my company is having Tomcat 5.5 , which opens the file in browser. with some unicode format. I need tomcat to prompt for Open With or Save is there any code for opening ???
    Thanks in Advance,
    Rengaraj

    It's more likely a configuration problem in the server itself, it must be configured to open that format for some reason.
    You could create a download server which reads the file from disk and outputs it to the browser using the content-type "application/octet-stream". That will force a download box. Search this forum, it is asked almost every day.

  • File Open problem

    After updating to the most recent security I have the following problems with Text edit and MS Word.
    I cannot use File Open to access a file. I get the spinning ball and application not responding. I can double-click the text or Word file and they will open.
    Does this make sense? Anyone have a suggestion?

    It's more likely a configuration problem in the server itself, it must be configured to open that format for some reason.
    You could create a download server which reads the file from disk and outputs it to the browser using the content-type "application/octet-stream". That will force a download box. Search this forum, it is asked almost every day.

  • Embarrassing file open problem

    So I'm carrying all my files with me without needing my office on the phone, right? Use mobileme or sugarsync or any of these applications and have QuickOffice or Documents to Go on the phone and I can view most any file or at least the most popular, right?
    I was out with a client and wanted to go over some items on a simple spreadsheet - so I opened up my sync apps that shows all my docs stored in a remote location. I open the doc and it doesn't work... why? Because it was a spreadsheet saved as a CSV file. No big deal, right? I've got the latest iPhone, latest OS, have every document application on the iPhone and can open up 20 different types of document types. Cool. I'm the guy the client believes is fluent with technology and have the latest, advanced phone from Apple.
    So how do you get a document from one application or email to be opened properly with your application that will open the document on the iPhone? From what I'm reading, iPhone applications are practically worthless unless you have used WiFi to copy your documents into that application's folder or "sandbox" or something like that. This can't be right. If it is, then why do I care whatsoever about all this nonsense about mobileme and cloud computing? It's like water, water everywhere but not a drop to drink? If this is the way applications work, it practically obliterates the whole point about cloud computing and accessibility of your documents in one primary location.
    I'm just a little nervous now because I've had my phone for 2 months and this is the first time I've encountered something like this. I'm afraid to think I'll be stuck in this place for two years and hoping I must have had misinformation. I can't imagine trying to copy every file in my office 4 times into 4 separate applications (wasted 3X more space) and having to sync everything manually 4 times every day. This would defeat the purpose of all this sync and mobility.
    Thanks to everyone for the help in advance.

    +I believe your problem with .csv is that you lack on the iPhone a) the ability to assign a default app for opening .csv and b) a file manager. Right now, there may be no solution; however, there may be work-arounds.+
    This is the problem. I get Word documents I cannot edit because while I have QuickOffice and Document to Go on the iPhone, there is no way to get files to these applications via email, mobileme/sugarsync!!!! Perhaps this is why Dataviz isn't providing any support for its iPhone application any more. It's crazy. Thanks for confirming this with me.
    +"Yes, I know what csv is; I think I used that format once... on a punch card. If you want apple to support this format, make th comment to apple."+
    +"CSV is not popular due to its encrypted formatting."+
    What planet are you jokers from? CSV or delimited text files are used ALL the time by popular applications and download of data. Every bank offers CSV. Quicken and Money apps provide CSV files. If you want a list of anything like your domains from your registrar or any other data, there is ALWAYS a CSV option. The only "formatting" is that it places a tab or comma between columns so it can be read universally. It's perhaps one of the simplest formats.
    But there is only one point - I have MANY applications on my iPhone that read CSV files. How do I get the application to READ the CSV file from mobileme or sugarsync or from email?
    *Here's the other problem - sometimes one reader will do a much better job than another with a PDF, XCL or a DOC. HOW can I define what application will open up these files???*

  • DMS file opening problem for docx & xlsx files.

    Hi All,
    while opening docx & xlsx files data is getting truncated when they are transmited as external attachments from SRM with ERP PO mail through DMS.
    I feel there should be some problem with DMS itself as file format doc, xls are opening correctly as they were mapped with work station type DOC & XLS.
    Need your iputs to rectify the problem.
    Thanks,
    Ramakrishna

    Hi Ramakrishna,
    Kindly maintain the settings in SPRO->Document Management->General Data->Define Workstation Application (DC30).
    For XLS application define file format as *.xlsx and DOC application maintain file format as *docx.
    Hope this might resolve ur issue.
    Regards
    Bhanu

  • File association problems with Win2K server

    Hi,
    I have a client - 5 Macs in a Win2K network. They're designers and store/work on all their jobs on a Win2K volume. About 2 months ago, problems started happening - files lost their application association (mostly all were turned into Unix exec files), causing sever problems with the workflow. Quark can't open a placed image in it's native app for instance, because the association has been lost. The user has to visit each file and re-associate. As you can imagine, this is not an ideal situation to say the least.
    Furthermore, when re-associating the files, the option to "Always open with" is greyed out, so a one-time fix isn't possible.
    I suspected that it was something to do with the windoze volume. I more or les proved it by copying one of the files to a local machine and then re-associating: all works as it should when the files are local. Copying the files locally is not an option though.
    This really is at the limit of my windoze knowledge. Their sysadmin is also not sure what's happening, aside from the fact that there's no windoze app that's accessing the files and writing them back to the disk. The only thing that looks at the files is the daily backup and that's a read and not write operation. We're stumped, but it really needs sorting. I've suggested they move some of the files to another server and see if the same occurs, which may or may not prove the issue is with the server they're using now. Any guidance gratefully received.
    All Macs at 10.4.5 and recent updates, all have QXP 6.5, CS2.

    Probably nothing has changed with your server or your network. Typically, folks realize, "Hey! I can connect via SMB and that's my workaround for the 31 character file name limit!" Or possibly, your Mac folks are browsing the network for your server and selecting it through your Windows domain rather than a Mac zone. Tiger changed the appearance of Windows "WORKGROUPS" so that they now appear as upper/lower case instead of all caps. This use to be a good way to distinguish them from zones.
    To guarantee your users are connecting via AFP, which is what I would recommend for a Mac workgroup, have them specifically use "afp://servername" in the "Connect to Servers" dialog. I don't recommend Apple's SMB because Mac OS X splits each file into separate resource and data fork files before placing them on the server. When Windows folks see this, it's a mess. And I don't recommend continuing to use Microsoft's SFM because its version of the AFP protocol hasn't been updated in years. Either way, look to a third party software solution.
    Don't let the 65+ GB scare you. It's really not that bad if you're on a 100MB network but the server should recognize that all traffic is local and actually handle all the file moves itself without shuffling files across the network. A bit of a pain, but shouldn't take too long.
    Good luck! bill
    1 GHz Powerbook G4   Mac OS X (10.4.5)  

  • Creating XML-files in ABAP with format ISO-8859-1 after the use of unicode

    Hello,
    We have a problem with XML-files created in z_abap-programma.
    Before the use of unicode the XML-file was of the format: ISO-8859-1.
    After the introducting of unicode the format is UTF-16.
    In the abap-program we are using:
            CALL TRANSFORMATION xls-program
             SOURCE t_vbak = it_vbak
             RESULT XML xmlstring.
            CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
              EXPORTING
                text     = xmlstring
              IMPORTING
                buffer   = lx_xml_as_string.
            CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
              EXPORTING
                buffer        = lx_xml_as_string
              IMPORTING
                output_length = li_xml_size
              TABLES
                binary_tab    = ltb_xml_table.
            CALL METHOD cl_gui_frontend_services=>gui_download
              EXPORTING
                bin_filesize = li_xml_size
                filename     = lc_filename
                filetype     = 'BIN'
              CHANGING
                data_tab     = ltb_xml_table
              EXCEPTIONS
                OTHERS       = 24.
    Is it prossible to create the XML-file with the format ISO-8859-1 after the unicode, please can you explane how to solve this problem.
    Regards,
    Theo Pijlman

    hi theo,
    did you read my thread i wrote some days before ? have a look in my sample coding find   " if_ixml_encoding ..... " there you can set the encoding of character .
    greetz
    tony
    thread:
    Re: abap to xml
    SAP Explanation for Interface if_ixml_encoding :
    http://help.sap.com/saphelp_nw04/helpdata/de/bb/5766a6dca511d4990b00508b6b8b11/content.htm

  • Problem with formatting taglib

    I am trying to use the JSTL formatting taglib using JBoss 402 and am having a problem with the <fmt:message tag. Every reference to a message resource, such as <fmt:message key="xyz" /> is not resolved, and instead the value '???xyz???' is always displayed.
    I have made sure that my 'messages.properties' file is in /WEB-INF/classes so that it is in the classpath, and have included the tags below, but these have not changed a thing. Anyone have any ideas or suggestions as to what the problem might be?
    <fmt:setLocale value="${locale}" />
    <fmt:bundle basename = "messages" />

    There are a couple of JSTL tags that deal with bundles.
    The bundle tag you are using here needs the <fmt:message> tag nested inside it:
    <fmt:setLocale value="${locale}" />
    <fmt:bundle basename = "messages">
      <fmt:message key="xyz"/>
    </fmt:bundle>alternatively use the <fmt:setBundle> tag
    <fmt:setBundle basename="messages"/>
    <fmt:message key="xyz"/>Cheers,
    evnafets

Maybe you are looking for

  • Error in my first interface

    Hi All, I have created my first interface using ODI 11g. All looking good in topology navigator . I am simply moving data from one oracle source table to other oracle target table in same database Both source and target are on my Oracle 11g laptop in

  • Trying to use SQL to implement a VPD policy

    could some please help me with the following code :- these are the steps i took. i'm trying to implement a VPD(virtual private database) also know as Fine Grained Accessed on my APEX 3.2.1 ------ login as SYS CREATE USER vpd_admin IDENTIFIED BY Passw

  • Trace file, questions

    Could some one help me figure out what the pr, pw and time of this line means: STAT #19 id=1 cnt=109879 pid=0 pos=1 obj=72085 op='TABLE ACCESS FULL MF (cr=8214 pr=955 pw=0 time=561423 us)' Also I have problmes understanding what the parameter of bind

  • Comaptibility Mode

    Hi I have created a custom .bat file that I would like to run on one of our Server 2012 instances, however I would like to run the batch file in Compatibility Mode for Windows XP. Normally I would simply Right Click > Properties > Compatibility tab H

  • Managing songs on IPod touch

    Hello - I have an 8GB Ipod touch and it is full. I need to delete songs from it. I have checked the songs in my ITunes library that I want to sync, but until I can delete songs off the Ipod it will remain full. On a similar note, I'd like the sync to