05-31-2023 07:15 PM
Hello,
This is my first post and my first "cry for help" - only recently I started to work with Labview
My goal (for now) is to send a string from labview to arduino [Mega2560].
I manage to control the arduino's led with a usb cable (other solution that I have is usb to ttl converter) using a very simple program - attached.
The version that I have installed is LabVIEW 2023 Q1 Community Edition that already includes the LabVIEW Hobbyist/LINX by NI toolkit.
I know that Labview and IDE can't work at the same time
So, my question is: it is possible to send a string from labview to arduino using Linx toolkit with a - usb cable - and check if the string was received by arduino?
(At this point I don't care about what happens on labview, as long as it sends a string and I can check if it was received)
Sorry for my confusion...
thank you for your help
06-01-2023 08:21 AM
since you want to use LINX, i would recommend using custom commands, this way you can send bytes (from strings) and receive data in a custom command to check if the message arrived as desired..
i could not open your VI because I´m still using LV 2020.
https://web.archive.org/web/20200806103634/https://www.labviewmakerhub.com/doku.php?id=learn:tutoria...
06-01-2023 04:08 PM
Hello, thank you for your answer.
It's not that I necessarily want to follow this approach, especially knowing now that I have to develop a custom command.
I was start to try using Visa solution and, if so, try also using a USB to TTL converter. In the end evaluate what is the (best?) method.
I've attached my vi, downgrade do version 18.0 - it is a pretty simple VI.
06-02-2023 06:23 AM
ohh and now i noticed that you are using LIFA not LINX/hobbyist toolkit. LIFA is deprecated, but it does not matter for your application.
i would recommend using a TTL USB adapter and just using visa and serial functions in your arduino code. For simplicity, lifa or linx wont help you.
since you are using mega, you can also use several software serial for debbuging.
06-04-2023 05:17 AM
Nice, thank you.
"you can also use several software serial for debbuging"
Is it possible to do this with one single usb cable? Or is it impossible?
I have tried with Linx also
06-22-2023 09:32 AM
Not sure if this is any use to you, but I was generally using Arduino boards for controlling test fixtures but recently I switched to the Raspberry Pi Pico, mainly as I was interested in learning Python.
I program the Pico to accept simple ASCII commands and then return ASCII replies, allowing the use of any terminal application for control/debug. Then you can talk to the Pico device from LabVIEW using simple VISA serial port functions.