ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VisaWRITE to Arduino

Hello everyone,

 

I am about 3 weeks new to LabVIEW and having troubles with a bit of information.

 

I want to send commands from the LabVIEW interface to my Arduino.

The idea is that by changing the intensities of RGB i can address the information to the microcontroller and output the PWM signal to each device

Already i am passing information from the Arduino into my Labview Interface.

i have attached the 2017 version of LabVIEW for your feedback and a picture of the section i want to send to my Arduino

 

Please help 🙂

 

 

Download All
0 Kudos
Message 1 of 4
(2,805 Views)

Hi XX,

 

you need to create a message (a string) to send it to your Arduino ( as I mentioned before).

And you need to create a sketch for the Arduino which is able to process that message...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,780 Views)

Yes but still stringing it all together what blocks do i use? 

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

@xxAddictionxx wrote:

Yes but still stringing it all together what blocks do i use? 


You use the blocks you need to use.

 

Were you expecting someone to write both the LabVIEW and the C/C++ Arduino code?

 

For the Arduino to control RGB LEDs, there are libraries.

or

You can do it the hard way.

Tutorial for the Arduino portion: https://learn.adafruit.com/adafruit-arduino-lesson-3-rgb-leds/arduino-sketch#

 

 

It boils down to establishing good serial communication with the Arduino.

Adding LabVIEW to the equation adds more complexity.


Everything can be done without the need of LabVIEW.

 

.

 

 

0 Kudos
Message 4 of 4
(2,772 Views)