07-04-2016 06:24 AM
Hi,
is there a possibility to cut all channels of a tdm dataset and save the parts seperately? I've got huge datasets and want to cut all channels at specific indices. for example I want to divide a sataset into 2 parts and save all channels from index 1345-26543 and 26543-564321 as new tdm files. I thought maybe it's possible to load only parts of the files but I can't find such an option at reduced loading for example.
I'm using diadem version 14.0.1f6022 service pack 1 and datafinder version 14.0.2f5811 and would be very thankfull for your help!
Thank you in advance
07-04-2016 07:06 AM
Instead of splitting the file you can use the reduced load method.
Option Explicit dim filePath : filePath = ProgramDrv & "libr\Data\example.tdm" data.Root.Clear Call DataFileLoadRed(filePath,"TDM","","IntervalWidth",1,1,0,50) Call DataFileLoadRed(filePath,"TDM","","IntervalWidth",1,1,50,100)
So you can work on the part of the file you like to.
If you really want to split just save the content of data portal after loading.
This is also available in DIAdem file dialog:
inserting the indices in the following dialog.
07-05-2016 01:26 AM
Hi,
I find AndreasK proposition a very good one.
But in case you already have your data loaded for some reason you could alternatively copy the data to other channels using DataBlCopy for example and the just save the new channels:
Befehl: DataBlCopy - DIAdem 2012 Hilfe - National Instruments
http://zone.ni.com/reference/de-XX/help/370858K-0113/comoff/datablcopy/
Best regards,
Christoph
07-06-2016 07:30 AM
Hi,
the option in the DIAdem file dialog is for some reason not working with my data, I don't know why. But the skript is working perfectly, thank you very much for your help!
Kind regards