01-14-2020 08:21 AM - edited 01-14-2020 08:24 AM
Hello people.
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.
01-14-2020 08:30 AM
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?
01-14-2020 08:37 AM
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"?
01-14-2020 08:42 AM
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.
01-14-2020 08:46 AM
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.
01-14-2020 08:51 AM
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.
01-14-2020 08:53 AM
t should look something like this:
01-14-2020 09:20 AM
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.
01-14-2020 11:12 AM
Also the frequency of any of the quadrature pulse trains will be directly related to the speed.
01-15-2020 01:03 AM - edited 01-15-2020 01:23 AM
I found this (look at the attached pictures).
Is this my DAQ-card?
And to RTSLVU how do I do that in Labview?