To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to programmatically reset a USB DAQ device that has been unplugged and then reconnect and continue running in LabVIEW.
Description
If you want to start with the device unplugged, you will need to right click the DAQ assistant and choose Generate DAQmx code. This will allow you to choose the appropriate device prior to starting the VI.
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.
Very elegant solution, Tahnks
Who made this code look so shitty!?
This code might work as intended but you would fail a CLD exam if this was the level of tidiness you delivered.
NI, you need to do better than this in ALL of you example code. You will make beginners think that it OK to be sloppy when programming and that just destroys code quality in general. That will in turn give LabVIEW a bad reputation for. You need to do better. I know this is an old code sample, but it is still online, and you need to make sure that all the code than is presented online at least will pass the minimum requirements for passing your own certifications.
Please step up.