LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find Ivi_InitWithOptionsAndGetError in ivi.dll

When I run the example of "hp33120a Getting Started", which belongs to the driver of Hewlett Function Generator, two errors occur. One is in the running of the SubVI of "hp33120a close.vi", the problem is that the ivi.dll-file does not contain the function of Ivi_initWithOptionsAndGetError. I checked the library, it indeed does not contain the function. What is the reason?
Q. Huang (qxhuang@ni.aist.go.jp)
0 Kudos
Message 1 of 7
(4,520 Views)
Hmmm.... it's not in my copy of ivi.dll, either. Moreover, it's not in any IVI specification that I can see. Perhaps the subVI was meant to point to hp33120a-32.dll (or whichever DLL this driver uses). You might try looking inside the HP DLL for a similarly-named function, but it will probably be called hp33120a_InitWithOptionsAndGetError or something like that. This might be something specific to HP and not required by the IVI standard.

I'm curious why the Close VI would need the InitWithOptions function. In most LabVIEW wrappers I've seen for IVI drivers, the Close VI only calls the prefix_Close() function. You could try pointing the Close VI's Call Library Node to the prefix_Close() function inside the HP DLL and see if that works.

The only other poss
ibility I can think of is that the function name got mangled somehow because the driver was expecting a different version of the IVI Engine. What version of the IVI Engine are you using? You can check this by going to Start >> Settings >> Control Panel >> Add/Remove Programs, or by launching MAX and looking under the Software tab. You might want to upgrade to version 1.83 if you don't already have it.
0 Kudos
Message 2 of 7
(4,521 Views)
I have the same problem with LV 7.0 'IVISwtch Initialize With Options.vi' trying to call a function named InitWithOptionsAndGetError in the switch driver DLL.  I could not find this function in the IVI specification.  Is it an exentension added by NI?  Is it a bug?
0 Kudos
Message 3 of 7
(4,310 Views)
Hey All,
Can you let me know what specific error you are receiving.
Regards
Nikhil A
0 Kudos
Message 4 of 7
(4,298 Views)
IviSwtch Initialize With Options.vi<ERR>Driver Status:  (Hex 0xBFFA0011) Primary Error: (Hex 0xBFFA0011) Function or method not supported.
Elaboration: FunctionId: 3,  FunctionName: InitWithOptions

I'm using the IVI Compliance Package 2.2 (aborted on upgrade to 3.0 due to lack of LV7.0 support).
0 Kudos
Message 5 of 7
(4,272 Views)
The problem was that in MAX I setup the driver prefix in UPPERCASE and it should have been lowercase.
0 Kudos
Message 6 of 7
(4,265 Views)
Hey,
It is an extension, and it looks like you have taken care of the issue, if  you have any questions or concern feel free to post.
Regards
Nikhil A.
0 Kudos
Message 7 of 7
(4,249 Views)