DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How diadem interprets time

I have a problem with time axes in diadem. 
The data were collected with software from data logger graphitec  and sample rate 200 ms and save as csv file. 

when I import the file in diadem the software represent the data not in right format  but the following example 02/09/2026 14:14:21.9275 . which off course then introduce the error in data representation . how to solve this issue?

0 Kudos
Message 1 of 9
(2,633 Views)

To clarify the issues, I would start by attaching a typical CSV file.

0 Kudos
Message 2 of 9
(2,624 Views)

 Hello, here is the csv file. 

0 Kudos
Message 3 of 9
(2,596 Views)

Not sure how you got the timestamp ... 14:14:21.9275, but the obvious problem in your data is that date / time column and millisecond column are separated by a TAB, so they are interpreted by DIAdem as separate channels as long as you use standard import filter 'Textfile - autodetect'. The easiest way to correct this would be to replace the TAB that separates these columns by a dot. Otherwise, you either have to write your own dataplugin (as the wizard option to join two columns to one time channel doesn't work for milliseconds) or to import date / time and millisecond channel separately, divide the latter by 1000, transform it into a time channel and add both channels.

Holger Müller

DIAdem experience since 1996
Turn-key applications - Remote and on-site trainings - On-the-job training

| müller+krahmer GmbH | Koenitzer Straße 14, 07338 Kaulsdorf / Germany |
| Phone: +49 36733 / 2328 - 6 | Mobile: +49 160 / 287 7294 |
| Email: mueller@mueller-krahmer.de | Web: www.mueller-krahmer.de |
0 Kudos
Message 4 of 9
(2,540 Views)

Hi, 

 

I have tried this option .
 "The easiest way to correct this would be to replace the TAB that separates these columns by a dot"

but he didn't recognize the data with this option . I have attached two different files i.e when column separator was tab and when column separator was set to dot. 

Download All
0 Kudos
Message 5 of 9
(2,527 Views)

I can't tell from the images what you have changed in the data. However, it looks to me as if you have replaced all tabs with dots. Of course, this should only be done for one column, i.e., the editor used for this must allow individual areas to be selected and the change to be made only there (see image csv with dot.png). The imported file then looks like the image imported data.png.

Holger Müller

DIAdem experience since 1996
Turn-key applications - Remote and on-site trainings - On-the-job training

| müller+krahmer GmbH | Koenitzer Straße 14, 07338 Kaulsdorf / Germany |
| Phone: +49 36733 / 2328 - 6 | Mobile: +49 160 / 287 7294 |
| Email: mueller@mueller-krahmer.de | Web: www.mueller-krahmer.de |
0 Kudos
Message 6 of 9
(2,462 Views)

Seems attaching files didn't work - try to share them in a different way:

csv with dot.pngimported data.png

Holger Müller

DIAdem experience since 1996
Turn-key applications - Remote and on-site trainings - On-the-job training

| müller+krahmer GmbH | Koenitzer Straße 14, 07338 Kaulsdorf / Germany |
| Phone: +49 36733 / 2328 - 6 | Mobile: +49 160 / 287 7294 |
| Email: mueller@mueller-krahmer.de | Web: www.mueller-krahmer.de |
0 Kudos
Message 7 of 9
(2,459 Views)

I already changed the TABs between each dataset to dots. Unfortunately it can interpret it only as a time if I delete the milliseconds manually in the original dataset. As soon as I add the miliseconds it does not interpret it as a timestamp anymore and therefore cannot produce a readable diagram. In the global settings of diadem it suggests that miliseconds are supported. But it seems like that this is not the case.

 

Any suggestions?

Visual Proove.png

 

0 Kudos
Message 8 of 9
(2,387 Views)

Hi MajaSz,

 

I think your best bet is a custom DataPlugin to read your CSV file.  It's no problem for a custom DataPlugin to put 2 columns together with a ProcessedChannel, and the DataPlugin datetime formatter definitely supports milliseconds.

 

I grabbed the existing "Graphtec_CSV" DataPlugin and edited it to work for either "," or TAB delimiters.  It seems to load your file nicely now.  You'll want to remove all your CSV reading DataPlugins, then double-click the *.uri file of this new DataPlugin to register it.

 

Brad Turpin

Principal Technical Support Engineer

NI / Emerson

0 Kudos
Message 9 of 9
(2,352 Views)