Hello All,
I`m trying to send pulse signals from my CompactRIO cRIO-9049 to the drivers of my stepper motors using the NI9401 module.
I`ve attached some code that first moves all axis until the limits switches register low on the 9375 module and in the second frame of the sequence I want to be able to move all axis with different frequencies a different number of pulses (more or less synchronized by the inner sequence). I`ve looped this sequence to check if it runs consistently.
The problem is that this code runs perfectly fine half of the time, but sometimes one or two motors stop working from one iteration to the next.
I think this behavior doesn`t occur when I put all my counter outputs in one task, but then I can`t send a different number of samples to each motor.
Can someone please explain to me why this code only works sometimes and what I can do to fix this problem.
Thank you in advance for the answers!
↧
3 Counter Outputs NI 9401
↧