LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sampel trigers loop or eavent

Hello LabVIEW users,

I have problem witch some measurements, I would like to do some calculations for sample incoming from dam daqmx.

For now i am using while loop, but while loop is not trigered by the the sampe clock. 

 

So question is how to trigger event or loop by sample clock. My current code in the attachment 

Best regards 

0 Kudos
Message 1 of 2
(2,018 Views)

Hi pablo,

 

but while loop is not trigered by the the sampe clock. 

???

You loop will iterate as fast as possible.

I prefer to set a certain "block size" (aka "number of samples") for DAQmxRead:

check.png

 

(I also cleaned up our VI and removed a lot of unneeded stuff…)

Now those loops will iterate with a fixed iteration time, determined by the sample clock of your DAQ hardware.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(1,978 Views)