Example Code

Serial Write One Character at a Time.

Code and Documents


Download All


Some instruments can only handle a single Byte(ASCII Character) at a time, and not the full string. This example provides a VI as a drop in replacement for the VISA write.

This example provides a VI, one-at-a-time.VI ,that will break your string to write down into a series of individual bytes to write out one at a time at an interval specified by the user. 

To demonstrate the use of this VI, there is a example program based off of the LabVIEW Basic Serial Read Write Example found in the example finder. Here the VISA write has been replace by One at a Time.VI. This could also be dropped into any other VISA serial program.

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