LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store samplerate in tdm format with dll?

Hello,

 

I'm writing a tdm export using the tdm library for generating the tdm header. Binary data (i16) is already in a seperate file and defining the (block-)channels in tdm file works fine. But how or where do I describe time information (sampleclock) for that measurement. All channels have same samplerate.

 

Thanks

Christian

0 Kudos
Message 1 of 4
(3,297 Views)

Hello Christian,

 

please post your development system and the version so that i am able to help you in this case.

If you generate the tdm file in lavbiew please take a look at the example finder and search for the "tdm".

Use the Write TDM File.vi to generate a tdm file.

You are able to define a new input in the write data express vi (like sample clock).

 

Kind regards,

 

Elmar

Message 2 of 4
(3,269 Views)

Hi Elmar,

 

thanks for your answer. I do not work with labview, so maybe I'm wrong in this group. I develop with Delphi and/or Visual Studio. To generate the TDM header for already stored binary data I use the NI TDM DLL (niTDMHW1_0.dll). Everything works fine, my channel definitions are interpreted correct and data is shown correct (e.g. in DIadem). But as there is only channeldata (=measurement values) in the binary file, I've to add a "timebase" or a definition for sampleclock etc.

 

In the examples for NI TDM DLL I found how to add timebase for DIadem with tdmwCreateImplicitChannels, is that the common way to setup the time relation with measurement data?

 

Thanks in advance

Cheers 

Christian 

0 Kudos
Message 3 of 4
(3,261 Views)

Hello Christian,

 

i talked with the developer in aachen about your request.

And yes this is the common way in this case to produce such a header.

 

Kind regards,

 

Elmar

0 Kudos
Message 4 of 4
(3,233 Views)