Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

DC motor control using NI 9401 and DC motor driver

I am using cRIO 9073 ,NI 9401,DC motor and motor Driver, I have attached my VI , i am acquiring  two signals which i represented with  1 and 2 in my attached block and caluclating their amplitudes and comparing them individually with a set threshold.

 

1)when signal 1 condition is true DI0 and DI1 should be true and false respectively so that motor rotates clockwise if the condition is false no movement that is DIo and DI1 should be 0 and 0

 

2)coming to signal  2 when its condition is true DI0 and DI1 should be false and true so that motor rotates anticlock wise direction if the condition is false no motor movement i.e DI0 and DI1 should be 0 and 0

 

Plese give me some  solution i made two case structures for the two different signals but my motor is rotating only in one direction and it is just vibrating.

0 Kudos
Message 1 of 3
(6,108 Views)

If you give us more information about what you are trying to do, we might have a good solution.  Your immediate problem is that you have 2 sets of logic that are controlling the same hardware.  I would nest the case statements so that one and only one case controls DIO and DI1 at a time.  Only use one set of DIO and DI1 nodes(outside of the case), not one in every case.

Message 2 of 3
(6,094 Views)

i am able to develop the logic and my aplicaition is

 

 

i am taking two muscle EMG signlas continoulsy  from body and filtering them and caluclating their RMS. The condition is  when one muscle is active it will give EMG both muscles active is not possible.

now we are caluclating RMS for a sample lenght of 1800  for both signals and comparing with a thresholld value .if one EMG is active it will enable the motor to movein one direction and if other muscle is active it will rotate in anticlock wise after comparing with thresholds

 

my RMS just keeps on changing without sticking to one value now the problem comes here where my motor just gets disturbed.

 

please provide me some solution so that when one signal is high the motor rotates for some time.

0 Kudos
Message 3 of 3
(6,092 Views)