Example Code

Remove VISA Aliases Programmatically

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

    Driver

  • NI-VISA

Code and Documents

Third-Party Code Repository

Some users manage their code in repositories outside of ni.com. Use your best judgment when following links to third-party sites. https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAT9SAO&l=en-US

Description

You can use the System Configuration API (Measurement I/O palette >> System Configuration) to find all available hardware resources connected to the system, see which of them are actually present, and then delete the ones that are not. 

View attached VI for an example of this. See Remove Old VISA Resources from NI MAX and LabVIEW for more details.

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

Contributors