LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

first acquisition very slow

Hello,

using 2 loops and cFP as target,, one for analog acqusitions and one for digital acquisition, the first execution of each loop is very slow ( in seconds!)  for each read operations.
After that first loop, the acquisitions are fast.
I have five loops and all the others loops start normally.

Is it bad to read each input seperalty ?.

Thank you
0 Kudos
Message 1 of 2
(2,325 Views)

I will give it a shot since no one replied today.  It is generally better to read the IO in a lock instead of one by one.  This condition is known as IO bound because the performance is being limited by the IO.  Assume you have 16 channels but you only need 6 of them.  It would usually be faster to read the 16 channels as a block and index out the data you need than making 6 separate reads.  I don't use cFP so speaking in general terms.

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 2
(2,308 Views)