LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MyRIO Motor Adaptor - Encoder Readings

Have you solved your problem?

0 Kudos
Message 11 of 27
(982 Views)

Hi,

 

I've tried in seperate loops etc and the same thing happens. It seems to be motor 3 will only count when motor 1 counts.

0 Kudos
Message 12 of 27
(981 Views)

Ok, Do you want to use 1,3 and 2,4 together? 

0 Kudos
Message 13 of 27
(977 Views)

Yes, but each motor uses seperate encoders.

Motor 1-=A/ENC (MXP A)

Motor 2 = B/ENC (MXP B)

Motor 3 = C/ENC0 (MXP A)

Motor 4 = C/ENC1 (MXP B)

0 Kudos
Message 14 of 27
(974 Views)

Sorry but I don't understand your program logic. You have 4 motors and 4 encoders, right? When you use them separately, are they work well?

0 Kudos
Message 15 of 27
(971 Views)

All three work well except Motor 3. I've attached the code so you can see the connection made to the motor adaptors

0 Kudos
Message 16 of 27
(969 Views)

So when you try to use Motor 3 separately, its work wrong?

0 Kudos
Message 17 of 27
(963 Views)

Yes, the count direction is always the wrong direction. It only changes when Motor 1 count direction changes, as shown from the attached photo.

0 Kudos
Message 18 of 27
(954 Views)

I asked about using only motor 3 without others, is it work well?

0 Kudos
Message 19 of 27
(952 Views)

And do you use the same motors and adapters for MyRIO?

0 Kudos
Message 20 of 27
(949 Views)