LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop bit (framing error)

READ_BLOCK_DIAGRAM.png

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...READ_VISA_CONFIGURATION_BLOCK.pngSTOPBIT-1.pngSTOPBIT-2.png

0 Kudos
Message 1 of 3
(169 Views)

What about the parity setting on your STM32 board?

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(123 Views)

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:

 

Clear for Non-488.2 Instruments (Serial Instr, TCP/IP Socket, USB Raw)

  • Serial Instr—VISA flushes (discards) the I/O output buffer, sends a break, and then flushes the I/O input buffer.

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.

Message 3 of 3
(96 Views)