CUlmsch
2007-09-03 18:40:10 UTC
I am using VB 6.0
See sample code below
Private Sub Command1_Click()Dim MyName As StringDim MyString As String
DAQmxErrChk DAQmxGetSysDevNames(MyName, 256)
DAQmxErrChk DAQmxGetDevProductType("Dev2", MyString, 256)
End Sub
Using the above code with a USB-6501 connected, Both MyName and MyString return empty (MyName = "", MyString = "")
I know thw device is Dev2 since that is the device I use in the rest of the program that allows me to read and write data. I am just trying to programaticaly determain the devices connected sinc this is a test system with sveral NI USB devices
I am able to get DAQmxGetDevSerialNum to return the correct Serial number for "Dev2"
See sample code below
Private Sub Command1_Click()Dim MyName As StringDim MyString As String
DAQmxErrChk DAQmxGetSysDevNames(MyName, 256)
DAQmxErrChk DAQmxGetDevProductType("Dev2", MyString, 256)
End Sub
Using the above code with a USB-6501 connected, Both MyName and MyString return empty (MyName = "", MyString = "")
I know thw device is Dev2 since that is the device I use in the rest of the program that allows me to read and write data. I am just trying to programaticaly determain the devices connected sinc this is a test system with sveral NI USB devices
I am able to get DAQmxGetDevSerialNum to return the correct Serial number for "Dev2"