LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview+Arduino & serial(1) (UART) communication

Hi ,

Do you know if is possible to communicate to/with serial1 (Tx / Rx (pin0&1 Arduino Uno)) from Labview? Only the I2C and SPI are in the drivers.

  

thank you

Ludovic

0 Kudos
Message 1 of 13
(15,013 Views)

Pins 0 and 1 refer to Serial (and not Serial1 which is not available on the Uno).  This is how LabVIEW already communicates with the Arduino.

Maybe it would be better to explain exactly what you are trying to do.

0 Kudos
Message 2 of 13
(6,074 Views)

Hi,

Thanks for reply.

yes, true, serial (1)or(2)or(3) is on the mega2560.

So the question would be corrected: how to communicate with an external device (type sensor communicating (UART)) with the Arduino Mega .... from labview?

Thank you.

Ludovic

0 Kudos
Message 3 of 13
(6,074 Views)

You would need to make custom functions in the LIFA firmware along with custom functions in LabVIEW to carry out the communication on serial communication on Serial1,2,3.

0 Kudos
Message 4 of 13
(6,074 Views)

I'm new to lifa.  Were you able to get a solution? Can you share the custom functions/code?

Cheers,

Brian

0 Kudos
Message 5 of 13
(6,074 Views)

Hi Brianbarian,

I have not the solution for serial 1;2;3;,  but I'm still interested .... 😉

Good luck

Ludovic

0 Kudos
Message 6 of 13
(6,074 Views)

if your computer has a serial port(db9 rs232 communication),you can try this.
1.use the VISA functions in labview to write to a serial port or read from device connected to serial port.

2.rs232 signal levels are different from TTL UART signals, so you need an additional ic ,to be specific use MAX232 from maxim.identify the rx and tx lines of DB9 connector of serial port and wire it to corresponding pins of ic.

3.then connect the rx and tx output pins of ic to arduino serial port.

4.in your arduino code ,you should read from that serial port or write to it

Electronics and Instrumentation Engineer
Freelance LabVIEW and Arduino programmer.
For projects contact me ; djac791@gmail.com
0 Kudos
Message 7 of 13
(6,074 Views)

of course you can use the serial port, but if your computer does not have it you should get a USB serial conersor, see link https://www.sparkfun.com/products/718

00718-03-L.jpg

also check out this article that discusses communication between labview and arduino https://decibel.ni.com/content/thread/16912?tstart=0

0 Kudos
Message 8 of 13
(6,074 Views)

Hi,

See chart below for understanding my wish ...

Thanks.

Ludovic

Serial 2,3 communication Arduino MEGA (Labview LIFA).png

0 Kudos
Message 9 of 13
(6,074 Views)

Additional serial ports are currently not supported in LIFA.  You can easily add them as custom commands by adding the functionality to the LIFA Firmware and then creating VIs to call the newly created commands.

-Sam K

LIFA Developer

0 Kudos
Message 10 of 13
(6,074 Views)