From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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
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.