Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrigger Encoder and Analog input acquisition on Z pulse?

Solved!
Go to solution
 I have a PCI-6232 card and am using CI Angular Encoder on counter 1 to provide a crank angle base for high speed (50 -100kHz) Analog pressure measurement.  I am using a CI Period on counter 2 to measure the period of the Z pulse to determine the length of each measurement.  This works somewhat but the output is somewhat inconsistent.  I get about 1 in three cycles with no encoder data.  I need to find a way to trigger the acquisition to save data for each cycle triggering on the Z pulse.  If you know of a different way to do this I would be open to that as well.  Thanks, Steve
0 Kudos
Message 1 of 3
(3,168 Views)

Hi, Steve.

 

How are you connecting your signals?  Just to verify:

A - source of counter 1

B - AUX of counter 1

Z - gate of counter 1

Z - gate of of counter 2

internal timebase - source of counter 2

 

If you could elaborate a little more on what "1 in three cycles" means, that would help out a lot.  Is it one in three cycles from the Z pulse?  Also, are you saying that after a trigger from the Z pulse is received, you want to acquire/display/save the information regarding angular position and period?  How exactly do you want this to trigger?  Do you want the data to be acquired for a certain length of time?

Message Edited by lewandroski on 07-08-2009 10:37 AM
Regards,

Sara Lewandroski
Applications Engineer | National Instruments
0 Kudos
Message 2 of 3
(3,151 Views)
Solution
Accepted by topic author skaping

Hi Sara,

Thanks for your reply.  What I wanted to do was trigger an encoder scan and an analog input simultaneously by triggering on the encoder z pulse.  It took a lot of digging through similar samples and after a week of struggles I figured it out tonight.  I will post this once I clean up the mess.  Problem solved thanks to dozens of you posting info and samples!

0 Kudos
Message 3 of 3
(3,139 Views)