LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

analog input downsampling

Hello,

 

I am running a stepper motor with a counter, CTR 0 out/PFI12, every rising edge the stepper motor will turn one step. I want to make an analog measurement every so many steps. So, every M cycles of the counter, make N measurements. I am having a very difficult time figuring out where to start and have tried a few approaches, but have not made any progress, any suggestions?

 

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

Hi dwmoreau,

 

take a measurement for each rising edge, which is very easy when you use PFI12 as trigger for your analog measurement (see DAQmx example VIs). Then decimate the measurement values later on (DecimateSignal)...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,307 Views)