To download NI software, including the products shown below, visit ni.com/downloads.
Overview
 This example VI can be used to programmatically identify which COM ports are connected on your machine.
 Description 
First, the VI identifies each machine that is connected to the COM ports using the *IDN? command. The nested Case Structures in the VI can be used and modified to perform any desired actions based on the acquired information from the COM ports.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.
bytes at port, someone is gona get angry
I'll just drop this link here...VIWeek 2020/Proper way to communicate over serial
hahhahaha no way