Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Arduino uno Firmware

Hello All,

 

Is there any way to customize the Arduino firmware? For instance, I am interested in putting a PID control loop inside the firmware and use LabVIEW to send commands and receive (plot) data.   

Thank you. 

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

Hello, MeysamKRad.

 

I recommend the use of Custom Command for the purpose.

 

In the firmware, you edit the code to put your PID logic inside the custom command function, then you can transfer bytes from and to arduino using custom command function on labview.

Jorge Augusto Pessatto Mondadori, PhD
Sistema Fiep
CLAD, CLD
0 Kudos
Message 2 of 4
(1,648 Views)

Hello Jorgemondadori

 

Thanks for the answer and help. Can you refer to any document shows how to to so?

 

bests

Meysam

0 Kudos
Message 3 of 4
(1,605 Views)

Sure, let me try.

 

First, i'm assuming that you may be using community edition. If that is true, i'd recommend the use of control toolkit, since it is available in community edition and have useful PID functions for your block diagram, and the connection with linx device can be used only for reading and writing analog values.

 

However you may be somewhat like me, who likes to try different things.

 

two different paths to follow: (i dont know which is better, you might need to test)

1) put your logic in main loop and transfer data via custom command function

2) put your logic inside custom command function.

 

Since official website is deprecated, i'll post a link for internet archive:

https://web.archive.org/web/20200806103634/https://www.labviewmakerhub.com/doku.php?id=learn:tutoria...

and

https://blog.digilentinc.com/how-to-use-linx-custom-commands/

 

Hope it helps.

 

Jorge Augusto Pessatto Mondadori, PhD
Sistema Fiep
CLAD, CLD
0 Kudos
Message 4 of 4
(1,595 Views)