foolooo
2008-08-06 11:40:09 UTC
Hi all,
I'm doing multiple channels DO, AO and AI. I want this DAQ programme run continuously at 100K S/s. After I acquire the data I want to write them into a file. But rather than write the whole data block, I would like to write only some of them. A digital wavefrom is generated to determine which part of the data block is to be written, in which high stands for writting and low for not to write. I used a queue to store the acquired data, and I want to do the "filtering" things in the dequeue part so that it won't slow down the acquistion. I think there may be 2 ways to do that, by controlling the enable state of writting fuction or extract a subset of the data block. For the second manner, I need to extract several subsets from a single array (data block), I don't know how to do that. Could any one give me some advice? Or, is there some other way to implement the "segmental writting"? Thank you all.
Best wishes
Bo
I'm doing multiple channels DO, AO and AI. I want this DAQ programme run continuously at 100K S/s. After I acquire the data I want to write them into a file. But rather than write the whole data block, I would like to write only some of them. A digital wavefrom is generated to determine which part of the data block is to be written, in which high stands for writting and low for not to write. I used a queue to store the acquired data, and I want to do the "filtering" things in the dequeue part so that it won't slow down the acquistion. I think there may be 2 ways to do that, by controlling the enable state of writting fuction or extract a subset of the data block. For the second manner, I need to extract several subsets from a single array (data block), I don't know how to do that. Could any one give me some advice? Or, is there some other way to implement the "segmental writting"? Thank you all.
Best wishes
Bo