10-21-2009 10:54 PM
i am right using NI-E6221 card to read a counter input from an encoder.
for the encoder, there are A- B Z out put.
how can i contact the encoder to the card. for the counter 0, pin out no are SRC 37, Gate 3, AUX 45, out 2.
can i use the labview to read the direction of the encoder while the encoder is turning.
while i try to use the enable encoder VI, there is a in put called board id, should be setted by the MAX, can i use the E 6221 card to cread a board Id refer to the counter in put???
I am a New guy who just touch the Labview for a short time. so may be this question sounds silly, can you please help me.
10-22-2009 07:03 AM
Hey,
First of all, the card you are using is an M-Series, not an E-Series.
I would suggest you to simply use the Measure Angular Position.vi which you will find using the NI Example Finder under LabVIEWs help menue.
Christian
10-22-2009 07:16 AM
I have a couple of fixtures that use the 6221 to do exactly what you are talking about. If you follow the help files for the daq card it is really very easy to get this up and running. If you use the measurement and automation explorer it will ever tell you how to hook up the encoders to the DAQ card. It will tell you direction and will give you a scaled out put based on the number of poles that you have for your encoder.
NI has done a very nice job with the encoder inputs for the 6221. Do a little work and learn how to use them and you will be happy with what you see.