My own version of the code is a little simpler.
My use case is a little different as well. In TestStand, in PreUUTLoop, I like to check that all of my equipment is there. I call the above code for every DAQmx device and then save the Device Name into a FileGlobal for other steps to use in the future. One caveat is that my code makes an assumption that there's only one of any given product; use the first code as a template for finding multiple instances of a product.
I have seen other test systems where there are procedures to always give special names for every device and then the test code checks that those device names work. I think that's a fine way to things as well.
Some ways one could improve these examples:
We just sent you an email. Please click the link in the email to confirm your subscription!
OKSubscriptions powered by Strikingly