05-12-2010 03:57 PM
I discovered the add attachments, I'll try and load my vi. I hope I don't bring down the server...
Cheers,
Troy
05-12-2010 03:59 PM - edited 05-12-2010 04:04 PM
The main issue (I think) is that you are saving a 3D array into a 2D csv structure.
I would not use the 'build array' and 'transpose array' function.
Perhaps it's better to store the data with TDMS primitives inside your while loop.
you mentioned timing, but what kind of timing do you have. your while loop does not have a pause, and you are only reading one sample at a time.
Looked at your posted code, why don't you use the 'N-samples N-channels' instance from the DAQmx read?
Look at the examples there should be one for 'Continous data and storage' (or something similar.)
Ton
05-12-2010 04:23 PM
TCPlomp,
You did it! You spotted the key detail I was overlooking. I had a 3D array feeding into a 2D spreadsheet. I changed the code and now I get the data I want (without the timestamp) in the format I want. Turns out that the timestamp really isn't necessary.
I hope to follow up on the other data storage methods you mentioned. I am still at the stage (and I think it will be a long stage) where I don't know what I don't know.
Thank you for all your advice.
Cheers,
Troy
05-12-2010 04:33 PM
Thank you all! This was my second time trying the Discussion Forum and I learned more than just what I was asking. Thank you especially for the advice about posting code.
Cheers,
Troy