TDMS DLL

Hello

I'm reading a TDMS file in a Visual Studio C++ 2005 program.  I downloaded the http://ni.intellisurvey.com/run/2007codelicenseagree DLL and attempted to run the sample program: readfile.c

I got an error when you try to open the file:-6211 described as "store could not be opened."

This happens with my files and others I found on these forums.

The call to open the test program uses is marked as obsolete in the header, so I changed it to use the new open call DDC_OpenFileEx() but got the same results.  I also tried to vary the arguments passing null, "TDMS" or "CT" for the type of file or from 0 / 1 for the readOnly flag without success.

In my view, that I use the DLL correctly as calls to DDC_GetLibraryErrorDescription() work.

I found that this problem has been reported on these forums before but did not have a solution:

http://forums.NI.com/NI/board/message?board.ID=170&message.ID=286903&query.ID=86898#M286903

Any ideas?

I try to get the test program that came with the DLL to work.  I use Visual Studio C++ 2005 and didn't have to change a little so that it can work.

This DLL works with Visual Studio 2005?  If someone got it works with Visual Studio 2005?

Maybe there is something that I have configured incorrectly?  I don't know what it could be like this seems to call the DLL routines.  Maybe it's something to do with my environment?  I tried this on three different machines - all currently running Windows XP.

I tried to reach my project, but it was too big.  What is the size limit here?  Is there somewhere else I could post it?

Once again

I do not know this bed the .tdms file program: it generates a valid .tdms_index (but returns zero for the file handle and the code of error-6211)
I'm sure I'm setting up the open command with the correct file type - if I use "TDMS" generates a .tdms_index, if I use 'TDM' it generates a testdms.tdms.log with describing an exception and if I switch to something else I get an invalid argument error.

Pointing correctly to testtdms.tdms the output is:

Error: The storage could not be opened.
End of the program, press the Enter key to exit

I have advanced and attached the source code of the program updated the test.

Tags: NI Software

