Obtaining a List of Only the COM Ports as VISA Resource Names

Publish Date: Feb 21, 2018 | 9 Ratings | 2.33 out of 5 | Print | Submit your review


This document explains how you can obtain a list of only the COM ports while using VISA Find Resource.vi.

1. Introduction

You can do this by filtering through the VISA Resource Names returned by VISA Find Resources.vi. In a For loop, use VISA Open to open each resource, then use a Property Node to obtain the Interface Description (Properties » Interface Information » Interface Description). This property details whether a resource is a COM port or an LPT port. Using this information, you can discern which type it is with Match Pattern and a Conditional terminal. Use VISA Close to close the reference.

The below VI snippet shows an example of how to do this.



Back to Top

2. Additional Resources

Back to Top

Bookmark & Share



Rate this document

Answered Your Question?
Yes No