LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Arduino and Servo board control

Hi!

 

I am in the process of building a real-time motor controller using LabVIEW. I have a working Arduino IDE code, now I need to make this code in LabVIEW.

 

I know that to control Arduino through serial, LabVIEW VISA and LINX are needed. So that’s what I have used in my VIs. But for some reason, I cannot get any response from the motor when I used the VI (no error or anything).

 

Would you mind letting me know the correct way to send the commands to the motor board? Attached is the PDF of the serial communication protocol for the motor board, but I am not familiar with Serial communications protocols (Headers, length, byte, address, etc.). Can you give me a basic step-by-step example of how should I send these codes?

 

This is the basic connection diagram:
PC (LabVIEW) ------[usb cable]-------> Arduino ------[Hardware serial - RX/TX] -------> Servo Board -------------> Servos

 

Attached:
Two LabVIEW VIs (Both do not work)

Screen shots of the LabVIEW VIs

Arduino IDE Code (works well)

Pdf for the serial communication protocol

 

I used the following servo board: https://www.amazon.com/LewanSoul-Controller-Bluetooth-Over-Current-Protection/dp/B0778GM2K2

 


Thank you very much!

0 Kudos
Message 1 of 2
(3,000 Views)

You've properly installed the Labview firmware on the Arduino correct? Can you do other things on the Arduino like get LEDs to flash? You should be able to find tutorials for interfacing Labview to Arduino with LINX by simply searching those terms online. Step by step videos will show up. I assume your own code works to actuate the servos correctly?

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