Please help me with this issue that I am having because I cannot solve it. I am connecting Arduino UNO R3 with labview. I am trying to capture data using the block diagram code but I cannot get correct data. I don't know what is the problem. Please, review the attached photos.
I ran arduino and I am getting raw data as I am moving the sensor, but when I use labview and move the sensor I don't get the almost the same data. I tried same motion with arduino IDE and labVIEW.
Thank you in advanced.
Reading serial data from an Arduino is no different than any other device with a serial interface.
DO NOT USE "Bytes at Port" (ever)
I am assuming you programmed the Arduino so you know the communication parameters and can change them.
Program the Arduino to send out a termination character (like a Line Feed) and set the VISA Configure Serial port to use a Termination Character.
Set your VISA Read to read a lot more bytes than you expect to receive.
Now the VISA read will read until it sees the Termination Character or times out.
Also I don't see any setting for baud, data bits, parity, and stop bits in the VISA Configure Serial.
Are you sure the default (9600,8,N,1) are correct?
Thank you so much for the reply. I am new to this Arduino and LabVIEW connection. Why should I not use the bytes to port? Can you please explain this?
On Arduino IDE code I have set up the baud 9600. I get readings from the Arduino. On LabVIEW I don't know how to set them up. Could you please help me?
I believe Putnam linked to a very good explanation of when and when not to use Bytes at Port above.
You used VISA Configure Serial Port in your code, you just need to configure it.
Have you read the help for VISA Configure Serial Port?
Yes. I read the VISA serial port configuration. So, I have a BNO055 sensor but when I move it the string indicator data does not change. Why? Can you help me?
That's a tall order as the problem could be in your Arduino code...
Have you tried using the Arduino IDE serial monitor to inspect the data being sent by the Arduino?
Is it valid and changing when the sensor is moved?
Also are you still using "Bytes at Port"?
No I am not.
Bytes at port was removed.
Everything works somewhat fine... but sometimes when I stop the program and run it again the values does not change when I move the IMU. Can you think of any reason?
Arduino IDE work fine like expected.
Not without seeing your code