03-27-2025 11:43 PM
I set the stop bit 2 in stm32 board and set the same stop in labview and trying to read data, it reads data but still give framing error..
when i set the stop bit to 1 and try to read data, it reads data and give framing error...
03-28-2025 03:54 AM
What about the parity setting on your STM32 board?
03-28-2025 03:30 PM
Serial is often infuriating to work with because the speed and protocol settings on both sides have to match exactly. One setting off, and it all falls apart.
If you get an error, it's almost always because the settings you put in LabVIEW don't match the device.
One thing I do note in your code is your use of a "VISA Clear" node. Why is this there?
It may be that you just want to make sure there's nothing remaining in the buffer before you start. If so, it does do this, but it also does something else. Per the help docs:
That middle part, "sends a break", may be messing up your remote device.
If all you want to do is clear the buffers, use the "Flush I/O Buffer" node instead.