DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

how separate with multifile writing and reading?

Hello,
 
I've got something like 500 ddf data files and I wanted to resample them with a lower rate. I want to get a point out of 80, and convert each file into ASC.
The program to convert each file to ASC worked well when I introduced the Separate module.
I was reading each file, with an increment of a global variable after the end of the reading of each file, so I used the Nextfile action of the Action Module to change the file the program was writing on.
When I introduced the Separate module, it introduces something like a delay (I can verify by comparing the outputs of two BlockTime modules, one at the Read output, the other at the Separate output) and when the global variable changes (end of reading of one file, going to another one), the output of the Separate module is not yet at the end of the file and then the Nextfile action is executed when it wasn't supposed to.
I know doing it one at a time, but I hope it's not gonna be necessary..
Is there any way of doing it?
I was thinking saving the moment of the file change of the Read module and compare the output of the Separate module to it (I spent already a lot of time looking for it!!) but I didn't find anything that would make that possible..
 
Thanks in advance..
0 Kudos
Message 1 of 4
(7,409 Views)
How did you configure the Separate module? By samples or blocks? If by samples, did you specify a reduced block size on the output? If it's waiting to fill the original block size, then that might be your problem.

If not, post a copy of your worksheet for us to look at.


Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 4
(7,408 Views)

Hi,

I choosed samples, and "same as input" when choosing "output block size". My Separate Module has 9 inputs and 9 outputs. I tried choosing 1 or 9 for the output block size but it didn't work neither.

I tried two worksheets, and neither of them works.

I attach their PrintScreen here..

thanks..

Download All
0 Kudos
Message 3 of 4
(7,397 Views)

Hi,

I'm attaching here the worksheets.

If you could take a look, I would really appreciate..

The "toAsc" works, I use it to convert only one output to the ASCII format without resampling.

The other two, which include the Separate Module, don't work.

Thanks..

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