DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom dataplugin that sorts line types into groups

Solved!
Go to solution

I need to create a summary report in Diadem. I am being supplied the raw data from another person. The data is organized by time. There are essentially 3 different line types that contain completely different data. What I would like to do is to separate the line types into 3 groups then have the accompanying data channels located in their respective groups. I would like to put the data found in the first 20 or so line in as properties of the root if possible. I understand that this is a large undertaking, any assistance would be very useful thanks.

 

Attached is the raw data and a diagram of the groups and channels (kind of what I'm looking for)

 

I'm being asked by my boss to do some work that is signifcantly beyond my programing abilities (which are limited). So help me. Please. Thank You. 

0 Kudos
Message 1 of 8
(4,158 Views)

Hi adevins76,

 

Please take a look at this Developer Zone: http://zone.ni.com/devzone/cda/tut/p/id/4065.  This will provide more information on DataPlugins.  Also, there is a link here to request a custom DataPlugin be written for you.

 

Cheers, 

0 Kudos
Message 2 of 8
(4,128 Views)

Hi adevins76,

 

Here's a DataPlugin that I think does what you're asking.  You should not trust the DateTime values, though, because your file format stores the date but then only the minute and second, not the hour!  So the time values jump backwards every time they get to a "new" hour.  Still, it all seems to be broken out into the 3 Groups as you asked for.  What now?  What do you want to do with this data in DIAdem?  I'm also including in the ZIP attachment the VIEW layout I used to look at the DataPlugin results.

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

Message 3 of 8
(4,124 Views)
I talked to the person who wrote the test and gave me the data. the time does actually have the hh:mm:ss.0, but there but for some reason there is a formatting error between converting it from a .log file to a .txt file. i couldnt upload a .log file to the forum though. The same thing happened when i tried to upen the file in excel but i was able to change the file format to view the "hours"
0 Kudos
Message 4 of 8
(4,119 Views)
Try putting the original log file in a ZIP file and posting that.  You'll want the DataPlugin to recognize the *.log files then instead of *.txt files.
0 Kudos
Message 5 of 8
(4,115 Views)
I changed the dataplugin so that it would recognize the .log files. Here are 2 different examples of the output data. Thank you for your assistance
0 Kudos
Message 6 of 8
(4,112 Views)
Solution
Accepted by adevins76

Hi adevins76,

 

Actually, the *.log files you sent still are missing the hour from the date/time string.  I had forgotten to parse the [UUT_TEST_LOG] lines into Root properties, now the DataPlugin does this for both *.txt and *.log files (which encode that information differently).

 

Ask if you have further questions,

Brad Turpin

DIAdem Product Support Engineer

National Instruments

 

Message 7 of 8
(4,103 Views)
thank you so much
0 Kudos
Message 8 of 8
(4,101 Views)