DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

TDM Change Datatype

Hello,
 
1. Is it possible to choose the datatype of a channel or is it always Float64?
 
2. I generated a TDM file with the C-api and a binary file with native C. I created a Float32 and a Int32 channel in block mode. After loading and saving the data with Diadem the channels are changed to Float64 in standard mode. The standard mode is okay, because reading is faster than in block mode, but the datatype - conversion doubles the size of the binary data. How can I disable the conversion?
 
Thank you!
 
Christoph
0 Kudos
Message 1 of 2
(3,469 Views)

Hi Christoph,

For TDM files this is only possible with DIAdem 10.1, just released a few weeks ago.  With all previous versions of DIAdem only TDM files with a TDX consisting of DBL channels is saved.  If instead you save as a DAT file, you can specify the exact binary footprint, but then you lose all of your custom properties and channel grouping.

With DIAdem 10.1, if you load channels that were stored as something other than DBLs, don't change them at all, and simply save these channels back to a new TDM file, DIAdem will automatically remember the original data type and save the data back in that same (non-DBL) data type.  If you do change the data, or if you create new channels, you can still force a data type change with the new ChnQuantize() function in DIAdem 10.1, which enables you to influence the target binary data type that DIAdem remembers for that channel.  This function also enables you to see a preview of what that channel will look like in the target data type.

Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 2
(3,448 Views)