11-14-2006 03:43 PM
11-14-2006 04:53 PM
string s = "Dev1"; // Or whatever your device name is try { Device d = DaqSystem.Local.LoadDevice(s); MessageBox.Show("Device Name: " + s); MessageBox.Show("Model Name: " + d.ProductNumber); MessageBox.Show("Product Category: " + d.ProductCategory); MessageBox.Show("Interface:" + d.BusType); MessageBox.Show("AI Channels: " + d.AIPhysicalChannels.Length); } catch (DaqException ex) { MessageBox.Show(ex.ToString()); }
11-14-2006 07:31 PM
11-15-2006 03:15 PM
To get the list of device names on your system, you need to use the DaqSystem.Local.Devices property. For example:
foreach (String s in DaqSystem.Local.Devices) { MessageBox.Show(s); }
To get the number of devices, you can also use the Devices property:
MessageBox.Show(DaqSystem.Local.Devices.Length.ToString());