Solution
To continue reading a string even after a termination character is received, it is necessary to set the Termination Character Enable and Serial End Mode properties using a Property Node. Follow the steps below to implement this:
- Place a Property Node on the Block Diagram of your VI.
- Connect your VISA resource name to the Reference input of the Property Node.
- Right-click the Property element of the Property Node and click Change All To Write from the shortcut menu.
- Drag the bottom edge of the Property Node to reveal two property elements instead of one.
- Click the first Property element and select Messager Based Settings >> Termination Character Enable.
- Right-click this property and select Create >> Constant. Ensure this value is set to False (which it is by default).
- Click the second Property element and select Serial Settings >> End Mode for Reads.
- Right-click on this property and select Create >> Constant. Ensure this value is set to None.
- By default, VISA sessions will use a termination character of line feed, 0x0A or \n.
The code snippet below is an example of a simple serial read and write using NI-VISA, where the properties described above have been configured to ensure that the full message (including termination characters is read):

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.