Similar Questions

  • TDMS.dll error loading file in tiara

    I'm trying to load a TDMS file written in LabVIEW 2010 in DIAdem 2010, but the error attached indicating an ACCESS VIOLATION in tdms.dll.

    I have several machines that this file loads into DIAdem 2010 of course, but of course on what I need to work was the only one that it does not work on.

    The machine in question is a 'new' installation of Windows XPSP3 with one minimum of other stuff installed (it's a Dell Optiplex GX620, if this themes).  As mentioned, the file load fine on several other machines with DIAdem 2010 on it.  It works very well on the machines run Windows XPSP3, XPSP4 and Win7 (all Dell machines).  I have attached a list of applications installed on the PC in question.

    Anyone have any ideas?  There are programs that are not compatible with DIAdem?  Are there any installers that DIAdem (or tdms.dll in particular) that depend on must be installed also?

    I copied the newer DLL on the machine that did not work, and that seems to have solved the problem.

    2010f2 LabVIEW installs a newer version of the DLL that DIAdem 2010 don't?

  • Read error-getdatatype TDMS

    Brief history on my project.  I have a PXI system configuration to read signals from DSA devices, Series S, and an encoder.  I use matlab to make calls to functions in libraries NI DAQmx and nilibddc.h.  I collect the data and the flow of data on the disk with the ability to view data during the acquisition.  Acquisition occurs for almost a minute plus 37 channels to 100ksamp/sec.  So the. TDMS files are quite large.  I synchronize my systems by some sort of configuration of the hybrid master slave device.  I use auto-sync in all types of similar devices, and to synchronize the different types of devices, I use the sample clock and start to trigger a DSA device to synchronize my other devices.  Since I use the automatic synchronization of the. TDMS files can have anywhere between 1 or 20 channels in a single file.  This makes a very large file and Microsoft Excel import does not cut because of the limitation on the size and the time it takes to load.  So I use the nilibddc.dll to read data from files which seems to be fairly smooth so far. I did not attempt to read a file with a minute of a data value but the worst case I can read the data file chunks at a time so I'm not terribly worried about it.  My problem occurs when I read my file data .tdms containing my encoder data.

    The part where it inhibits is is my function calling for DDC_GetDataType.  Now when I use my code to read data from the analog .tdms file it works well and does what I want it.  The error I get for my counter of the signals is an error unexpectedly (-6204.)  Now what is interesting is when I use labview 2009 on another computer, I can read the files without a problem.  I'm guessing that my labview 2009 uses different libraries however.  For example, when I read the file in labview, I go to the range of functions, choose file/o, PDM in streaming and use either read the .tdms or PDM Viewer function.  When I'm on my main computer, I use a call to the DIAdem connectivity library, that I downloaded from OR. Microsoft excel importer also seems to be hung in the same place (getdatatype).  I found this to inspect the log file, it creates when I try to read it.  Any help would be appreciated.  I have attached the error log I get the .tdms microsoft importer.  I've also attached a sample file .tdms with the position of encoder in it data.  If trying to open outside of labview, don't be fooled if she tells you that there is no data available.  It is, by using labview 2009, you can read all the 500ksamps without problem.  Using PDM viewer or reading tdms atleast.  Thank you.

    Hello-

    I wanted to preface what follows with the fact that I assume that you are using the TDM C DLL downloaded here.  If this is the case, the following should solve things for you - if not, please let me know where you got the ddc library of.

    Unfortunately, the TDMS dll which is downloaded from the link above is a little outdated and contains the bug you reported.  I created an internal action query to update the download with the version the most recent available to us.  In the meantime, I have attached the tdms dll needed to solve the problem for you.  You should not use the attached dll to replace the dll in ".\Dominonilibddc\dev\bin\\tdms_ebd.dll".

    A potential problem here is if you use the merge modules included to redistribute your product.  If you are, we will need to get some updated modules as well merge - please let me know if this is the case for you and what is the level of urgency.

    Please let me know if this does resolve the problem for you.

    Thank you-

    NickB

    National Instruments

  • NationalInstruments.Tdms

    I am using PDM library and have included the following following the example of code

    using NationalInstruments.Tdms;

    I get the following compilation error

    The name of the namespace or type "PDM" does not exist in the namespace ' NationalInstruments

    I have it!

    See my previous posts for links to aid in the creation of the license file for your project, by adding to your project, how to structure the entry for the PDM Licensor and how to find which version of the NationalInstruments.Tdms.dll you are using.

    For the public key token, find sn.exe on your computer.  It's probably somewhere like C:\Program Files (x 86) \Microsoft SDKs\Windows\v7.0a\Bin\x64\sn.exe, although I had to delve into the \Microsoft SDKs\Windows directory to find exactly where it was.  (I found mine under v8.0, even if I'm running Windows 7...  Whatever.)  Once you have found it, open a command prompt window and navigate to the directory where you found sn.exe.  Then, run this command:

    SN - Tp

    Don't forget to put the path in quotes.  This command should spit in return a number of things, one of which is the public key token.

    I have some problems in my program that requires debugging, but this seems to have solved the problem "without a permit' for me, at least.  Hope you also helps.

  • TDMS Version

    Hello

    I use the function import PDM with Measurement Studio 8.6. Now, I received a customer a PDM file. But I got an error when I want to load it. After that audit I discovered what was generated with Diadem 11.1. Of course the old version of DIAdem and other plugin could not read files. In Diadem I could not save it to the old format.

    There is no license check when I'm using TDMS. When can I import the new format with Measurement Studio?

    Best regards

    Andreas Lindenthal

    Andreas-

    There are two broad approaches:

    1. Use the MStudio Project Wizard to create a project in VS2005 and copy the .licx file (or relevant content) in your VS2008 project.
    2. Manually create the .licx for PDM file entry
      1. Follow the instructions in the help topic MStudio licenses without integrated tools measure the Studio .NET class libraries (the Studio help OR measure > .NET OR Measurement Studio class library > using libraries .NET class Measurement Studio > .NET class libraries Licensing > Licensing without integrated tools .NET class libraries) to create a .licx for your project file.
      2. This help topic is missing the entry for TDMS .licx (I'll file a bug report to fix this in a future version of MStudio). The information you need is: NationalInstruments.Tdms.TdmsLicenser, NationalInstruments.Tdms, Version =A.B.C.D, Culture = neutral, PublicKeyToken is 4544464cdeaab541
      3. Replace A.B.C.D, above the specific version of the Assembly that you are using.
        1. To determine the specific version of the Assembly that you use, go to the directory DotNET\Assemblies\Current under the MStudio for VS2005 (generally C:\Program NIUninstaller Instruments\MeasurementStudioVS2005\DotNET\Assemblies\Current) installation directory.
        2. Examine the properties of the NationalInstruments.Tdms.dll file and find the Version of the file property. It is the version you need.

    Of course, it seems that we should facilitate this. I'll file a bug report to see if we can generate and install a .licx including the correct information. Then we could reference to this help topic .licx file.

    David Rohacek

    National Instruments

  • Internal error of screw, PDM file storage

    I use LabView 8.5.1, DAQmx 9.0.2. and a module OR USB6216.

    I have set up on my request a task as follows: 15 channels activated with a sampling rate of 1sample/10 s (very slow). My purchase has to work for a few days or more.

    Sometimes, I get the error "Internal storage screw" (code - 2500). so I can't read my file TDMS (see attached file) and I can't deal with my data.

    You know the exact meaning of this error on the case of a PDM file. Yo have a solution to process my data?

    Best regards, Daniel.

    This tdms.dll was released with LabVIEW 2010. TDMS.dll is backwards compatible, it means that you can still use this dll with LV 8.5.

    You can right-click on tdms.dll and choose "details" to see the version.

  • TDMS C DLL error 6210 file is read only

    I try to use VS2015 to extract the data from the TDMS files, but I get this error when I try to open the file.

    6210DDC_CannotWriteToReadOnlyFileThe file forwarded to the library is read only and cannot be changed.

    This happens in both DDC_OpenFile and DDC_OpenFileEx.

    ddcChk (DDC_OpenFileEx (false \\server\share\file_path, "TDMS", &file));))

    ddcChk (DDC_OpenFileEx (file_path, "TDMS", true, &file));))

    ddcChk (DDC_OpenFileEx (file_path, "TDMS", 0, &file));))

    ddcChk (DDC_OpenFileEx (file_path, "TDMS", 1, &file));))

    ddcChk (DDC_OpenFile (file_path, "TDMS", &file));))

    Is it possible to open only read files in VS or modify access VS before opening?

    The previous reviews were correct, using an old dll package does not work. For anyone who seeks the solution or how to configure tdms c dll in visual (VS 2015 here, Win32) studios:

    (1) take the new dll c since the above comment.

    (2) make a new empty win32 application project.

    (2) move the contents of \c_dll_tdm\TDM C DLL\dev\bin\32-bit in the working directory

    (3) move the \c_dll_tdm\TDM C DLL\dev\include file in the working directory

    (4) move the \c_dll_tdm\TDM C DLL\dev\lib file in the working directory

    (5) content move/copy the code \c_dll_tdm\TDM C DLL\samples\readFile.c in your working directory/source file. (The variable length must be replaced by an unsigned int so that it works with c ++).

    (5) follow these instuctions here to include your working directory (step 7 +). Add the working directory to your source file properties, but the addition of the library to the project properties

    Has it done for me I can successfully open the TDMS files. Thank you for the help and a link to the new DLL! I hope this can help some people who are also new to VS.

  • How to read/write tdms 2.0 files with the TDM C DLL?

    Hello

    How to read/write tdms 2.0 files with the TDM C DLL?

    How consequently the datas in interlaced with the TDM C DLL mode?

    Thank you

    Confirmation: TDM C DLL always wrote the file in TDMS version 2.0.

  • How to write data in mode intertwined with TDMS C DLL 2.0?

    Hello

    How to write data in mode intertwined with TDMS C DLL 2.0?

    I use DAQmx features in Visual Studio C++ without Measurment Studio.

    This function returns the data in interlaced mode.

    How can I configure the functions of DLL C TDMS to store this data in the tdms files?

    I see that it is not possible with the PDM version 2.0 with 1.0.

    Thank you

    -TDM C Dll is not able to do

    -TDM header writer may be usable for this but is not able to be used for tdms files.

  • With the help of C TDMS API DLL


    CT: 2 file format. XML header (*.tdm) + queue (*.tdx) binary

    PDM: 1 file format (*.tdms) + optional index file that is recreated if deleted.

    You also copied the DataModles file or only DLLs?

    You can run the examples included?

    Greetings

    Andreas

  • nilibddc dll: opening files tdms with the corrupt index files

    Hello

    I have a question about the error handling when using the nilibddc.dll.

    I want to use nilibddc.dll to open the .tdms file. At the time I experimented with some error cases and got stuck in a case:

    When I try to open a file with a corrupted file .tdms_index .tdms I get code error-6211 (DDC_StorageCouldNotBeOpened).

    The file .tdms_index is corrupted due to errors during the copy of the file.

    The problem I've noticed is that I have a lock on the corrupted file .tdms_index file after DDC_OpenFile (...) (I can rename it, but I can't delete the file!).

    As you can see in the code snippet - it is not really special...

    int ddcError = 0, length;
    DDCFileHandle file = 0;

    ddcError = DDC_OpenFile (file_path, NULL, &file);)

    Here, I get ddcError is-6211
    If (ddcError == 0)
    {
    do something with the file...

    ddcError = DDC_CloseFile (leader);

    If (ddcError == 0)
    {
    < "no="" error="" -="" everything="" done"=""><>
    }
    }

    System ("pause");

    I miss something here? Should I use DDC_FreeMemory in somehow to free open handles?

    I also tried to use the DDC_OpenFileEx (...) with readOnly set to true. But that doesn't change anything!

    Thanks in advance for the help,

    Daniel

    You are right. The sample file you attached to your message causes an access violation. If no normal flow program and apllication in undefined state.

    I will direct the file to developers. I tried to generate a file that causes the same by beating some index files, but has failed to create one on my own. It happened to your site more than once?

    What can we do?

    In the first place, simply copy the PDM. The index file will be recreated when the file is accessed. What is lost when the index file is not copied, therefore the time required to create the index file by scanning once the PDM file.

    I hope this helps a little

    Andreas

  • Reading TDM-"TDM C DLL" files to OR does not.

    Hello

    This isn't really a question of DASYLab, but I don't know where to post this:

    I want to read a file TDM using CT C - DLL provided on this page OR: http://digital.ni.com/public.nsf/allkb/A3663DE39D6A2C5A86257204005C11CA

    The sample data file created with DASYLab 12 (see attachments).

    (Attached) code is compiled without errors in Visual Studio 2010.

    When I run the executable, that an error is posted (see attached image).

    What is the problem?

    Yes, the reason for the error is the first group with no channel.

    I changed the example to read your file tdm without errors. Please take a look at the attachment.

  • TDMS C DLL can be used in a VB project?

    Hello

    We have a project in vb using position information stored in an excel file.

    Now, we want to use these data as well as information contained in a PDM file.

    I tried using the TDM C DLL provided in http://ni.intellisurvey.com/run/2007codelicenseagree, vain.

    When I try to add the reference to the .dll, this error pops up:

    «Cannot add the reference to "/ filepath/nilibdcc.dll.»» "Make sure you can access the component or it is a COM component validates.

    (The message is a translation from Spanish)

    What I am doing wrong? It is possible to use it?

    Thank you

    Hi Tomacco,

    CT-C-DLL is designed to access the files of TDM (S) using C.

    Otherwise, it is possible to access the VB dll. Please refer to this article: http://support.microsoft.com/kb/106553. But I tried to havn't CT-C-DLL.

    Another option is to use Measurement Studio , if you want to access TDMS of in VB.

    Stefan

  • Collage error: runtime error. Error: access violation, address of the error: 0000 P 280, the Module name: GFSData.DLL

    Hello to all on the forum,

    I am running DIAdem 2015 (15.0.0f6005) on a Windows 7 Pro SP1 i3 4 GB RAM machine.

    I want to evaluate a test. Data are expressed as 25 .txt files. I need to plot, one of the values on the whole test time. I tried to combine the data from all 25 in one file .tdm .txt files. I came far enough until I met my problem. After gathering around 15 .txt files in a .tdm, tiara doesn't let me continue. It gives this error message (in German, I'll translate as good as possible):

    "When executing command 'DataBlClpPaste('1-52',1859122,0)' a rumtime error has occurred.

    Error: ACCESS VIOLATION

    Address of the error: 0000 P 280

    "Name of the module: FGSData.DLL.

    I will describe my procedure in which this happened:

    -Open the .txt with plugin I had created the first import

    -Ribbon with two windows view channel: have the target in a secondary window group, drag the newly imported from .txt in the other channels

    -In the secondary window with new data, select the lines I want to add to the data target group by clicking on the first line, then scroll to the last row and shift-select that. CTRL + c to copy the data

    -In the target group, click the first empty line, and then ctrl + v to paste data here

    After the last step, instead of pasting the new data in the target dataset, the above message error. I can't do anything, but click on 'ok '. After ok, the program window will not respond to any click except for switching between Navigator / View / analysis /... I have to close DIAdem, where I can always select "close and save", that works too.

    I could go a few times after reopening DIAdem, but finally, which stopped working. It now gives me the error message whenever I try to do this routine. The .tdm file is 21Mo now, the .tdx is 1.1 GB.

    I appreciate any help on this, I really would prefer combining data using DIAdem on trying to copy and paste around 1 GB of data .txt into one giant .txt file. It takes very long to not even open a .txt of 50 MB file, I fear this would be a messy process.

    Best regards

    Simon

    If you are using DIAdem 2015, there is a new entry in context menu where you can select Add.

    Maybe it helps.

    The help of DIAdem 2015:

    Adding data


    Adding data to merge similar series ratings data in order to deal with them. In the process, DIAdem adds the data to load for existing channels with the same name in the data portal instead of storing data in new channels. Perform the following steps to add the external data area data channels in the data portal:

    1. Open the NAVIGATOR tiara.


    2. Select remove internal data to delete the data in the data portal.


    3. Find the Demo1.tdm file in the file browser.


    4. Drag and drop the file in the data portal.


    5. Select the Demo2.tdm file in the file browser.


    6. Open the context menu of the file and select Add data.


    Tiara adds the data in channels that have the same name in the data portal. In the properties of the Data Portal window, you can see that the number of values in the channels has doubled.

  • Problem with the Excel add-in-TDM

    Hi-

    I used the ExcelTDM snap-in on other machines w / no problem, but I tried downloading it on a new computer (w / office 2003, Vista) & the icons do not appear in excel.

    I tried to follow the instructions on this page: http://zone.ni.com/devzone/cda/tut/p/id/5874

    I am stuck at step #3 b/c the ExcelTDM.dll file isn't the case on the computer.  Is it possible that the add-in is not download correctly?  I tried uninstalling and reinstalling the add-in twice now, with the same results.

    Any halp would be appreciated!  Thank you!!!

    Erin

    Hi ErinH,

    We want to confirm that you get the latest installer from the web download of the first http://zone.ni.com/devzone/cda/epd/p/id/2944 .

    Then, you will notice at the bottom of the download page there is a trick:

    After installing the TDM Excel Add-In in Microsoft Vista , you need start Microsoft Excel at least once by using administrator privileges.

    So if you use the Add-In in Vista, you can disable the UAC (User Account Control), or right-click on Excel.exe and "run as Administrator" for the first time.

    Good luck!

