01-21-2008 12:49 PM
01-21-2008 01:32 PM
01-22-2008 04:35 PM
Hi Nick,
Thanks you for using the discussion forums.
You can open a device’s Test Panel using the WinExec function. This calls the test panel command line, which takes in a device name as a parameter and opens its associated test panel.
Here is a link to this function call on MSDN
WinExec Function
http://msdn2.microsoft.com/en-us/library/ms687393(VS.85).aspx
The command for the Test Panel is: nidmfpan.exe /devid:“DeviceName”
Please note that this requires the Kernel32 library
Hope this helps
Chris_K
01-22-2008 09:07 PM
01-24-2008 12:24 PM
02-25-2008 01:05 PM
Is the device name required?
Ie: Can I do something like
string path = Environment.SystemDirectory + @"\nidmfpan.exe"; string DeviceName = "Dev1"; // or whatever your device is
if (System.IO.File.Exists(path))
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = path;
proc.StartInfo.Arguments = "/devid:\"" + DeviceName + "\"";
proc.Start();
}
else
{
MessageBox.Show("Cannot find your National Instruments installation");
}
02-25-2008 01:38 PM