11-11-2024 03:52 AM
I am trying to query the USB-6001 DAQ in VS2022 (C#) - Windows 10 with .NET 4.5 Framework, with the NI DAQmx and Common DLLs added as references - to determine the device present before configuring the various parameters etc.
The app is a fairly simple one to query a few external A/D voltages.
Using the following returns "Dev1" but what I'm really after is a more elaborate Device type, if that exists (eg "USB-6001"):
Q: Is there a function that allows one to query that device info?
Solved! Go to Solution.
11-16-2024 11:46 AM
Use Device class to access its properties.
Console.WriteLine("Alias\t\tType");
string[] strDevices = DaqSystem.Local.Devices;
foreach (string strDev in strDevices)
{
Device dev = DaqSystem.Local.LoadDevice(strDev);
Console.WriteLine(strDev + "\t\t" + dev.ProductType);
}
11-18-2024 02:49 AM
Thank-you!👏