02-09-2006 11:14 AM
02-10-2006 04:38 AM
I'm not sure what your binary file looks like, but have you looked at the DataPlugins? (www.ni.com/dataplugins) Basically you can write your own import filter in VBS. If you download the help, look at "Example 3". It explains how to import channels from a binary file.
Myrle
02-10-2006 09:22 AM
02-10-2006 06:38 PM
Jithendra,
There are a great set of VI's called the TDM Header Writer VI's that let you turn previously created binary files into TDM files so they can be easily be imported into DIAdem. Here is a link to an excellent Application Note describing their behavior, as well as containing a link to the VI's themselves.
Introduction to the TDM Header Writer VI's
[http://zone.ni.com/devzone/conceptd.nsf/webmain/117CB3D512ED96928625707B004DC4E9]
02-11-2006 11:12 AM
hi brad,
i have attached the VI i am using. It is in Labview 6, i have Labview 7.1 and when i tried to run this VI in 7.1 it gave me some errors.
if i can run it in 7.1 then i can use the data storage VI's and save the data in TDM format.
thanks
jithendra
02-11-2006 11:16 AM
02-13-2006 07:59 AM
Hi jithendra,
Well, that IS a simple binary structure. I didn't have all the scope VIs on my computer, so I couldn't tell-- do your binary data files always have a fixed number of channels (2, perhaps)? If so, it would be absolutely trivial to create a DataPlugin for you, and I would be happy to do so. Do you save your binary data files with a consistent file extension (*.bin or something)? Then DIAdem could automatically associate that file "type" with the DataPlugin, and you could simply drag and drop your binary files into DIAdem.
Alternatively, the TDM Header Writer VIs would also be pretty easy to use to create TDM header files for your binary files-- just make sure you set the byte order property to Big-Endian, as in the examples in that AppNote.
Either approach ought to work fine,
Brad Turpin
Product Support Engineer
National Instruments