LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to digital output Arduino using VISA

Hello,

 

I want to make a simple program which write to a digital output (like simple LED blink) on the Arduino using VISA functions in LabView.

Can someone give an example of LabView program and Arduino IDE sketch?

I cannot use LINX or LIFA, because it's an old version of LabView which doesn't support those toolkits.

 

regards,

paalbrok

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

Hi paalbrok,

 

write a small Arduino sketch which reads commands from serial port.

Then define commands similar like "Set D0 0/1" and parse them in your sketch to drive (or read) the corresponding IO pins.

Then simply send those commands from LabVIEW to the Arduino.

 

Basically you need to recreate the same work, which is done in LINX/LIFA: they also have their sketch/Arduino software, that reacts on commands from LabVIEW…

(Or think about upgrading LabVIEW.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,143 Views)

Hi,

OK, Thanks.

Would like to see a concrete example with IDE and LabView file. To upgrade labView in this case is impossible.

 

regards,

paalbrok

0 Kudos
Message 3 of 4
(3,130 Views)

Hi paalbrok,

 

on LabVIEW side you can open the example finder and check the BasicSerial Read&Write example VI.

For Arduino side of the communication I guess there also is an example sketch library showing how to handle serial communication…

Best regards,
GerdW


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