LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA for stepper motor step issue

Hi guys

I made a simple VI to test my stepper motor:

LIFA.JPG

It does work but when I tried to insert differt numbers of steps I discovered this:

  • When I insert 1: 0 steps are done
  • When I insert 2: 1 step backward and 4 steps forward = 0 steps
  • When I insert 5: 4 steps are done
  • When I insert 10: 1 step backward and 9 steps forward = 8 steps
  • When I insert 15: 1 step backward - 14 steps forward - 1 step backward = 12 steps
  • When I insert 20: 20 steps are done

Can someone maybe explain why this happens and how I can solve this. This problem is a big problem for my application.

Another problem:

When I use this VI I can run it without any problems. But when I want to try out the arduino stepper motor.vi I always get error 5002 at my init.vi block and when that happens I have to replug my arduino again before I can use it again in any program. And don't know why it's possible, the init.vi block is the first block in the program which in both vi's is connected with the same parameters and yet one vi gives the 5002 error and the other not.

Kind regards

Ruts

0 Kudos
Message 1 of 4
(4,424 Views)

For this coding, Have u upload the LIFA code sir?

0 Kudos
Message 2 of 4
(3,686 Views)

If you mean I uploaded the LIFA_Base.ino C++ code to my arduino, yes. Otherwise my stepper wouldn't respond to my program.

Message 3 of 4
(3,686 Views)

u know sir i am having a problem. i am not able to make my stepper work.

I also make my code in the LIFA base but still when i uoload and then interface

it with labview. it does not work.. i am using a driver from scratch using L298

i am not using easy driver. do u thnk this is the problem. this is my circuit sir

please helo10149976_10202646553678541_1050538204_n.jpg

0 Kudos
Message 4 of 4
(3,686 Views)