DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Read TDM-files with NI's "TDM C DLL" does not work.

Solved!
Go to solution

Hi,

this is not really a DASYLab-question, but i don't know where to post this:

 

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

 

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

 

The (attached) code is compiled without any errors in Visual Studio 2010.

 

When i start the executable an error is displayed (see attached image).

 

 

What is the problem?!

 

 

 

 

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
Download All
0 Kudos
Message 1 of 6
(8,722 Views)

Try Diadem... 

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 6
(8,706 Views)

Reading the TDM file in Diadem works flawless, but this insight does not help me: I am researching ways to use TDM data as input for DASYLab. So, i need to understand why the NI provided source and dll is unable to read a data file, that was created by an NI software... 😉

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
0 Kudos
Message 3 of 6
(8,696 Views)

Haven't had time to run your code, but maybe the first group having no channels might cause the problem.

Message 4 of 6
(8,678 Views)
Solution
Accepted by topic author hw70

Yes the reason for the error is the first group having no channel.

I have modified the example to read your tdm file without errors. Please have a look to the attached file.

Message 5 of 6
(8,657 Views)

Danke! Works like a charm.

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
0 Kudos
Message 6 of 6
(8,640 Views)