LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time Issue in Subvi

Hello,

I have a subVI that activates a DAQ, and I do it dynamically (Please see picture attached).
The problem is that the first time I run it, it takes a very long time.
Is there a way to make it faster?

 

Thanks so much in advance,

0 Kudos
Message 1 of 6
(154 Views)

Looks like you wired the 5 to the Timeout

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 6
(149 Views)

😲thanks so much!!

0 Kudos
Message 3 of 6
(141 Views)

I have removed the timeout but the first time I run it it still takes a long time... 😞

0 Kudos
Message 4 of 6
(131 Views)

Hi Elfernro,

 


@Elfernro wrote:

I have removed the timeout but the first time I run it it still takes a long time... 😞


The first time you run the VI it needs to initialize the whole DAQmx stack.

You explicitely request all available DAQmx devices…

 

You might re-organize your whole VI/project so you do the initialize stuff right after start of the main VI.

That subVI should get the required channel (including the DAQmx device name) as input…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(124 Views)

Hi Gerdw,

thank so much for your time.

But the subvi always waits (the first time I run it along time) on "Start Task", even if I use fixed  input channel. Can I avoid that?

(Please see attached picture)

Thanks so much!!

0 Kudos
Message 6 of 6
(96 Views)