08-04-2021 07:00 AM
hello everyone,
i have a question. i will build about detection for temperature with arduino then the result can display at the labview for gui. i try to communication arduino is done but the result is error. FYI i try the only arduino hardware not the sensors. Is it because I didn't install the sensor so it's like this? I saw the value on the Arduino serial monitor, it came out.
thanks for advance
08-04-2021 08:11 AM
My first thought is that you are trying to use the COM port in both applications (the Arduino monitor and your LabVIEW code). Be sure to close the Arduino monitor before running your code.
Otherwise, you will want to get rid of that Bytes At Port and just tell the VISA Read to read more bytes than you ever expect in a message. In this case, I would probably use 50 (no way should a single value be more than 50 characters). This will allow the VISA Read to count on the Termination Character to know when to stop reading. This will ensure you got a complete message. With this, you can also get rid of the wait in the loop at the VISA Read will limit your loop rate based on how often your Arduino sends values back.
08-04-2021 10:41 PM
connection in "com" mush be error but if i change to "ASLR" connection is ok. why its happen ? i check in port the installation in "com"
then i have a question, i send serial dat from arduino to detection from 3 sensor ? what the function for devide for 3 sensor ? i use Match Pattern but the result can't display. thanks
08-05-2021 06:13 AM
@mamprat wrote:
i send serial dat from arduino to detection from 3 sensor ? what the function for devide for 3 sensor ?
I would use Spreadsheet String To Array to get an array of your values or Scan From String to get an output for each of your values.
08-05-2021 08:19 AM
i will try, thanks for advance.