This VI demonstrates how to use property nodes to poll your system for a particular device, so that you can programmatically choose the Physical Channel input for DAQmx Create Channel.vi.
This programmatically inputs the device name into the DAQmx Create Channel "physical channel" sink. It queries the system for available device and finds the device name based on matching the device product type to the device you specify. Loop through the array of DevNames in the System until the device you are looking for (A) matches the ProductType output (B). Concatenate a string: device name + "/" + channel. This string can be used as input into the "Physical Channel" input for the Create Channel.vi.
LabVIEW 2012 or compatible
NI-DAQmx 9.5.5 or compatible
NI Multifunction DAQ Device
Steps to Implement or Execute Code
1. Design a file path 2.Use the create virtual channel drop down box to select the log channel and window channel by control clicking the two. 3. Run the VI 4.Observe the results in the text file after stopping it.
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**