Maybe you are looking for

  • Specific preferences are not save

    Cookies settings are not saved. Since around August 22, 2014 my cookies settings are not be saved; After a browser restart "do not accept cookies" setting always happening to "Accept cookies from sites" and "accept third-party cookies: never". This i

  • Very close to the dumping of Mozilla Thunderbird. The slow is simply not worth the hassle and support sucks.

    I have been using Mozilla Thunderbird for many years. It has always been a good system. Now, I get so when I hit delete, it takes a minute or two to delete the e-mail message. I tried to follow all the instructions on the help system and have turned

  • Addition of autofocus and the depth to the measuring Microscope

    Hello This is my first post and I consider myself a newbie with LabView, but I hope I can get some answers.  Here it goes. I have a measuring microscope with X & Y steps thanks to the drive motors.  The Assembly of camera and the objective of the CCD

  • I need to read a variable string unsolicited series.

    Hello Mr President I need to read that a series of data means, in FRA 1250 (Solartron) when we are sweeping, the o/p is a series of data. Through RS432, it's getting (hyper terminal) but via GPIB, I can't get this data. I used Visa read. The error ha

  • PC on the USB backup

    I have a Trojan horse on my computer and I was told to backup with a USB key, put the disc on another computer and run security in this regard. Reinstall Windows and then the USB. It also backs up Quicken?