Example Code

Read Serial Port until no data is left

Code and Documents

Attachment

This example shows how you can read the serial port until no data is left, for example if you are receiving variable lenght messages you can read the whole message and then wait for the next one

Snippet.png

Francisco Arellano

National Instruments Mexico
Field Systems Engineer - Energy Segment
www.ni.com/soporte

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors