DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I write code in vb6 to export data to a .tdm file?

I'm trying to figure out how to export data directly to a .tdm file using vb6 code.  Do I need to create data in another format and then import to .tdm?
0 Kudos
Message 1 of 4
(4,739 Views)
Hi Carlos,

TDM files are a standard that National Instruments created, and so there really is no functionality in Microsoft's Visual Basic to write to that file format.
The only feasible way I can think of would be to create a DLL from LabVIEW that uses the Data Storage VIs, which you can then call from your VB6 application.

Are you looking to take data acquired from VB 6 and bring it into DIAdem? If so, then for just about any format you write to from VB 6 ... with the use of a Dataplugin in DIAdem you can import the data in the TDM format Groups and Channels.

For more information on DataPlugins with DIAdem, check out DataPlugins website. This lists a good number of DataPlugins already in existence for DIAdem. You can, however, write your own should you have a format not already supported.

Hope this helps Carlos, have a good one!
Dan Weiland
0 Kudos
Message 2 of 4
(4,729 Views)

Hi Carlos,

If you want to take LabVIEW out of the loop, you can create a TDM Header file for an existing binary file you write in VB by using the TDM Header Writer DLL, which you can find (fully documented) at the following link:

http://zone.ni.com/devzone/conceptd.nsf/webmain/AE11F7A38E8356FD8625709900505D72

Brad Turpin
DIAdem Product Support Engineer
National Instruments

 

 

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

Hi !

 

I can understand that VB6 seems obsolete to you, but a) it was a great tool and b) thanks to the "DAQmx C API", new devices could be run with it.

 

What is the reason that writing TDM(S) files is not a part of NI-DAQmx standard functions ?

 

In that case (I assume that) VB6 programmers could intergrate it their code...

 

Dimitri

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