LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

registering class drivers in MAX

When I create a Software Module entry in MAX for my driver that I just wrote (using LabWindows CVI), do I point the link to the dll itself, or to the export library?
I've also generated a class driver, and it can't seem to properly communicate with the Init function. I get back error BFFA0011, indicating that the function isn't supported, but I checked all of the parameters and they seem ok.
0 Kudos
Message 1 of 2
(3,059 Views)
The Software Module entry should point to the full pathname or simple filename of driver DLL. If you have your specific driver installed at IVI Standard Root Directory, you can just specify simple filename. Otherwise you have to specify full pathname.
 
And for the error you get from class driver, it has several possibilities. Could you provide detailed error senario? Or follow the steps below and answer the questions:
 
(1) Make sure you pass logical name for Init function. Class driver accept logical names that you configure and save with MAX.
 
(2) Make sure the logical name is configured correctly in MAX.
     Does the logical name point to the right driver session?
     Does the driver session point to right hardware resource through hardware configuration page? If hardware asset is not set, you can only use the driver in simulation
         mode.
     Does the driver session point to right software module through software configuration page?
    
(3) Make sure the Init function is exported in specific driver DLL.
 
(4) If all of the settings above are correct, try to call Init function from NI class driver and see if you get the same error.
0 Kudos
Message 2 of 2
(3,029 Views)