-- I tried to write in Binary file also, but the values are not readable.
-- The post processing has to be done offline that is the reason for saving the data in file
-- I care about the timestamps of data when it is acquiring from the PCI card.
Initially I tried with the simplest method of directly writing the acquired data into a write vi (text, spreadsheet, tdms, binary etc) in the same loop, but the whole iteration was slowed down. Then only I implemented the Producer/Consumer Architecture.
As the record length is fixed i.e. 1000, for each iteration in the producer loop, 1000 data points are getting acquired. How should I queue those each 1000 data points to make a buffer of 10,000 points and then save?
I tried this for logging every 1000 elements but the consumer loop was slowed down and there was some data lose in saving also.