LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate event for every N pulses from counter channel output

Hi.

Im using counter channel output with finite samples to control step motor driver. For example, I generate 2500 samples per channel and step motor rotates for 2500 steps.

Now i want it to generate events (that will start analog measurments) while step motor is rotating. For example, every 200 samples i want event structure to start data aquisition subVI in parallel thread without stopping the motor.

 

how can i reach my aim? please help. thank you.

 

p.s. im using NI-6251 and NI USB-6366

0 Kudos
Message 1 of 3
(3,275 Views)

Hi viteo_sen,

 

If you want to create custom event, you can create user event.

 

https://www.ni.com/docs/en-US/bundle/labview/page/creating-custom-events.html

 

Regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 2 of 3
(3,256 Views)

You can use DAQmx Events, https://www.ni.com/en/support/documentation/supplemental/21/getting-started-with-daqmx-daqmx-events....

Look at Every N Samples Transferred From Buffer Event

 

This forum post will be helpful too:

https://forums.ni.com/t5/LabVIEW/Start-Trigger-and-Stop-After-Desired-Number-of-Pulses-random/m-p/24...


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 3 of 3
(3,237 Views)