From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

No arduino experience. Labview to arduino help.

For a class project we are using a basic labview program to modify voltages to 4 seperate mecanum wheels. I have the VI working but i have no idea how to go about making the VI output to an arduino which will then send  the 4 seperate outputs, 1 to each wheel. Any help would be appreciated. I attached the VI and a rough wiring diagram to help illustrate. The dotted lined are the PMW cables from the arduino to the motor controllers. and the motor controllers are "Victor 884"s.

Download All
0 Kudos
Message 1 of 2
(3,244 Views)

I was unable to find the frequency of PWM that is required for those but the ones that I use from Castle Creations expect 50Hz PWM so I assume it is also the case here.  So, you can achieve 50Hz PWM with the servo functions in LIFA.  When set a value to these VIs it is expecting an angle.  When you give it an angle of 90 degrees the motors should be stopped.  Increase to go one way and decrease to go the other (direction will depend on your physical setup).

I recommend first getting the simple example sketchs working from the Arduino IDE.  Then, if that works, try a simple example from LIFA (the blink example).  After you get that working correctly, look at the servo example and go from there.

If you have specific questions, post again including your LabVIEW VI with the LIFA functions included.

0 Kudos
Message 2 of 2
(2,642 Views)