Open *.MAT file

Hello,
For some reason I cannot open a matlab file.  The file has been ftp'd and is called "Failed MAT file.zip"
I can open other .mat files just not this particular one.  I am using DIadem 2012 SP1. 
When I load the data into the data portal it says loading the file "file name" has failed for all the loading methods (DataPlugin) linked to this file type. No DataPlugin assigned for this type.
When I assign the plugin to open MatLab file I get another error stating it cannot open the file with the loader "MatLab"
Any ideas?
Thanks
Tim

Hi Tim,
I downloaded your *.mat file and had the same error message you report.  The DataPlugin does appear to correctly import 239 of the channels from that file.  Do you know if the "EngTrqStatic1" is the only one it fails on, or was that channel supposed to be empty?  I'll send your file on to R&D for them to see what's happening during the import.  There are some *.mat file data types that the DataPlugin can't support (like custom structs), so it's possible we won't be able to help, but let's see.
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • How to open a .MAT file in LABVIEW

    Hey everyone,
    I currently have a .MAT image file which I would like to open in LABVIEW to apply some image filters. However, I am unsure as to how to open the .MAT file in LABVIEW. Ideally I would like to be able to open the .MAT file without using matlab, and it seems the only way to accomplish this task is through the mathscript node. I have attached an example of the image im trying to open, as well as the LABVIEW program which I would like to use on the image. Thanks for the feedback! =]
    Attachments:
    MAT_Image_Adjust.zip ‏1779 KB

    Hi Boiler,
    1) Do you have a choice in the format you export your data from MATLAB?
    "ASCII Format
    Complete the following steps if you want to import or export data between LabVIEW and the MATLAB® environment, the process is straightforward as long as you are using ASCII format.
    From the MATLAB® environment to LabVIEW
    To save a vector or a matrix Xin ASCII format with tab delimiter, enter the following in the command window or m-script file in the MATLAB® environment:   
    >>SAVE filename X -ascii -double -tabs
        This creates a file whose name is filename, and it contains the data X in ASCII format with a tab delimiter.
    Import the file into LabVIEW using the Read From Spreadsheet File VI located on the Programming»File I/O palette.
    2) Have you tried using the mathscript node? Did you get any errors?
    "Binary Format
    Complete the following steps if you want to import or export data between LabVIEW and MATLAB®.
    From the MATLAB® environment to LabVIEW
    To read a .mat file in LabVIEW would require a VI to parse the file. This may be easier if each variable is saved to a separate file.
    " -- this was done here, no ideas if it still works,
    I want to read a Matlab MAT file into labview
    Hope this helps, James
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Help opening a .mat file

    Hi,
    I am new to labview and need some assistance trying to open a .mat file for further analysis (example file attached). The file formate is level 5 and I believe the data is in arrays. I do not have access to confirm the structure but have been told the layout of the data i need to access follows the following structure: MotionFile_walkaround -> Actor_50_human -> Segments -> Sacrum -> Pose.
    I have successfully read the header and found that byte swapping is required. I have downloaded the Mat-File IO library but have had no success in reading the actual data set beyond the header but assume this is due to my inexperience with both .mat files and labview. 
    Any help would be greatly appreciated.
    Attachments:
    walkaround.zip ‏1527 KB

    Hey doofus13,
    When reading your .mat file, created in The MathWorks, Inc. MATLAB® software, I recommend using the MATLAB® DataPlugin found here:
    MATLAB® DataPlugin
    http://www.ni.com/example/29178/en/
    Then, you can use the Data File Viewer function to view all of the data in your file. Any data that can be seen in the Data File Viewer can then be extracted using the Data Storage API. I looked through the file you provided and was able to view and extract the data contained in the file using the Data Storage API so it should work fine for you.
    MATLAB® is a Registered Trademark of The MathWorks, Inc.
    Hope this helps!
    --Ryan_S.

  • How to implement reading data from a mat file on a cRIO?

    Hi all!
    I am not even sure, this is plausible, but I'd rather ask before i start complicating. So far, I have not found any helpful info about reading in data to a RT device from a file (kind of a simulation test - the data is simulated). 
    I have the MatLab plugin that allows the data storage read a MAT file, which has a number of colums representing different signals and lines representing the samples at a given time (based on the sample time - each sample time has it's own line of signal data). 
    I have no idea of how to implement this to cRIO.
    The idea is:
    I have some algorithms that run on the RIO controller in a timed loop. As the inputs to these algorithms, i would need to acces each of the columns values in the line, that corresponds to the sample time (kind of a time series - without the actual times written).
    I am fairly new to RT and LV development, so any help would be much appreciated.
    Thanks, 
    Luka
    Solved!
    Go to Solution.

    Hi Luka!
    MAT file support in LabVIEW is handled by DataPlugins. Here you can find the MATLAb plugin:
    http://zone.ni.com/devzone/cda/epd/p/id/4178
    And here you can find information on how to use DataPlugins to read or write files of a certain format:
    http://www.ni.com/white-paper/11951/en
    There is also an open-source project that addresses the problem, you can find it at
    http://matio-labview.sourceforge.net/
    Unfortunately, RT systems are not supported by DataPlugins, so fist you'll have to write a VI on the Host computer to convert your files to a usable format (I suggest TMDS for compactness and ease of use), and the work on the converted files in the cRIO VI. If you have other questions about DataPlugins or anything else, please get back to me.
    Best regards:
    Andrew Valko
    National Instruments
    Andrew Valko
    National Instruments Hungary

  • Creating .mat files with Matlab dataplugin in LabVIEW

    I am trying to create a .mat file in LabVIEW using the Matlab dataplugin. It appears to create a group called "Vector" without being told to, and it also concatenates group and channel names together. I have made an example to demonstrate this behaviour. I am trying to create a group called "Group" and inside it a channel called "Channel". What I get looks like a group called "Vector" and inside it a channel called "GroupChannel". What am I doing wrong?
    Best Regards,
    John Sackett
    Solved!
    Go to Solution.
    Attachments:
    write mat example.zip ‏54 KB

    Hello John
    Thank you for getting in touch regarding your issue. I am an applications engineer here at National Instruments, as I understand you are using the data plugin for Matlab within LabVIEW, but as shown with your code when you label the channel or group you get an outcome which you don't expect.
    I have opened and had a look at your code and can see where the issue is arising. The functions you are using are normally used with TDM files, .MAT files are compatible but there are a few differences between the file formats, which is why you are getting the outcome we have seen. A TDM file has headers named channelgroup and channel, but Matlab does not have the channelgroup header in the file type and therefore the functions in LabVIEW merge the 2 strings to the available header.
    I am not able to open your .MAT file so could you give me a brief description of what occurs inside Matlab?
    Have you looked into using the script node to allow for .MAT file types in LabVIEW? Here is the help file
    I have also found some resources which you may find useful.
    LabVIEW to MATLAB
    Convert file
    Open .MAT in LAbVIEW
    DataPlugin
    Let me know if you would like any further information
    Regards
    Stephanie L
    Applications Engineer
    National Instruments UK and Ireland

  • FFT of waveform (lvm file converted from mat file) - how do I overcome dt error =0?

    Hi,
    I am using an lvm file after conversion from mat file. I wanted to get the fft  spectrum.I keep getting this error that waveform dt<=0.
    How do I overcome it?
    I have attached the mat file and the vi i used.
    Best regards,
    Fesmi
    Solved!
    Go to Solution.

    The Forum is somewhat particular about the files which may be attached. Often creating a zip file works. Sometimes you can change the extension to .txt. If you change the extension, please indicate in your post what the orignal extension was.
    It appears that the data in the file has a time column and an amplitude column. The LabVIEW waveform datatype is a cluster of an array of amplitudes (Y), sampling interval (dt), starting time (t0), and optional attributes. This is what the Power Spectrum VI requires as an input. The t0 values is not used so the defualt is fine. the dt value can be calculated from the difference of any two adjacent values in the time column. Since the first value is zero, the second value is equal to dt.  Use the Build Waveform primitive from the Waveform palette.  Expand it to show the dt element.
    In the attached VI all rows is an indicator which contains the data from your file saved as default. XY Graph plots that data.  After subtracting the mean to get rid of a DC component, the data is converted to a waveform. The power spectrum is calculated and displayed using the same VI as in your program. It also uses Extract Multiple Tone Information.vi to get the frequency and amplitude of the major peaks in the data.
    Interestingly the low frequency part of the spectrum has strong harmonics of 60 Hz while the peaks near 4 kHz are space ~100 Hz apart.  The broad peak near 2.1 kHz does not seem to have noticeable components at either 60 or 100 Hz.
    How do you avoid the Dynamic Data Type (DDT)? Stop using Express VIs! For reasons only known to NI, Express VIs deliver their outputs via DDT. Except by opening the block diagram of the express VI, there is no way to tell what the underlying data structure on a DDT wire is. 
    Lynn
    Attachments:
    FFT of Waveforms.vi ‏711 KB

  • I am trying to import developed images from LightRoom 5 in o Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 Photoshop 6 for further editing.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, or you do not have necessary access permissions or another program is using the file.  Use the 'Properties' command in the Windows Explorer to unlock the file. How do I fix this?  I would greatly appreciate it if you would respond with terms and procedures that a computer ignorant user, such as me, will understand.   Thanks.

    Have you tried restoring the Preferences yet?

  • I am unable to open raw files from my Canon T1i in Adobe Camera Raw of my version CS3 of Photoshop.  I have tried to update my ACR by downloading version 4.6 from the Adobe website but I am still unable to open raw files, just JPEG.  Is there a way to use

    I am unable to open raw files taken on my Canon Rebel T1i in my version of Photoshop CS3.  When I import raw files into Bridge they come up as patches with CR2 on them and when clicked on, a notice comes up stating that Photoshop does not recognize these files.  I tried to update my Adobe Camera Raw by downloading version 4.6 from the Adobe Website, but when I clicked on the plus-in, I got another message that Photoshop does not recognize this file.  I spoke with a representative from Canon who said that I could not update CS3 and that I should subscribe to the Cloud.  I would prefer to use my CS3, if possible.  Can anyone advise me what to do?

    The T1i was first supported by Camera Raw 5.4 which is only compatible with CS4 and later
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    Some options:
    Upgrade to CS6
    Join the Cloud
    Download the free Adobe DNG converter, convert all T1i Raw files to DNGs then edit the DNGs in CS3
    Camera raw, DNG | Adobe Photoshop CC

  • How to read,dispaly and open pdf files

    Hi, I am very new to Java butI have VB6.0 background. My current requirement is to read pdf file names from a directory, then
    show them on a form in a list (with their path in background pointing to the actual pdf files) and then once a user clicks any
    file name, open that file on the form.
    For example:
    My pdf files are in a directory as following:
    C:\myreports\user1\
    report1.pdf
    report2.pdf
    report3.pdf
    C:\myreports\user2\
    report1.pdf
    report5.pdf
    The output on the form should look like this if user1 has logged in the system. Side note: I am able to get userid of the logged in person in a variable.
    My Reports:
    . Report 1
    . Report 2
    . Report 3
    When a user clicks Report 1, it opens on the same form in pdf format.
    Thanks
    S.yhong

    For the first part (Listing thepdf files in the directory) you can use the java.lang.File class.
    File f = new File("path to your directory");
    File files[] = f.listFiles();
    then process the files array to find the files with extenction pdf
    You can also use a file filter object and make the listFiles method return only the pdf files.
    Please read the documentation about the File class for more info about it.
    */ For the displaying the pdf part is it good enough if you load the accrobat reader and with it. In that case you can do that using the Runtime.exec
    Also you can search for free java based pdf viewers I am sure there must be meny.
    And also the JTextPane might support pdf but I am not sure about it.
    EDIT:
    Just to say that this is my 1000th post :)
    Message was edited by:
    LRMK

  • I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    Canon 1DX support was added to ACR in version 6.7, 7.1.  An updated CS6 should be at level ACR 8.6.  If your ACR is not at level 8.6 try using CS6 menu Help>Updates.  If that does not install ACR 8.6 try downloading the ACR and DNG 8.6 converter and see if ACR 8.6 will install into your CS6.
    Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • Open/edit file

    I need to open a file, and edit part of the file based on some static text in that file. For example, lets say the text file looks something like this:
    a
    b
    c
    1
    2
    1
    a
    b
    c
    I need a program that will open the file, and delete everything from the first 1 to the last 1, and do nothing if no 1's exist.
    Afterwards, save the existing file.
    Can someone please show me how to do this?
    Thanks.

    I finished writing the program I was asking about. In case anyone needs anything like this in the future, I have posted the program here(w/ a few modifications):
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.BufferedWriter;
    import java.io.File;
    import java.util.Collection;
    import java.util.ArrayList;
    public class ABC{
       // Main method
       public static void main(String args[]) {
          // Stream to read file
          FileReader fr;
          FileWriter fw;
          Collection<String> lineStorage = new ArrayList<String>();
          String line = "";
          boolean finishedRemoving = true;
          final String filePath = "b.xml";
          try {
             // Open an input stream
             fr = new FileReader(filePath);
             // Read a line of text
             BufferedReader br = new BufferedReader(fr);
             while (br.ready()) { //while there's another line
                line = br.readLine();
                if (line.compareToIgnoreCase("  <app>") == 0) {
                   finishedRemoving = false;
                   continue;
                } else if (line.compareToIgnoreCase("  </app>") == 0) {
                   finishedRemoving = true;
                   continue;
                if (finishedRemoving) {
                   lineStorage.add(line);
             // Close our input stream
             fr.close();
             fw = new FileWriter(filePath);
             BufferedWriter bw = new BufferedWriter(fw);
             for (String aLineStorage : lineStorage) {
                bw.write(aLineStorage);
                bw.newLine();
             bw.flush();
             fw.close();
          // Catches any error conditions
          catch (IOException e) {
             System.err.println("Unable to read from file");
             System.exit(-1);
    }

  • Unable to open Office files on SharePoint 2010 sites on Windows Server 2008 R2

    Setup: Windows SharePoint Server 2010 sp1 on Windows Server 2008 R2 (hosted on VMWare VSphere ESXi 5.1)
    Secured using Domain SSL from GlobalSign.
    Client OS: Windows 7 Professional 32bit & Windows XP SP3 32 bit
    Browsers: IE10, IE9,IE8
    Office: Office 2010, Office 2010 sp2 (both 32bit), Office 2007
    Problem Description: Only recently, users started having issues with opening Office files (Word, Excel) on SharePoint sites. When you click on an Office file e.g. Word Document, it comes up with the option to select "Ready only" or "Edit"
    and choosing either options and re-entering the login credentials results in the
    application hanging. If you leave it for a while (about 5 minutes) sometimes the file opens and other times it gives the error "Could not open https://portal.com/XXX/XXX/Document.docx". Even when it opens, it's extremely
    sluggish and can't do anything other than end it via Task Manager. Same with excel files. 
    This happens to all the users all different OS and browsers.
    On XP Pro SP3 w/ IE8, when you click on the file, the login prompt keeps popping back up repeatedly and if you click cancel, the file loads up anyway but no way of saving back onto the SharePoint site.
    IMPORTANT: One exception is when logged in as a Site Collection Administrator, it
    works like a dream bizarrely!!!! Opens, Edits and saves back fine on the SharePoint site.
    Have tried following:
    1. Repaired Office 2010 Pro; Uninstalled/Re-installed Office 2010 Pro
    2. Reset Browser, unticked automatically detect proxy settings.
    3. Emptied OfficeOfflineCache on Client
    4. Removed WebDAV from the SharePoint server
    5. Added Antivirus folder exclusion (We use SEP 11) on the SharePoint Server
    Note: PDF files opens fine for all users.
    I would immensely appreciate if anybody has got any advice/pointers/suggestions. Desperately out of ideas at the moment.
    regards,
    Compter Sez No!

    Hi,
    According to your description, When you try to open a Microsoft Office document from a SharePoint 2010 site in a client application, the document opens slowly and you are prompted to enter your credentials multiple times.
    This issue may be because of SharePoint Web Front End (WFE) server(s) has Antivirus software installed and the exceptions are not set correctly.
    I recommend to remove the antivirus software or set the correct permissions for the antivirus software to resolve the issue.
    To configure the antivirus exceptions, please follow the guidelines in the below articles:
    KB943620:
    Folders to exclude when you perform a file-level antivirus scan on a server operating system.
    KB952167:
    Certain folders may have to be excluded from antivirus scanning when you use a file-level antivirus program in SharePoint.
    KB943556:
    Recommended file and folder exclusions for Microsoft Forefront Client Security or Forefront Endpoint Protection 2010.
    Best regards.
    Thanks

  • I downloaded mountain lion and then the new office suite (word, ppt, excel) but now when I try to display one of my ppt's it says 'ppt cannot open the file...the file may be corrupt, in use, not a type recognized by ppt etc.." how can I fix it?? HELP

    I downloaded mountain lion and then the new office suite (word, ppt, excel) but now when I try to display one of my ppt's it says 'ppt cannot open the file...the file may be corrupt, in use, not a type recognized by ppt etc.." how can I fix it?? HELP

    Did you try to open teh fle by double-clicking its icon? If the file was made with an older version of Office, you may get that message. Try opeing PP and, from its "File" menu, see if you can open the ppt. I've foundthat often gets around that message and then yo ucan save the file from the newer version.
    If that doesn't work, consider asking in the Microsoft Office: Mac forums here:
    Office for Mac forums
    PowerPoint is not an Apple product and it seems a lot of people around here avoid Office.

  • In Mountain Lion, how do I find the location of an open Preview File?  The file "properties" tab is no longer available.

    I typically have several open Preview files at any one time and often forget where, sometimes if, I saved them.  In Mountain Lion, how do I find the location of an open Preview File?  Tried holding option + command in spotlight but I don't see a path name appear anywhere. 

    Yes, cmd-option on a file you choose in Spotlight and the path will appear at the bottom of the Preview window.
    EDIT: Also, if it is bookmarked the path is in Bookmarks.

Maybe you are looking for