To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to perform Serial I/O in NI VeriStand through a loopback test.
Description:
The Serial I/O is performed through LabVIEW code (based on the Basic Serial Write and Read example) compiled into a LabVIEW model (.lvmodel) following the steps in Using Models Created with LabVIEW in NI VeriStand. A tester VI was also written to demonstrate how the NI VeriStand Engine performs the loopback test.
Before using this code, first follow the instructions in How to Do a Serial Loopback Test to set up your serial cable for a loopback test.
-Serial Operations.vi
This VI performs the Serial I/O operations and can be compiled into a LabVIEW model. It has the following states:
-VeriStand Engine.vi
This tester VI demonstrates how the NI VeriStand Engine calls Serial Operations.lvmodel. The different VeriStand Engine elements involved are:
Steps to implement or execute code
To implement this example:
Requirements
Software
LabVIEW 2012 or compatible
NI VeriStand
Hardware
-
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.