DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Produced Dat file and DIADem

Hello,
I'm having trouble importing my dat file created with CVI to convert the data to DIADem data. So no data, no spectrum. It should be able to convert pretty easily, I would think, simply because they plot correctly in the CVI program. I'm just not entirely sure how to do it. I can convert the data to a csv file which imports just fine, but it is a linear set of values, not x and y values like are needed. Anyone have any insight on the situation?
0 Kudos
Message 1 of 7
(4,122 Views)
Could you please describe how you write the dat file ? Which functions do you use ?
Is it possible to get an example dat-file ?

Andreas
0 Kudos
Message 2 of 7
(4,114 Views)
Well, the data is sort of a hybrid. The first part is simple ASCII while the other is binary data. There's a tag in the ASCII data that specifies whether or not its 16-bit binary data or 32-bit. With this said, im not sure how to work that into DIADem. If that doesn't help, I'll trudge through some CVI code and get the commands used for file write.
0 Kudos
Message 3 of 7
(4,106 Views)
Sounds like something you could read with a DataPlugin. Do you see any chance to provide an example file and a brief documentation describing the file format ?

Andreas
0 Kudos
Message 4 of 7
(4,103 Views)
Ok, here we go. I'm posting two files. One that's a float, and one that's an int. You can check by opening it up in Wordpad and searching for "Storage Type:". It'll tell you what type it is from there, but it is labeled by type as well to avoid any confusion. Everything after the ASCII is the data.
0 Kudos
Message 5 of 7
(4,099 Views)
Thanks for sending the file. I looked into it and I would guess that the "Data Parameters" section tells me something about the contents of the binary data. Here are my guesses:

Data Points: 524288 => tells me how many data points are in the binary part of the file.
Storage Type: int => tells me the data type
Voltage Scale: 0.0000305176 => Scaling from raw data to voltage


Here is what I couldn't find:

Is there an offset which should apply to the raw data? Typically there is a conversion formula like: Voltage value = raw * Scale + Offset

How many signals are stored in the binary part and where could I get the signal names from?

Assuming there is more than one signal, what is the layout? All values from the first channel, then all values from the second and so on or is it (1. value, 1. channel),(1. value, 2. channel)

Once I have this information, I should be able to provide the plugin

Andreas
0 Kudos
Message 6 of 7
(4,097 Views)

Hi fishel,

I was checking the posts I did and found this one still kind of open. Is there anything else I can do to help ? Did you've been able to load the files ?

Andreas

0 Kudos
Message 7 of 7
(4,032 Views)