LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

While trying to debug an IVI driver project, I get this error...

I'm trying to figure out how to develop a switch IVI driver with LabWindows/CVI. I've run the IVI code generator wizard and I want to try running the skeleton code in MAX so that I can debug the driver as I add changes. Its easier to code when you start out with something that works then add things and see if it breaks. I set up the debugger to run MAX and added a logical name, driver session, and Instrument Driver Software Module pointing to my dll.
When I tried to add MySwitch in Switch Executive I got this error:

An error has occurred while attempting to access device MySwitch
Primary Error: (Hex 0xBFFA0011) Function or method not supported.
Elaboration: FunctionId:3, FunctionName: InitWithOptions

I thik this might be happening because I am not setting the right configuration options to simulate the switch. I tried adding breakpoints to the MySwitch_InitWithOptions function to help me figure out the problem but they didn't get hit apparently.

Here's my main question: What are the steps I need to take to simulate the skeleton code driver generated by the IVI driver wizard?

Thanks,
Eric Pope


0 Kudos
Message 1 of 2
(2,964 Views)
Hello Eric,

If you have the IVI Compliance Package 2.2, you should be able to go to Tools -> Test IVI Specific Driver in CVI.  This should help you test your driver and also help find the source of the error.

You can also look at this previous post for some more help.  Specifically, the last post which says:

Without taking a closer look at the driver, it is hard to guess what is causing the issue. One suggestion would be to make sure that the prefix you are using in the IVI Specific Driver Test Suite is correct. So the correct prefix in your case would be my1467 instead of my1467_. Also, you should check if the my1467_init function is exported in the DLL

You could try usgin
MySwitchInitWithOptions  instead of MySwitch_InitWithOptions  for your function name.

Let me know if this helps.  Have a great day.
O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 2
(2,940 Views)