Some binary data recoreded by labview cannot open by other program

I have got some binary data which is recorded by a labview program. When I use some other program to open it (e.g. matlab, notepad, MS excel), it become some strange character, but when I use another labview retrieval program to open it, there is no problem. What happen?
The original data is 32 bit data sets which are separated by a <CRLF>.
The recording program (HS-Acquis.llb), the retrieval program (Advanced Viewer.llb), original data file (C1010710.480245) and the data file after retrieval (C1010710.480245.txt) was attached
phy_mechanic
Attachments:
attachment.zip ‏1279 KB

The data seems like it can only be read by LabVIEW because LabVIEW is set up to properly read the binary data and it is simple for a user to do.
For matlab to read the data, it will have to be properly configured.
FOPEN     -     Open a file
FREAD     -     Binary file read
FWRITE   -     Binary file write
FTELL      -     Return the current file position
FSEEK     -     Set file position indicator
FCLOSE   -     Close a file
An example is given from http://www.mathworks.com/support/tech-notes/1400/1​403.htm:
%This m-file is a short example of how to read and write a binary file
%in MATLAB using low level routines
%write file
fid = fopen('square_mat.bin','wb') %open file in binary write mode
fwrite(fid, 'This is a square matrix', 'char'); %insert a header
fwrite(fid, [1 2 3; 4 5 6; 7 8 9]', 'int32'); %write data to file
fclose(fid); %close file
%read in the same file
fid = fopen('square_mat.bin','rb') %open file
bintitle = fread(fid, 23, 'char'); %read in the header
title = char(bintitle')
data = fread(fid, [3 inf], 'int32') %read in the data
data_tranpose = data' %must transpose data after reading in
fclose(fid) %close file
 As you can see, the data type, size, array size, etc. has to be explicitly defined. In addition, as Dennis alluded to, LabVIEW stores binary data in Big-Endian format, wheras most windows applications use little endian. I assume matlab is one of those applications...but I am not a huge matlab developer. Google may have more information on that. You can use a typecast in matlab to convert big to little and little to big, however, so that may be a great place to start. Please see http://www.mathworks.com/access/helpdesk/help/tech​doc/ref/typecast.html
Of course, our wonderful applications engineers at National Instruments have already done the above work for you and developed Knowledgebase 11SF83W0: How do I Transfer Data Between The MathWorks, Inc. MATLAB® Software Developm...which is easily searchable from ni.com knowledgebase category using 'matlab binary'
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video

Similar Messages

  • All of a sudden I am receiving photos as winmail.dat files, that I cannot open.  What is this, and why can't I open winmail.dat?

    All of a sudden I am receiving photos as winmail.dat files that I cannot open.  What is this and why can't I open them?

    http://www.twistermc.com/583/open-winmaildat-files-mac/

  • Plugin development for premiere, adobe example  error LNK1104: cannot open file 'C:\Program Files\Ad

    Hello,
    I downloaded the Premiere Pro CS 5.5 Win SDK, i open the project SDK_Exporter in Visual Studio 2008, when i hit debug i get the following error
    Error
    1
    fatal error LNK1104: cannot open file 'C:\Program Files\Adobe\Common\Plug-ins\CS6\MediaCore\ExporterSDK.prm'
    How can i resolve ?

    RESOLVED LOOKING AT THE PAST
    1.Zac Lam,01-dic-2013 10:43   in reply to Alex B MartinReport 
    Hi Alex, Are you launching Visual Studio with administrative privileges?  If not, you won’t be able to generate the .aex in certain protected folders because of a Windows security restriction.
    Was this helpful? Yes   No
    Reply 
    |Mark as:
    Unmark as Correct 
    |Translate
    7 posts
    03-ene-2013 
    2.Alex B Martin,01-dic-2013 12:34   in reply to Zac Lam 
    Yes it works, thanks Note: For CS 5.5 Administrative privileges are not need, so thats only with visual studio 2010 and premiere cs6 where i need to run vs2010 as admin.

  • HT5361 I cannot open my mail program even after clicking on the icon.

    I cannot open my mail program even after clicking on the icon.

    Mail did launch.  Now I'm not receiving new mail.
    I may have forgotten my password.

  • I cannot open my itunes program on my pc...any thoughts please..?

    Hi,
        I can't open my itunes on my pc...it's always been very slow..but now it won't open at all...just wondered if it was a pc problem or an itune problem...i don't have a problem opening any other program..so i guess it must be an itune problem

    Hi robertaathome,
    Thanks for using Apple Support Communities.  This article has steps you can take for the error you're seeing:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Ari

  • Preview freezes when trying to open images - other programs have no trouble

    Preview freezes when trying to open images - other programs have no trouble with the same file. This problem is somewhat intermittent.
    I have replaced the Preview application by moving a copy from another equivalent machine - no luck.
    Did not find any preferences file trash, though I looked.
    Is there one?
    Any suggestions?
    Thanks.

    Edwin,
    The .plist for Preview should be located @ ~/Library/Preferences/com.apple.Preview.plist (where "~" is your Home folder).
    Trash the file, logout/login or reboot your computer and try opening the app and opening the offending file again.
    Let us know if any luck with finding the .plist there and opening your file?
    littleshoulders [:-)

  • HT204370 Trying to play my recently downloaded iTunes movie rentals. When opening I get the window "Cannot Open".  Others previously worked fine, internet connection is good, and payments went thru fine.  Please advise. Thx!

    iTunes movies won't play.  (Previously others worked fine.)  When I open the movies i get the window "Cannot Open".  Internet connection is fine, payment went thru fine.  Please advise...thx!

    Thankyou for the two replies.
    I have some good news but I still am concerned about why this happened?
    Using iTunes, I deleted then re-synced the video files that wouldn't play and now all of them play again.
    As I don't know why this problem occured, I am concerned about it happening again...it is NOT fun to have to delete and reload all of these vids, but, at least I know that there is some kind of "workaround"!
    If anyone has an idea of WHY this happened and, perhaps how to prevent it in the future, I would appreciate that input despite the fact that all my vids now play again.
    Chuck Proche

  • Unable to open templates from server input form folder and server root folder from some system while the same can be open from others system

    Hi,
    I am unable to open input scheduled from server root folder and also from input form folder on some system while they can be open from others system.
    Please advice.
    Thanks in advance

    Hi Hengye,
    While opening , it dont give any error. When I try to open it , it takes some time to load then nothing happen.However I can open it on other system but not on mine my collegue and user system.
    Please advice.
    Thanks.

  • READER XI, CANNOT OPEN FILES OR PROGRAM

    I cannot get the new download of Reader XI to open, neither the program nor PDF files.  What's the fix?

    Try running the Acrobat/Reader cleaner tool: http://labs.adobe.com/downloads/acrobatcleaner.html
    Then re-install.

  • Read a file in labview already open in another program

    Hi,
    I am using labview to read a text file, also there is one more software(not lab view) is writing to the same file which I am using to read.My problem is that ,is it possible to read a file which is already openned by another software ?
    Thanks,
    Sachin Kudari

    Hi Sachin,
    that depends on that other software...
    - When writing to a file usually it is opened with exclusive access rights to the writing software. No other software can open the file simultanously.
    - The file may be opened with non-exclusive access by the writing software. Then LabVIEW may access the file too.
    - The file may be opened with exclusive access rights by the writing software for each write access and released when write access is finished. Then LabVIEW may open the file in parallel, but errors may occure for simultanous file access from both parties...
    It's never a good idea to share one resource (your file) for several requests (your different executables). It may work (with several conditions), but it doesn't need to.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I-tunes installed but cannot open in other users using Windows XP

    I-tunes installed and works with no problem in original user AND worked with a subsequent second user with a second I-Pod. After downloading version 7.5, I-tunes will not open in any other user in Windows XP including the 2nd user. Opening I-Tunes from the Start menu produced an installation / configuration attempt when trying to open in other users with nothing opening at the end. Same with Quicktime. Using the desktop shortcut produces the same installation/ configuration attempt resulting in a "problem with shortcut / fatal error during installation" message. All users are Administrators.
    I tried un-installing / re-installing, installing Quicktime alone, setting up a new user (same thing happens), tried MSCONFIG for any conflicts.
    Any ideas to open I-tunes in other user desktops?

    I have the same problem

  • Adobe bridge cc is not working on my mac snow leopard version 10.6.8. In other words the program will not open all other programs work fine

    Adobe bridge cc is not working on my mac snow leopard version 10.6.8. In other words the program will not open, but all other programs i have been able to open just fine

    Moving this discussion to the Bridge General Discussion forum.

  • Email attachments keep trying to open with other program's like Dropbox or iCloud

    Hi guys
    Since downloading Dropbox and other program's like cloudon
    When someone sends me a word/excel doc via email attachment it try's to open with it. I want it to open how it used to but cant find a setting can anyone help please?
    Thanks

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * [[Firefox hangs]]

  • I erased Quicktime and now I can't open any other programs

    I have a MacBook and use an OS X System Version 10.6.8. I tried to erase the Quicktime 10.0 I had because it wouldn't play my files.  Now it won't let me open any of my other programs like Iphoto, Itunes, Word, anything!  When I open these programs they instantly "quit unexpectedly". What should I do now?
    I tried to download Quicktime 7, but it wouldn't let me do that either, I just kept getting a update your version warning. HELP!

    Try restarting your MacBook in safe mode (holding down the shift key while restarting) then give it a try.  Also run disk utility on your hard drive to verify/repair it. 

  • I have PSE which is fully up to date but I still cannot open my Nikon D610 .NEF (RAW) files on my Windows 8 PC,  Can someone help?

    @

    D610 is supported in PSE12, but you must run Help> Updates to install the latest version of the plug-in. For earlier versions of PSE you would need to install the free DNG converter and convert the D610 NEF files to Adobes RAW DNG format - Camera raw, DNG | Adobe Photoshop CC.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

Maybe you are looking for

  • How can I connect my 2012 iMac to samsung smart tv

    Can someone tell me how to connect my 2012 imac to a samsung smart tv.  Do I use the thunderbolt slot and if so with what cable?  My tv has hdmi slots, usb slots, and component/av in.  Thank you for your help.  ANd please tell me the exact cable to b

  • PP CC and OS 10.9.3 work around for crashing and rendering

    A very nice guy named Anand at customer service walked me through it.  I have had 35 crashes today and that has been building for days, it really got on my nerves.  Deadlines and client pressure but Anand stuck with me. First take care of Disk permis

  • Create Root Element in XML

    Hi Experts, I am develpoing a program to generate xml file as output. I am using the method CL_IXML and other interfaces to generate the xml data. Here I need to create a root element. I did search in SDN but I couldnot found anything to generate xml

  • ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error STAN

    ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error STANDARD_ERROR="execve: Exec format error" #!/usr/bin/ksh /bin/find /u08/oradba/S036/archlog -name "*.arc" -exec rm -f {} \; Simple shell script gives above error when scheduled t

  • Can't Save Edited Photos

    Using Photoshop Elements 12, the photos I edit using any of the editing layers are not saved.  Only the original appears in the organizer even though I have selected "version sets" in the saving process. Any suggestions or do I have a lemon of a prog