DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Load files to the same group

Solved!
Go to solution

Hi,

 

I'm loading *.csv files to the same group using this code:

For iloop = 1 to 9
datapath_rack = (datapath_rack_edit & "\rack" & rack_number & "\LTT0" & iloop & "\RUN_001\")
Call ASCIIConfigLoad(dataplugin_path & load_plugin)
Call ASCIILoad(datapath_rack & "0" & iloop & "_0001" & ".csv", 0)
next

But when I want to use DataFileLoad, I always get the files loaded to next groups. I want to use this command and have all the files loaded to group number 1. Do you know how to do it?

 

Best regards,

Piotr

 

 

0 Kudos
Message 1 of 5
(2,895 Views)

Hi,

starting in DIAdem 2015 you can use the import action parameter of DataFileLoad like this (files must have the same structure):

Call DataFileLoad("File1.tdm","TDM","Load")
Call DataFileLoad("File2.tdm","TDM","Append")

Regards

Christian
CLA, CTA, CLED
0 Kudos
Message 2 of 5
(2,884 Views)

Hi,

 

thanks for reply. I'm using DIAdem 2012, so is there any solution for that version?

0 Kudos
Message 3 of 5
(2,860 Views)
Solution
Accepted by topic author PS_NXP

Hi,

In DIAdem 2012 there is an example that you can execute to register a channel concatenate function in analysis module:

Help --> Examples --> Examples category --> Mathematics --> "User-Defined Evaluations in DIAdem ANALYSIS"

After executing it you will find a new function group in analysis:

1.png

Select "specify evaluations" --> "concatenate channels" and open the group again.

You will find a function dialog that you can use to concatenate channels of different groups.

You will also find source code linked in the example description.

See here for an example on how to use it in script:

<DIAdem 2012>\Examples\Documents\ChnConcatenation_Expl.vbs

 

You can also do everything manually using the DataBlAppend command.

Regards

Christian
CLA, CTA, CLED
0 Kudos
Message 4 of 5
(2,851 Views)

Thank you!

Perfect. Once I saw this function but later was not able to remind myself about it.

0 Kudos
Message 5 of 5
(2,840 Views)