12-07-2020 06:08 AM
Here I am not able to read the complete string. My string is 44 character long from arduino. But whenever I run the program the length I observe is random but never 44
Front Panel
Where it can be seen that length of the string is not 44.
Solved! Go to Solution.
12-07-2020 08:23 AM
DO NOT USE THE BYTES AT PORT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (still not enough emphasis)
Simply put, just tell the VISA Read to read more bytes than you expect in a message. In this case, I would probably use 100 just to be safe. With the termination character enabled, the read will end when the Line Feed (by default) is read.
For more information go watch this: VIWeek 2020/Proper way to communicate over serial