05-09-2012 01:23 AM
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
05-09-2012 01:34 AM
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.
05-09-2012 01:44 AM
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
05-09-2012 12:07 PM
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.
07-23-2012 02:20 PM
I'm new to lifa. Were you able to get a solution? Can you share the custom functions/code?
Cheers,
Brian
07-24-2012 12:49 AM
Hi Brianbarian,
I have not the solution for serial 1;2;3;, but I'm still interested .... 😉
Good luck
Ludovic
03-14-2013 10:03 AM
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
04-11-2013 08:18 PM
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
also check out this article that discusses communication between labview and arduino https://decibel.ni.com/content/thread/16912?tstart=0
04-12-2013 01:49 AM
Hi,
See chart below for understanding my wish ...
Thanks.
Ludovic
04-14-2013 09:53 AM
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