Forum

UART control with L...
 
Notifications
Clear all

[Solved] UART control with LabVIEW with solo mini motor controller and myRIO

4 Posts
2 Users
0 Likes
166 Views
Forum 1
(@mirzarashid)
New Member
Joined: 8 months ago
Posts: 2
Topic starter  

Hello,

I am trying to control a brushless DC motor using UART in LabVIEW. The solo mini is connected to a myRIO. How do I input codes into the UART block in labVIEW? What format do they have to be? I have tried to input values in the same hexadecimal format in as shown in the UART to usb manual( https://www.solomotorcontrollers.com/wp-content/uploads/materials/SOLO_MINI_Communication_Manual_UART_USB.pdf). I understand the command format I am just having issues being able to sent those commands to the motor.


   
SOLO Team
(@milad)
Illustrious Member Admin
Joined: 4 years ago
Posts: 546
 

Hello @mirzarashid,

Have you tried to use our C++ dll within your Labview program to communicate with the SOLO unit?

https://github.com/Solo-FL/SOLO-Motor-Controllers-DLL

Unfortunately, we don't have a ready tutorial on how to do this in Labview, however adding a dll in LabVIEW is a well-known method, and I belive you can find good materials on that online.

let us know if you need any other help.

Milad

 

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


   
Forum 1
(@mirzarashid)
New Member
Joined: 8 months ago
Posts: 2
Topic starter  

Hello @milad

Thank you for thanking the time to respond. I looked through the github files and one of the examples provided. I am still confused on how to call the functions defined in SoloMotorControllers.ccp. Can you provide an example on how to do a specific command like 0x07 : Motor’s Parameters Identification or 0x15 : Motor Type?


   
SOLO Team
(@milad)
Illustrious Member Admin
Joined: 4 years ago
Posts: 546
 

@mirzarashid 

Our DLL is built from our C++ library, on that library you can see many examples done for various functions:

https://github.com/Solo-FL/SOLO-motor-controllers-CPP-library

For instance, you can see an example with UART/USB line below:

https://github.com/Solo-FL/SOLO-motor-controllers-CPP-library/blob/main/examples/serial/PMSM_SpeedControl_Encoder.cpp

is this what you were looking for? 

Milad

 

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


   
Share: