ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dyno Ignition Timing

I am exploring the possibility of writing a program for an engine test stand to control the engine ignition timing.  I am having trouble coming up with the concept of how to write this though.  Basically, we would have an encoder spinning with the crankshaft, and I would need to turn on a digital output during certain encoder counts.  For example, if I was using a 100PPR encoder, running an 8 cylinder engine, I would need to turn on an output during the 1st count, 26th count, 51st count, and 76th count, and reset the counter at the 100th count, or at a home signal.

 

I have tried to write this program, but the way I have done it requires processing, which takes too much time, resulting in missed output pulses at higher frequencies.  In fact, it only worked consistently at very low frequencies.

 

I need to know if there is some way to make an output go high based directly on the count of a counter?  Thanks for any help.

 

Jeremy

Jeremy Backer
CLAD
0 Kudos
Message 1 of 2
(3,193 Views)

You need to use hardware triggering.

 

See if this info helps:

 

https://www.ni.com/en/support/documentation/supplemental/21/ni-daqmx-data-acquisition-triggering-tec...

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 2
(3,185 Views)