"Unexpected Error" opening Diadem TDM files

A little background.  I work in test area where we deal with several different data acquisition systems and, therefore, several different raw test data file formats.  One of those data types is NI/Diadem TDM files.  I have developed a single raw data loading function, using MATLAB, to handle the importation/reading of all of the different data types.  For the TDM files, I am utilizing the nilibddc.dll library (provided by National Instruments) to open/read the data files.  When I run the MATLAB code from the MATLAB development environment everything works fine.  This is the good news.
The bad news happens when I compile the MATLAB code and try to load TDM files into MS Excel.  What I am doing is using MATLAB’s compiler/deployment tool to create a generic COM dll (called MATLABLoadDataFile.dll).  I am then referencing MATLABLoadDataFile in an Excel add-in which obtains raw data file name(s) from the user, and calls the single raw data loading function to load the data into Excel.  This allows the users to easily import to Excel, all of the different file types we deal with.  When the raw data loading function is called in MATLABLoadDataFile,  an error occurs (-6204 “Unexpected Error”) when the DDC_OpenFileEx function is called.  I have included several debugging statements in the MATLAB code to try and track down what is going on.  The findings….the nilibddc.dll appears to successfully load with MATLAB’s loadlibrary command.  All 135 functions in nilibddc appear to be available.  When DDC_OpenFileEx is called, the code -6204 “Unexpected Error” is thrown, and the load data file function is exited (via error checking code I wrote in MATALB) without loading any data.
Now, more good news (I guess).  The above behavior is only experienced on my development machine, and (so far) one end-user.  After I deployed the data loading Excel add-in to several (approx 5) end-users, I discovered that the TDM data loading function worked perfectly, without any errors being thrown.  The sixth end-user, unfortunately, experienced the same “Unexpected Error” I receive on my machine.  I have dug deep into several things to try and determine the common thread between my machine and the sixth user without any luck.  I have checked system path statements, MATLAB path statements (if installed ), registry entries, and component install sequencing (I ran the same msi installer package for all end users).  Before I continue further which the deployment, I would like more information on how/why the “Unexpected Error” occurs.
FYI, all of the computers are running 32 bit Windows 7, MS Excel 2007, & MATLAB r2010a (some machines have it installed already, and some do not.  The MATLAB Compiler Runtime Library was installed on all machines to run the compiled MATLAB code.  The 2 “problem” machines are different in this regard, as are the 5 “good” ones, so no common thread).
Any help or suggestions will be greatly appreciated.  If this is the wrong forum for this question, please let me know, or forward to the correct one.  Thank You.
Solved!
Go to Solution.

Because the whole ddc system is based on dynaic library loading I would assume that one of them fails.
http://www.dependencywalker.com/
offers a tool depends.exe.
After starting it load the program (matlab.exe) to it and use the menu entry
Profile->Start Profile
The application will log all LoadLibrary and GetProcAddress entries and so on.
Have a look for red entries that might be related with ddc lib and ni usi.
A potential clash could be xerces or an installed NI-Excel Addin.
Could you check and come back with some information.
Greetings
Andreas

