02-17-2023 06:08 AM
I am having trouble reading from the Arduino to LabVIEW. I have downloaded linx and Maker hub and also have just used LabVIEW's methods as well. It turns out to be unsuccessful. I am wondering if someone could help me understand what I am doing wrong. I run the code and I do not receive anything in the string box. i have attached an image of the setup I have. I will attach the VI however I am using the newest version of labview.
02-17-2023 06:13 AM
02-17-2023 06:22 AM
What I am showing you is what I have currently. Am I suppose to have a sender?
02-17-2023 06:50 AM
Hi ikw,
@ikw123 wrote:
Am I suppose to have a sender?
When you want to receive data from your Arduino, then your Arduino needs to send some data…
02-17-2023 09:11 AM
Most serial communication issues can be solved by watching this video: VIWeek 2020/Proper way to communicate over serial
That being said communication with an Arduino is no different than communicating with any other instrument on a serial port. IMHO: It should be easier because you have full control of what the Arduino is sending, how it it formatted, serial protocol, etc.
You are the one programming the Arduino, right?
Also GerdW is right to give you any real answers we need to know what the Arduino is sending and how it is formatted.
BTW: I can't look at your code because we are frozen on LABView 2021 due to the new SaaS billing model NI has implemented in LABView 2022 forward. SO you will probably find more support on this board if you save your code for LABView 2021.
02-17-2023 09:22 AM
@ikw123 wrote:
I am having trouble reading from the Arduino to LabVIEW. I have downloaded linx and Maker hub and also have just used LabVIEW's methods as well. It turns out to be unsuccessful. I am wondering if someone could help me understand what I am doing wrong. I run the code and I do not receive anything in the string box. i have attached an image of the setup I have. I will attach the VI however I am using the newest version of labview.
What are you expecting the Arduino to be sending you?
If you have just loaded the LINX firmware then it isn't going to send anything to the receiving computer with being sent some command. If you have programmed the Arduino with custom code then you should know what it is doing.
BTW, if you are on the newest version of LabVIEW then you should be using the Hobbyist Toolkit instead of LINX.
@RTSLVU wrote:
You are the one programming the Arduino, right?
If they are using LINX, probably not.
02-17-2023 10:45 AM
@JimB. wrote:BTW, if you are on the newest version of LabVIEW then you should be using the Hobbyist Toolkit instead of LINX.
@RTSLVU wrote:
You are the one programming the Arduino, right?
If they are using LINX, probably not.
Well the picture of their code was using VISA serial so I they are not using LINX or at least weren't then.
LINX is the "Hobbyist Toolkit"
To the OP:
In general there are three ways of using LabVIEW with an Arduino
02-17-2023 05:09 PM
@RTSLVU wrote:
@JimB. wrote:BTW, if you are on the newest version of LabVIEW then you should be using the Hobbyist Toolkit instead of LINX.
@RTSLVU wrote:
You are the one programming the Arduino, right?
If they are using LINX, probably not.
Well the picture of their code was using VISA serial so I they are not using LINX or at least weren't then.
Their original post stated, "I have downloaded linx and Maker hub and also have just used LabVIEW's methods as well."
I don't know what they are doing. What program the Arduino is intended to be running, or that they know it must be programmed to run one, is pretty unclear.
@RTSLVU wrote:
LINX is the "Hobbyist Toolkit"
The Hobbyist Toolkit was LINX. The joys of acquisitions and name changes...
Digilent's LINX has joined LIFA in the "deprecated" club: https://www.vipm.io/package/lvh_linx/
NI's LINX hasn't been updated since it's initial release on June 1, 2020: https://www.vipm.io/package/ni_labview_linx_toolkit/
NI's Hobbyist Toolkit is distributed via NIPM: https://www.ni.com/en-us/support/downloads/tools-network/download.labview-hobbyist-toolkit.html#4778...
I haven't used these enough to know if there is a significant difference between the last two aside from package manager. IIRC, the name change and move to NIPM coincided with the launch of LabVIEW Community Edition.