Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

faster logging rate RS232

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

Download All
0 Kudos
Message 1 of 4
(3,177 Views)

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.

greetings from the Netherlands
0 Kudos
Message 2 of 4
(3,172 Views)

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 Smiley Very Happy

 

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.




0 Kudos
Message 3 of 4
(3,171 Views)

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.

greetings from the Netherlands
0 Kudos
Message 4 of 4
(3,160 Views)