Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a Quadrature Encoder with the Z-Signal?

I would like to measure the postion of my engine with a Quadrature Encoder in the X4 mode.
The configuration with the DAQ Assistant is quite easy and it works well with internal and external clock. My only wish - and problem- is that the data reading starts when the Z-Signal occurs. I tried to route the signal on a RTSI channel and take it as a Trigger signal.
I don't know why - but it occurs always an error -200452 which says that there is a problem with a task or a device.

I use the NI-6602 device.
0 Kudos
Message 1 of 5
(3,891 Views)
Does the error explanation have any more information than the error code? -200452 means that you are using a property that is not supported by that task. What kind of triggering are you trying to use?
0 Kudos
Message 2 of 5
(3,891 Views)
I used the "normal" DAQmx Trigger.vi.

In the meantime I got the recommendation to use the DAQmx Trigger Property Node instead. I didn't try yet - but hopefully it will work.
another thing I did was to install the latest release of NI-DAQ driver. Maybe this makes also a difference.
If you have some other solutions or recommendations - I would be glad to hear about. Thank you.

Andy
0 Kudos
Message 3 of 5
(3,891 Views)
Alright, if I understand you correctly, you're trying to measure buffered position, but you want to start the acquisition on the Z-index signal. Position measurement does not support the regular start trigger. Instead you want to use the "Arm Start" trigger from the trigger property node.

Hope this helps!
gus....
0 Kudos
Message 4 of 5
(3,891 Views)
Exactly - That's what I am trying now.
It looks good! (till now)
I hope there will be no other surprise.

Thank you for the help.

Andy
0 Kudos
Message 5 of 5
(3,891 Views)