Cannot open tdms file

Hi I'm using TDMS format to my project.
I succedd to log the whole data into TDMS file by using the 
DAQmxConfigureLogging(taskHandle, logFile.toAscii().constData() ,DAQmx_Val_LogAndRead,"GroupName",DAQmx_Val_OpenOrCreate)
Now my problem is that when I'm trying to read the TDMS file I can't open it.
My code of reading is (from the TDMStesing example):
unsigned int
length;
int ddcError = 0;
DDCFileHandle file = 0;
char *property = 0;
// Read file name
ddcChk (DDC_OpenFileEx (FILE_PATH, "TDMS", 1, &file));
ddcChk (DDC_GetFileStringPropertyLength (file, DDC_FILE_NAME, &length));
nullChk (property = (char*)malloc (length + 1));
ddcChk (DDC_GetFileProperty (file, DDC_FILE_NAME, property, length + 1));
printf ("File name property: %s\n", property);
free (property);
property = 0;
// Read file description, if present
if (DDC_GetFileStringPropertyLength (file, DDC_FILE_DESCRIPTION, &length) >= 0)
nullChk (property = (char*)malloc (length + 1));
ddcChk (DDC_GetFileProperty (file, DDC_FILE_DESCRIPTION, property, length + 1));
printf ("File description property: %s\n", property);
free (property);
property = 0;
// Read the channel groups
ddcChk (ReadGroups (file));
Error:
if (property)
free (property);
if (file)
DDC_CloseFile (file);
return ddcError;
When I debug the code I got the error code of -6204 at the DDC_OpenFileEx  function
Error details http://zone.ni.com/reference/en-XX/help/370051K-01/cvi/cvidiademlibraryerrors/
-6204
DDC_UnexpectedError
An unexpected error occurred in the library.
Need help...
My setup:
Hardware: NI 9234
NI-Daqmx: device driver 9.4.0f5 
Windows version: XP (sp3)
Language: Qt (C++)
Solved!
Go to Solution.

Hi all,
I added the DataModels libs to the project and I succedd to read TDMS file.
BUT, now I'm trying to read TDMS 2.0 file and I got the next message:
ERROR: TDS Exception in Initialize: Tds Error: TdsErrFileVersionTooNew(-2510)
err id : -6210
Need help
Atteched the TDMS file
Attachments:
tset_tdms.zip ‏781 KB

