08-26-2008 11:56 PM
Hello all,
I have been creating a PID control system for a Quanser 2-dof helicopter (http://www.quanser.com/english/downloads/products/Specialty/Quanser_2DOF_Helicoper_PIS.pdf) using Labview 8.0. The DAQ being used is an m-series PCI-6251. I have completed the majority of the work, but I am having a tough time controlling the count direction of the Encoders.
Using the quadratureencoderm-series.vi program, I have been able to read pulses from signal A, but I am unable to get a reading of any kind on Signal B, meaning that my encoder counts only in one direction, regardless of its change in direction.
I have done a bit of research and all articles found suggest that I wire signal B into either CTRnAUX channel (PFI 10 or PFI 11 depending on which counter), but I cannot find a B signal. Does anybody have any idea about what I may be doing wrong?
One factor that I think may relate to this is the only encoding type that can read signal A is the ‘two pulse’ encoder. If I chose any of the quadrature types (x1, x2 or x4) I get no read out at all!
Thanks for your time, it is greatly appreciated. Hopefully it is not a hardware problem!
Joe
08-27-2008 01:30 AM
Hey,
What do you mean with "you cannot find a B signal"? You cannot find it as an output of the decoder or you cannot read with DAQmx.
I would suggest you to try to read the A,B and Z signals (as far as you find them on the Quadrature encoder) withing MAX by creating an Edge Detection Task. So you can get sure that the mentionend Signals are present.
Then you create an Angular Position Measurent Task where you can define the type of encoder and see where A, B and maybe also Z has to be connected at your card. If it still counts in one direction, try to reset the board in MAX and start the Task again.
Christian
06-09-2009 03:25 PM
06-11-2009 07:11 AM
Hello,
If you want to read the encoder position values from 5 encoders simultaneously, you would need at least 5 counter/timers on the PCI board. The PCI-6602 should be a good fit for this purpose (http://sine.ni.com/nips/cds/view/p/lang/en/nid/1123). If you would like to take a look at the other data acquisition boards that we offer, please refer to the following webpage: http://sine.ni.com/nifn/cds/view/main/p/sn/n24:PCI/lang/en/nid/1036/ap/daq . Here, you can choose your selection criteria on the left hand side.
I hope this helps.
06-12-2009 06:28 AM
06-15-2009 11:37 AM
Hi,
Please refer to this knowledgebase article to see how to connect the A,B and Z signals to the counter: http://digital.ni.com/public.nsf/allkb/B3945A72AE53D1B086256EF7007C4D0D?OpenDocument . On page 3-4 of the NI 6602 user manual (see previous post), you can find the pin assignments. I hope this helps.