I am having a bit of trouble with Labview.
I have my quadrature encoder, my DAQ-board, and two TCST1103 optical switches. The encoder is placed on a motor (look at the attached pictures) and spins when the motor spins.
I have been told that by using the two TCST1103 optical switches, both the velocity AND direction of the encoder / the motor can be determined.
However, I don't know how to do this in Labview, or rather, I don't know how to program Labview to tell me. Should I use "DAQ-assistant" and select "counter input" and then "edge count" or??
If someone could show or tell me how to determine the velocity and direction of the quadrature encoder in Labview I would be very happy.
I have also attached my VI, where I try to determine the direction of the quadrature encoder by utilizing D-flip flops and edge counts. However, it requires a lot of cables and is very clumsy.
What DAQ card are you using? It may be as simple as going into NI MAX and setting up a quad encoder virtual channel. It will depend on what DAQ card you are using.
Do you understand how a quad encoder works?
I am not quite sure what a DAQ-card is. I have attached a picture of a DAQ-board, a long blue board with analog inputs, outputs and lots of other things. Is that what you refer to as a "DAQ-card"?
What are you connecting this to? That is the DAQ card. The picture you provided is the breakout board. That is the connections to the DAQ card. It should connect to something.
I am not sure how to answer your question. I am sitting at my university's desk right now, and the only thing related to Labview on this desk, is that "breakout board".
I am not sure what DAQ-card we are using, however, I would assume it's pretty "up-to-date".
In other words, the breakout-board is the only thing I can get my hands on, that involves Labview.
It doesn't matter how up to date the DAQ card is. The capabilities are what matters. Open NI Max and find connected devices and tell me what you see.
Well for direction you need to determine if A (or A') or B (or B') is leading.
As for speed it's just a matter of counting revolutions over a fixed time period and calculating the speed.
Also the frequency of any of the quadrature pulse trains will be directly related to the speed.