Similar Messages

  • Unexpected error opening catalog after accidentally deleting and recovering catalog file

    I deleted my Lightroom folder by mistake. I have recovered the Lightroom 5 catalog .Ircat file using recovery software but when I try to open it I get the message "Unexpected error opening catalog". Please help!
    I have tried creating a new catalog and importing the .ircat file but I then get told that it is not a valid lightroom catalog.
    I have a lot of photo edits that I really need to recover, I hope someone can help.
    Kind regards, Alex

    Hi Alex,
    I just did the same thing.  What recovery software did you use?? Also, were you ever able to recover your pics?
    Thanks for your help x

  • Error opening installation log file.

    ProblemYou are unable to install BlackBerry Desktop Manager and the following error message is displayed when you open the installation log file:
    Error opening installation log file verify that the specified log file exist and is writable.
    ResolutionTo resolve this issue, edit the system environment variables by completing the following steps:
    Warning: The following procedure requires modifying the computer environment variables. This can result in unexpected system behavior. Document the existing values prior to implementing any changes. To search for the Install.log file or files in the temp folder:
    On the Start menu, click Run and type %temp%.
    Click OK.
    In the Temp folder, click Search and then All files and folders. In the All or part of the file name field, type Install.log and set the Look in field value to Temp. 
    Click Search.
    If the Install.log file is found, delete it.
    In Windows® Explorer, go to the C:\ drive and create a new folder called TEMP2.
    Open the Control Panel and double-click the System icon.
    On the Advanced tab, click Environment Variables.
    In the User variables list, select TEMP and click Edit.
    In the Variable value field, change the file path to C:\TEMP2 and click OK.
    In the User variables list, select TMP and click Edit.
    In the Variable value field, change the file path to C:\TEMP2 and click OK.
    In the Environment Variables window, click OK.
    In the System Properties window, click Apply and then OK.
    Restart the computer for the changes to take effect. 
    Repeat the installation procedure for BlackBerry Desktop Manager.
    I have 8330

    hello,
    another solution is here :
    http://supportforums.blackberry.com/rim/board/message?board.id=BlackBerryDesktopSoftware&message.id=...
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Problem opening multiple .tdms files in subroutine

    Heya-
    I'm using LabVIEW 8.2, professional development system.
    I'm using the Open / Read / Close TDMS functions as part of a subroutine in a larger program.  The subroutine is supposed to open one of several TDMS files (each of which contains bulk data saved previously), extract the data, then restructure into a 3D array, which is passed back to the main program.  The particular file TDMS file to open is controlled by the main program.  The TDMS Close function is used after the data is extracted.
    When running solo, the subVI performs as expected.  When running as a subVI, it functions fine on the first call, but subsequent calls to open different data sets fail to actually open the TDMS file (or at least, the Read TDMS function generates an empty array).  However, returning to the orginal file that was opened, the subVI works fine - it opens the TDMS file.  It doesn't matter which file was intially used - whichever one was opened first functions fine, any others do not.  That would make me think that the first TDMS file isn't being closed, except that I am using the Close TDMS function after reading.
    Attached are the subVI (TDMS_to_3D_array), a quick test program that uses the subVI, and a .zip of two data sets
    Not sure if the global variables located in the SubVI will default, so they are: UpperMaxCol: 55, UpperMinCo: 0, UpperMaxPixel: 48, UpperMinPixel: 6
    Thanks in advance for the help
    Dan
    Attachments:
    Data.zip ‏1060 KB
    TDMS_to_3D_array.vi ‏54 KB
    TDMS_loadfault_tester.vi ‏39 KB

    Hi Dan,
    Perhaps you would try a few things.
    Use the TDMS Flush VI in the subVI before the TDMS Close VI.
    Try running the program with the subVI open.
    Wire the TDMS File refnum from the subVI back to the parent and observe its value as the program switches between TDMS files.
    Perform the TDMS read in the parent VI, wire the TDMS Data and the Array Size of the TDMS dataset to the subVI.  Does this make any difference?
    Try the subVI without the Channel Name string indicator.
    Include error cluster wires throughout the entire subVI.  Wire them through the TDMS VIs, then through the nested For structures, and then back to the parent VI.
    Let us know what happens.

  • Unexpected error opening catalog" trying to open a catalog. worked fine 2 days ago. Mac Pro LR5.3

    i am getting "unexpected error opening catalog" message when opening a catalog that worked fine 2 days ago. Other catalogs open on the same drive Mac pro LR5.3  please help.... Lots of worked had gone into that catalog
    thanks
    karl

    Hmm, that is more of a problem!
    Ok, couple of initial things to try:
    1.  Move the catalog to another drive, and try opening it from there.  It's a long shot...
    2.  Create a new catalog and go to File menu > Import from Another Catalog.  Navigate to the problem catalog and try to import a small chunk at a time.

  • How can I open a tdms file and replace a subset of data then save that change without re-writing the entire file again?

    Hi all,
    Is it possible to open a tdms file and make a small change an an array subset then save the file without having to save the whole dataset as a different file with a new name? That is to say, is there something similar to "Save" in MS Word rather than "Save As"... I only want to change a 1D array of four data points in a file of 7M data points.
    I am not sure if this make sense? Any help is apreciated.
    Thanks,
    Jack

    You can use either one, but for your application, I would use the synchronous.  It requires far less setup.  When you open the file, set both enable asynchronous and disable buffering to FALSE to enable you to use synchronous with arbitrary data sizes.
    Attached code is LabVIEW 2011.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    UpdateTDMS.zip ‏20 KB

  • "Error opening installation log file" when installing Photoshop Elements 10

    I bought Photoshop Elements 10 , Premiere Elements 10 .... I got the Premiere to download no problem but i can't get the photoshop to download. This is the msg that I am getting when I try to dl it "Error opening installation log file. Verify that the specified log file location exsists and is writable". Not sure why I can download one and not the other since they are both on the same disc. Plus in the program that I purchased I has 5 DVD's. Any suggestions??
    Thanks
    Message title was edited by: Brett N

    Install Premiere Elements, Photoshop Elements
    Mylenium

  • Error Opening Oracle Terminal File fmrweb.

    I installed 9IAS portal and the forms/reports server. The portal works fine, but when I try the 'Run Form Web ( runform.htm)' I get an error "Error opening Oracle*Terminal file fmrweb." The file does exist in my c:\oracle\806\forms60 directory and my FORMS60_PATH is set to c:\oracle\806\forms60 as well. Anybody having ( had ) similar problems? Note: 8.1.7, portal, and formsserver installed on the same Win 2000 machine. No Oracle apps. Thanks in advance.

    Hi Christian,
    It's probably working because you're now using fmrweb.res instead of the foobar fmrwebdk.res. Just look out for that missing quotation mark :)
    --Jesper                                                                                                                                                                                                                                                                                                                                                       

  • Error opening editor for file

    When I'm opening files via a SFTP connection the file opens; however, I get a somewhat annoying "Error opening editor for file c:\users\[user]\AppData\Local\Temp\[connection]\[folder]\(SFTP)[file]"
    I can't figure out why!
    Any ideas?

    you should use "<xsl:include href" instead of "<xsl:import href"
    Regds
    --

  • Upgrading to osx 10.6.8 fails. I see errors in the /var/log/install.log of "An unexpected error occurred while moving files to the final destination." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=5 "The operation couldn't be completed. Input/out

    upgrading to osx 10.6.8 fails. I see errors in the /var/log/install.log of "An unexpected error occurred while moving files to the final destination." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=5 "The operation couldn’t be completed. Input/out. Any thoughts on what is causing these errors and the upgrade failure?
    Thanks

    I have no idea what the specific error code means but input/output errors can sometimes mean a disk is failing. Make a couple of backups of all important data before doing anything else.
    Verify your startup disk using the First Aid tab in Disk Utility. If the disk needs repair boot from your Leopard DVD and repair your disk from Disk Utility under Utilities on the screen after you choose your language. Repeat the repair process until Disk Utility reports all is well.
    If Disk Utility doesn't find any errors you might want to try a new download of the update and keep a sharp eye on your HD for anything else that might indicate all is not well. Take special care to back up important data.
    If Disk Utility finds errors it would probably be a good idea to pay a visit to the Apple Store to have them check out your hard drive even if Disk Utility is able to repair the errors.

  • Lightroom: LR4 won't open - Unexpected error opening catalog

    I cannot open LR4. I get an, "Unexpected error opening catalog. The catalog could not be opened due to an unexpected error." This occurred after a WIN7 update failed.  It restored the system to an earlier version.  In doing so, it also reverted LR4.2 to LR4.1.  I have seen other threads to open a different catalog and/or create a new.  The problem is that once I go to "Choose a different catalog", I get the Windows screen where I can select my backup.  I select the backup catalog and click "Open".  The window goes away, but the underlying LR "Select a Catalog" window still only shows 1 catalog to open.....my original catalog.  The backup doesn't show up in the list.  (The backup is not a network drive and it is not read-protected.)
    I then try the "Create a new catalog", get the Windows screen, enter a new name and click "Save".  The same thing happens.  The Windows screen goes away and the LR "Select a Catalog" window still shows the orignal catalog in the list.  Thus, I cannot create nor choose a different catalog.  Am I doing something incorrectly?
    Thanks.

    Try right-clicking on the LR icon and selecting "run as administrator". This fixed the problem for me. I think the problem recurs every time Windows gets and update. You can also set LR to always run with admin privaleges on the properties window.

  • I am getting error message: Unexpected error opening catalog.  What should I do

    Lightroom started acting slightly strange, not displaying certain images in the folder I was working on, for example.  I shut it down, but when I tried to start it again, it would not open using my normal catalog, and I had the message, "Unexpected error opening catalog".  It does let me open a different catalog, however.  What can I do to get my catalog working again?

    Click here and follow the instructions.
    (71102)

  • TRYING TO INSTALL adobe photoshop elements8 AND IM GETTING error opening installation log file. verify that the specified location exists and is writable

    TRYING TO INSTALL adobe photoshop elements8 AND IM GETTING error opening installation log file. verify that the specified location exists and is writable

    Error opening installation log file | Windows

  • When i try to open Lightroom4.3 I get the following "unexpected error opening catalog"

    when I try to open Lightroom 4.3 I get the following "unexpected error opening catalog" and the program quits, how can I fix that?

    http://forums.adobe.com/community/search.jspa?peopleEnabled=true&userID=&spotlight=false&c ontainerType=14&container=3316&rankBy=date&q=%22unexpected+error+opening+catalog%22

  • Artifact harvest failed due to: Unexpected error import: Invalid jar file

    Hi,
    i am trying to submit the .biz and .proxy file to OER using Eclipse,
    but i am getting the following error,
    can anybody help me on it,
    what i am missing ?
    8332 [Main Thread] INFO com.bea.alsb.harvester.plugin.reader.OSBReader - OSB Config Jar Import / Validation starting.
    <Mar 13, 2012 10:28:16 AM IST> <Warning> <ConfigFwk> <BEA-000000> <Setting transaction '6' as rollback only. Rollback reason:
    java.io.IOException: Invalid jar file
    at com.bea.wli.config.importexport.ConfigJar$LogicalJarForm.<init>(ConfigJar.java:1341)
    at com.bea.wli.config.task.impl.UploadJarTask._execute(UploadJarTask.java:46)
    at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:233)
    at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
    at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
    at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:142)
    at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:236)
    at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:191)
    at com.bea.wli.config.task.impl.UploadJarTask.uploadJar(UploadJarTask.java:36)
    at com.bea.wli.config.mbeans.Config.uploadJarFile(Config.java:442)
    at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:79)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:196)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQueries(OSBReader.java:112)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.read(OSBReader.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
    at $Proxy0.read(Unknown Source)
    at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
    at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
    at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:430)
    8426 [Main Thread] ERROR com.oracle.oer.sync.framework.MetadataManager - Artifact harvest failed due to: Unexpected error import: Invalid jar file
    com.oracle.oer.sync.framework.MetadataIntrospectionException: Unexpected error import: Invalid jar file
    at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:97)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:194)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQueries(OSBReader.java:112)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.read(OSBReader.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
    at $Proxy0.read(Unknown Source)
    at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
    at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
    at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:430)
    Caused by: java.io.IOException: Invalid jar file
    at com.bea.wli.config.importexport.ConfigJar$LogicalJarForm.<init>(ConfigJar.java:1341)
    at com.bea.wli.config.task.impl.UploadJarTask._execute(UploadJarTask.java:46)
    at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:233)
    at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
    at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
    at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:142)
    at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:236)
    at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:191)
    at com.bea.wli.config.task.impl.UploadJarTask.uploadJar(UploadJarTask.java:36)
    at com.bea.wli.config.mbeans.Config.uploadJarFile(Config.java:442)
    at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:79)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:196)
    ... 11 more
    Please help...
    Regards,
    yogesh

    Hi Yogesh - when you say "i don't think the file is corrupt, because it works fine in eclipse", do you mean, you are actually able to publish them to a server and test those out?
    Dont know your exact scenario, but when you say that you took the sbconfig from another machine and used it on your local system, cant we just go ahead with that? I mean, clean up your code base, and then import this latest "working" sbconfig and start afresh?
    -Swagat

Maybe you are looking for