LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[HELP] send string to arduino

Hi guys,

I want to send a string to arduino  when there is an alarm ,what should I do?

 

eg. when alarm , labview will send a 'A' back to arduino to control vibration motor.

should i use digital write or send receive??

 

i attched the file and picture.

 

thank you in advance

ardui.jpg

0 Kudos
Message 1 of 3
(3,219 Views)
Assuming the arduino platform you are talking to has a serial port, that would be easy. But you could also set a digital output bit that would trigger the arduino to do something you want.

Based on the minimalistic description you gave I think I would go with the digital IO solution.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(3,172 Views)

You are already using one of the Arduino Toolkits which has it's own protocol for sending/receiving data via the usb->serial port.

Depending on the toolkit you are using, there is functionality to implement custom commands by modifying the default sketch and implementing some custom functionality. For the LINX toolkit (the current up-to-date LabVIEW->Arduino toolkit), the documentation on custom commands is here: https://www.labviewmakerhub.com/doku.php?id=learn:tutorials:libraries:linx:misc:adding_custom_comman...


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 3 of 3
(3,139 Views)