10-23-2006 01:33 AM
10-31-2006 10:45 AM
11-01-2006 02:56 PM
Hi Guys,
I am not familiar with the import plugin technology that Igor Pro offers. Would a C API that reads and writes TDM files help, or is the interface something completely different?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-02-2006 08:37 AM
well, I got IGOR to read the TDM file, but the problem is that I have 5 signals. Those 5 signals have different number of samples. When I read it back in Labview, it knows the delimiter that seperates each signal. IGOR doesnt. I can get the results but can't get the signals seperated correctly...
Thanks,
Travis
11-03-2006 01:05 AM
Hello Travis,
It sounds very interessing that you could load data into Igor! At present I have no opportunity to get my data into the program.
Please tell me however you can load data into Igor Pro.
Thanks & best regards, Dominik
|
11-03-2006 08:41 AM
Hi Travis,
I'm afraid I'm not making any sense out of your statements. You say that Igor can read the values in from your TDM file, but that it doesn't recognize the delimiters correctly like LabVIEW does, resulting in values from the 5 channels being mapped into 1 large channel. This would make sense if you were talking about an ASCII file, but TDM files don't have delimiters! Are you perhaps reading an ASCII file into LabVIEW and then outputting it to TDM?
Please help me to understand your situation,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-06-2006 11:05 AM - edited 11-06-2006 11:05 AM
Message Edited by guilio_2000 on 11-06-2006 11:10 AM
11-07-2006 09:30 AM
Hi Domink,
You can look near the top of your TDM file to see what the binary blocks are like for each channel (start byte, data type, byte order). My guess is that each channel's values are stored in a contiguous block that contains that channel only, so you'd have something like:
11-08-2006 10:20 AM
11-09-2006 08:25 AM
Hi Travis,
LabVIEW handles this automatically by reading the information in the TDM file that describes where each channel starts and stops, it's data type, byte order, etc. I am unfamiliar with Igor's binary file import options, but I'm guessing that it's an import engine that you parametrize. If so, it may or may not have provisions for data like this which is stored end-to-end, since interleaved channel storage is more common. If instead Igor has some way to programmatically load binary data, then you would be able to use those functions to move the file cursor to the correct start position of each channel.
If the direct binary import turns out to be a dead end, then you might try converting the TDM file to an ASCII file and loading the ASCII file into Igor. Most programs have better ASCII file support than binary support. It would be much slower, of course, but at least you would have a workaround while you try to pry an answer out of Igor's support/documentation.
You can load TDM files directly into Excel if you have downloaded the TDM Excel Add-in from:
http://zone.ni.com/devzone/cda/tut/p/id/4906
If you have access to either LabVIEW or DIAdem, then they could each convert the TDM file to an ASCII file. LabVIEW and DIAdem can also read TDM files natively and preform most of the same tasks as Igor. You could download a 30 day evaluation copy of DIAdem from:
www.ni.com/diadem
Brad Turpin
DIAdem Product Support Engineer
National Instruments