To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example VI utilizes an event structure to handle the user selecting either a SMU or HSDIO device connected to a NI 2515 Switch.
Description
This VI runs continuously and reads the events triggered by the user to iterate between events in an event structure until the user selects "STOP." The user, by modifying the device selection, moves the event structure into the "Device Selection": Value Change event. In this event, there is a case structure to handle the selection made by the user. When the user selects "Disconnect," the event structure enters the "Disconnect": Value Change" event where the switch connection is broken. There is also a "Timeout" state that will pass current values along so that errors are handled appropriately.
Requirements
Software:
Hardware:
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.