Similar Messages

  • Cannot open TDM files with compiled applications

    I need to open TDM files using my EXE application, but it doesn't work in computers with only LabView Run Time installed. (It does if LabVIEW is installed, and it also does if I run my VIs). It doesn't display any error, and it doesn't extract any data.
    I've tried installing DSC Run Time as well, but it doesn't work either.
    Is this some Lisencing restriction?
    Do I need some extra installings?

    Regardless of the forum location ... make sure you have checked "NI USI" in your installer build specification.
    Herbert

  • 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.

  • I am working in text edit and cannot open my file. Error message says it is in the wrong format, truncated or corrupted. what to do?

    I am working in text edit and cannot open my file. Error message says it is in the wrong format, truncated or corrupted. what to do?

    Try opening Disk Utility in your Applications-Utilities folder and repair permissions.

  • I cannot open pdf files from one supplier when using Adobe Reader but I can using another Viewer

    I cannot open pdf files from one supplier when using Adobe Reader but I can open it if using Google PDF viewer or another viewer. The Adobe reader gives the error "There was an error opening this document. The file is damaged and could not be repaired" when I try to open the file. The version of Adobe Reader is 10.1.7, however I have tried other versions and they all fail the same way.  I have tested on a number of different PC's in different networks and all fail using Adobe Reader but work using alternate viewer. Also the PC's will open a PDF from any other source.

    Newer Reader versions are more strict than older versions (and other PDF viewers).  If certain minimum requirements are not met, Reader will tell you that the PDF is damaged.  This can happen when a document was created with software that does not adhere to PDF standards, or when the file was damaged during a download or email transmission.
    You should contact the creator of these PDFs.

  • Photoshop Elements 9 and cannot open Raw files from my Canon EOS 1000D camera.

    I am using Photoshop Elements 9 on a Windows 7 based PC and would like to know why I cannot open Raw files produced by my Canon EOS 1000D camera.
    I have checked the version of the plug in as 6.5 for raw files which is supposed to open .cr2 files and should be compatible according to Adobe site info.
    any ideas for next move.
    Mick

    Hi,
    According to all of Adobe's charts, the Canon 1000D should be supported by the basic PSE 9 even without updates. When you said you checked the camera raw version in PSE, did you do that by going to the Help menu and selecting About plugins -> Camera raw?
    The Canon 1200D requires ACR 8.4 which is only compatible with PSE 12 - so for PSE 10 your brother would need the DNG converter.
    I can't find a sample raw file to try (I do have PSE 9). If you want to upload a sample file to dropbox and give me access, I could try it on my system.
    Have you tried opening one of your files on your brothers system?
    Nrian

  • I cannot open a file from LR5 into CC2014 unless it is a smart object. also will not save back to LR at all it gives me an error message "Line: 1 -   photoshop.notifyLightroomDocClosed ('lightroom-2.0', 'B53AFA39-A49B-4709-A9BD-0B6467C175C3', 'Macintosh H

    I cannot open a file from lightroom into CC2014 unless I open it as a smart object. CC opens, just will not display my image. i am given an error code when I save an image, and can only save to my desktop or other locations, not automatically back into my lightroom.
    I am using LR5 latest update, as well as CC2014
    Below is the error message:
    Line: 1 ->  photoshop.notifyLightroomDocClosed ('lightroom-2.0', 'B53AFA39-A49B-4709-A9BD-0B6467C175C3', 'Macintosh HD:Users:BPexposures:Desktop:_DSC5962 as Smart Object-1.psd');

    I was also having this issue, and I did some more searching and found this answer in the Adobe forums: Re: Photos from Lightroom 5 to Photoshop CC (2014) and back.... The issue appears to be caused by having not updated Lightroom to the latest version prior to having CC2014 installed (wow that's stupid). The trick seems to be to uninstall Photoshop CC2014 and to then reinstall it after having upgraded to Lightroom 5.5.

  • I have photoshop CC. I cannot open two files such as Tiffs and view them side by side. When I open the second file it overrides the first. Do I need to do something with preferences?

    I have photoshop CC. I cannot open two files such as Tiffs and view them side by side. When I open the second file it overrides the first. Do I need to do something with preferences?

    What happens when you try to use the clone stamp tool?
    It should work with the images side by side.
    You can setup photoshop cc to be like photoshop cs2 was on your other mac, by going to Photoshop>Preferences>Interface and unchecking
    Open Documents as Tabs and Enable Floating Document Window Docking
    And also going to Window and unchecking Application Frame

  • After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    Numbers is a spreadsheet program and FileMaker is a database program, so you probably can't use Numbers to open them unless you had first exported them from FileMaker in a spreadsheet-compatible format.
    If you upgraded from 10.6 Snow Leopard or earlier and your old copy of FileMaker won't open anymore, it might be a PowerPC application that is not compatible with 10.7 and later. If that is the case, to work with your FileMaker files you should upgrade your copy of FileMaker to the latest version, which seems to be FileMaker 12.

  • I cannot open InDesign files after upgrading to CS6.

    Error message is "Cannot open the file *.indd. Adobe InDesign may not support the file format, a plug in that support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application" Can anyone help!

    That message means exactly what it says, more or less. The three possibilities are it isn't an InDesign file at all (we see that here a lot), there is a .idlk lock file in the same folder (delete it), or the file has been damaged (frequently happens with flash drives).
    If you open the file in a plain text editor like NotePad or TextEdit (it will look like gibberish) and paste the first few lines here we may be able to tell you if the file is damaged or not an InDesign file.

  • Cannot open indd file in either CS5 or CS5.5

    I downloaded CS5.5 on my laptop this afternoon. I then opened a CS5 file, worked on it, then saved. Now I cannot open the file in either CS5 or CS5.5. Is says InDEsign may not support the file format, the file is missing, or it is opened in anaother application. Does anyone know how I can open this file?

    Just to be clear:
    It won't open in either version. I created the file in CS5 (school computer lab), worked on it in CS5.5 (on my personal laptop connected through the server), then tried to open it on a school coputer using CS5. The file will not open.
    Once you edit a CS5 file in CS5.5, it becomes a CS5.5 file and you will not be able to open it in CS5.
    Make sure you are running the version you think you are, and don't double-click the file, but actually use File > Open from within InDesign CS5.5.

  • I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file

    I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file me be open in another application."Please help I really need to get this file open.

    Since you've shown us the folder contents it's a good bet it isn't in use (no lock file). And it doesn't look like the file is mis-named as there doesn't seem to be anything else there that would be the .indd file (but just in case, open it in TextEdit and paste the first few lines here so we can see what the file header says), so the most likely case is the file is damaged. Is that on a removable device of some sort?
    You can try the tool at Repair corrupt InDesign Adobe files on Mac OS X  or send me a link to the file by private message and I'll try the recovery tool I have for Windows.

  • SSIS package "The Microsoft Jet database engine cannot open the file"

    Dear all,
    I am trying to import data from an excel spreadsheet which is save on application sharing server. When I try to save same file locally (On my desktop) my package has no problem to read it.  Problem comes when I change the file path to the share location
    I am getting below error message,
    "Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  13:26:46  Error: 2014-12-05 13:26:50.30     Code: 0xC0202009     Source: Incremental MasterStyle DL
    Connection manager "Excel Connection Manager"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft JET Database
    Engine"  Hresult: 0x80004005  Description: "The Microsoft Jet database engine cannot open the file ''.  It is already opened exclusively by another user, or you need permission to view its data.".  End Error  Error:
    2014-12-05 13:26:50.30     Code: 0xC020801C     Source: Data Flow Task 1 Excel Source [36]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection
    manager "Excel Connection Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2014-12-05 13:26:50.30
        Code: 0xC0047017     Source: Data Flow Task 1 SSIS.Pipeline     Description: Excel Source failed validation and returned error code 0xC020801C.  End Error  Error: 2014-12-05 13:26:50.30     Code: 0xC004700C
        Source: Data Flow Task 1 SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2014-12-05 13:26:50.30     Code: 0xC0024107     Source: Data Flow Task 1    
     Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  13:26:46  Finished: 13:26:50  Elapsed:  3.401 seconds.  The package execution
    failed.  The step failed."
    I am trying to run this package as an sql server agent job and  server is installed on my Machine. I have created proxy account with my own credential to execute it. I have full excess to the spread sheet and can open it in an excel program. Please
    suggest what could be the reason why sql job is not able to access this spreadsheet. I can think of below reasons
    File is password protected and I am not using its password to unlock it?
    My domain account is a part of It Admin group with high previllages
    when I installed my SQL server I installed it as a standalone instance of SQL server?
    please advise.
    regards
    JKH

    Hi Jahangir,
    Based on the error message that "The Microsoft Jet database engine cannot open the file ''.  It is already opened exclusively by another user, or you need permission to view its data.", there are two causes:
    The account that SQL Agent is using does not have the correct permissions for the file or for the folder that contains the file.
    Another process or user has the file open.
    The following resolutions correspond to the previous list of causes:
    Since you use a network path to the file (UNC), check the account permissions on the share, the file, and the folder.
    The "another user" may be Microsoft Visual InterDev. Close any Visual InterDev projects that contain a data connection to the file. Please close all instances of excel file and re-run the package.
    Besides, we can use a tool like
    SQL Server Profiler to see what is happening when you run the package.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Help - "Acrobat is being used by another application and cannot open PDF files until the other application is closed."

    Hello,
    I searched this site and google for this error terminology and come up dry.  I support a user who has been for years using Acrobat 5 (yes, I know...) to read files in a client DB program, as well as other PDF files on their PC.  In the last week or so, they have started gatting this error "Acrobat is being used by another application and cannot open PDF files until the other application is closed." any time they attempt to open a PDF file attached to an email (via Outlook).
    It is my understanding that they cannot upgrade to a newer version of Acrobat because of limitations of their client software, but had not previously had any issues viewing PDF notes from the DB, and PDF attachments in their email.
    I have tried uninstalling and re-installing, as well as tried using Adobe Reader 7 & 9 in conjunction with Acrobat to try to get around this issue, but have not been successful.
    Any ideas?
    Thanks,
    Jesse

    I don't have an answer to your technical problem. The product I assume is Acrobat that you are talking about (based on the post title), Adobe is the company name. This is a good place to ask questions on Acrobat if folks can figure out what you are talking about. They will ask for the product version number (like AA9.3.3), operating system, and other applications if appropriate. Also, just what you are doing that generates the message.
    As for Adobe, you are not likely to get an answer from them here in the user forum. You will be lucky if you can get an answer if you can contact them and not be on hold for more than an hour (sorry, this is why a lot of folks end up in the forum).
    So, to help others try to answer your question, what are the products and versions involved? What OS? What are you doing when the message comes up.

  • Error Message: There was an error opening this document. Acrobat cannot open this file because a task is still active in Acrobat.

    I've tried Command Q to close;  Tried Adobe Reader Tool Bar but closing is grayed out;  I'ved held the power button for hard close, but everytime I try to open a .pdf I get this message: 
    There was an error opening this document. Acrobat cannot open this file because a task is still active in Acrobat.
    I'm not extremely technical, but I can follow directions if someone can help!
    Thanks

    Looks like it got stuck.
    You can switch to another program or the Finder (click on desktop) and Apple menu > Force Quit > Adobe
    You can press and hold the power button, it's a emergency force shutdown which you can boot normally and it should be fine.

Maybe you are looking for