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
(2,871 Views)

Hi viteo_sen,

 

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

 

http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/creating_user_events/

 

Regards.

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

You can use DAQmx Events, http://www.ni.com/tutorial/5384/en/#toc3

Look at Every N Samples Transferred From Buffer Event

 

This forum post will be helpful too:

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


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