LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Any experience with Diamond Systems Universal Drivers?

I am trying to integrate a small subset of Diamond Systems Universal Drivers -- for only one of their A/D Converter Boards -- into a CVI project.  Executing their example code generates memory errors.
 
Does anyone out there have experience with these drivers?
0 Kudos
Message 1 of 6
(3,835 Views)
Howdy hendra,

Are these drivers simply DLLs that your a trying to call from LabWindows/CVI? If so, are you use the .lib and .h file or calling the DLL via Windows SDK functions?  What version of CVI are you trying to use? What types of memory errors are you seeing?

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 6
(3,815 Views)
Using the Diamond Systems Universal Drivers version 5.91 for Win32, the DSCUD.dll, .h and .lib files, within CVI 8.0.
 
Running one of their examples, which simply initializes the drivers, initializes the board (DMM-48AT), from a console window.  When compiled using an external compiler the example works fine.  When similar code is compiled in CVI and executed, the drivers initialize properly, but the when the board base address is used, the initializer driver issues a memory fault.
0 Kudos
Message 3 of 6
(3,813 Views)

Hi hendra,

Was this DLL created in a ANSI C compiler or a some other type of compiler like Visual C++. Different compilers set up different calling conventions.  


You may also want to check out the build settings for CVI under Options >> Build Options and see if changing up some of those configurations helps!

Hope this gives you some insight!

Best Regards,

 
Jonathan N.
National Instruments
0 Kudos
Message 4 of 6
(3,805 Views)

Hi,

One problem could be you are using the wrong callling convention to call the dll function. looking at the user manual the dll functions use CDECL.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 5 of 6
(3,773 Views)

Jonathan,

 

I am fascinated that you would answer a question I posed 19 years ago.  Trust me, that is so far OBE that I can't even remember what project I was working on.  But, thanks...

0 Kudos
Message 6 of 6
(39 Views)