CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Sep 2014
    Posts
    15

    Error in slx file

    I am playing around a bit with the slx format and I came a cross an error that startled me a bit.

    I have a file junk.slx that contains everything a basic slx file does which is a bunch of xml files and a png file. When copying junk.slx and in the new file replace one of the xml files with the same file from the original file I get the following error messege when trying to open the slx file again:

    "File 'Copy_of_junk.slx' does not contain a valid Simulink model in SLX format: A part name shall not have a forward slash as the last character [M1.5]"

    I wonder why this is? I can copy/paste the content of the xml file from junk.slx into the version in Copy_of_junk.slx and this does not give any error.

    (I change the file extension to zip to be able to alter the content, slx has the structure of an OPC file: http://en.wikipedia.org/wiki/Open_Pa..._using_the_OPC if this is information you need to help me.)

    Edit:
    I don't know if anyone will attempt to answer this question but I figure I try to give some more information about this mystery. I have made comparisson with Matlab compare tool (zip files) and the only difference in the files are "Last Modifiede Date" which in the working file all content have the same values. In the not working file there are a few minutes difference. Could this be an issue?

    Edit 2:
    I tried copying Everything at the same time to get matching time stamps, still not able to open the file.
    However I can do this if I change the file extension of the original file to zip and back to slx which I should be able to since its an OPC (Open Packaging Conventions) file.
    Last edited by mikeymoo; October 10th, 2014 at 07:24 AM. Reason: No answer, trying to give more information

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured