From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-14-2017 10:33 AM
@FraBaggio1 wrote:
So the problem is that I am generating more samples than the host buffer (that is in my case1Msamples=2^20). Is it right?
Correct.
02-15-2017 04:52 AM
Thank you Crossrulz,
I have another question. If I wanted the host buffer to be greater than 2^20 (that is the Excel limit) could I save data without passing from saving into excel?
Regards
Francesco
02-15-2017 05:28 AM
FraBaggio1 wrote:
If I wanted the host buffer to be greater than 2^20 (that is the Excel limit) could I save data without passing from saving into excel?
You are doing that now. The Write To Delimited File does not involve Excel. It writes a text file.
02-15-2017 05:33 AM
Ok, but if I set the host buffer at 1.6 Msamples it gives me an error. So I think that there is a limit in "Write To Delimited File" or not?
02-15-2017 07:34 AM
Probably an Out Of Memory error.
You might want to look into using a Producer/Consumer setup so that you can log in parallel and write smaller chunks to the file.
02-15-2017 08:54 AM
I saw the NI example, but I don't understand where to save data. In the consumer loop with a delimited spreadsheet?
Thank you
02-15-2017 09:09 AM
My recommendation is to look inside of the Write Delimited Spreadsheet and see how it works. So for the consumer, open the file before the loop and close it after the loop. Inside of the loop, use Array To Spreadsheet String for format your data and then Write To Text File to write it to the file.
02-16-2017 03:25 AM
And so, what would be the advantages of using a producer/consumer loop? This way I could store more data because data is written in small chunks?
02-16-2017 04:02 AM
The writing in smaller chunks is a bid advantage. The other is that the logging can happen in parallel with the acquisition.
02-16-2017 04:50 AM
And how can I decide the chunk size?