02-10-2012 03:22 PM - edited 02-10-2012 03:23 PM
Hi Guys,
I'm looking for some assistance in how to increase the logging rate of the data coming from my mass flow controller via RS232.
Can someone direct me to a tutorial on how to get more data saved per second in my "write to text" file within a while loop?
thanks
Darren
02-10-2012 04:52 PM
02-10-2012 05:02 PM
I also tried "write to measurement file" vi with exactly the same result. I don't thijnk it's the text writing part, but I'm not really sure how to say exactly since I need to log to a file to see what the logging rate ![]()
Do you have an example of making a bigger text set and writing that in a parallel loop? Are you referring to a second while loop?
Thanks
Darren
@Albert Geven wrote:
The conversion to text is a big slowdown, and also writing small texts is slower than making a bigger set and write that in a parallel loop.
02-11-2012 11:29 AM
Look at the producer consumer pattern example.
And with text I mean the conversion from binary (dbl or int) to ascii. But probably the size of the block does matter more.
Simply concatenate the strings before you write them to file. A block of about 4k is a good starting point.