LabWindows/CVI version 5.0 and higher DLL interface instructions. Written by a Signametrics customer: Roger of Litton Systems. LabWindows/CVI 5.01 makes life a bit easier than the old description and the documentation states required for version 4.01. The following is the step by step instructions for interfacing the Signametrics Products to LabWindows/CVI 5.01 for Win95,98,NT. 2000, XP and Vista Procedure: 1) First install the Signaemtrics product (simple Plug-and-Play), and verify operation with the installed Virtual Instrument panel. 2) Modify the SMX4032.H file (the API declarations): a) Before the first statement add #include <windows.h> b) If "utility.h" is inlucded, make sure CVI sees "window.h" before "utility.h". 3) Copy the following files into the directory where you will be doing your work. These are files which get copied to your system when you run setup of the Win95 disks, for Win95 or NT. a) The modified SMX4032.H ( see section 2 above ) b) SMX4032.lib c) SMX4032.dll 4) In your project 'projectname', in addition to the normal files CVI requires, have the following included (listed). a) modified SMX4032.H b) SMX4032.lib 5) In your C file (source code where main() is located), have the following include statement. a) #include "SMX4032.H" b) This line will be referencing the modified SMX4032.H This procedure should work for LabWidnows/CVI version 5.0 and higher. We have not tried all of the DMM commands, but we do not expect any problems. Regards, Roger Litton Systems. Please send Signametrics comments or improvement for the above. Our Email address is support@signametrids.com LabWindows/CVI Version 4.0.1: ------------------------------ Step by step Signametrics product LabWindows/CVI 4.0.1 interface written curtesy of Mike S. of the Sony corporation, edited by M. Kaufmann of Signametrics. To run the product under LabWindows/CVI 4.0.1 you will need Signametrics Windows 95 32-bit dll. Make sure you have the most up to date version. If you don't, just download this two disk package from our site at signametrics.com. This dll is placed at Windows\System when you install the product's Win95 S/W set. Just run 'SETUP.EXE' in the Win95 disk1. If using NT4.0 follow the Signametrics installation instructions included with the NT floppy, which places the DLL at C:\Winnt\System32 In addition to the 32-bit dll, this disk will install a .def file, and a .h file. This procedure will build a new .lib file which LabWindows/CVI can link with. If not already there, copy the product's DLL into Windows\System Make a copy of the .H file and give it a different name (for instance new_gen.h). Keep the existing SMX4032.H file because you will have to #include it in your source. In the new .h file, delete all the #defines (which includes function/range defs, reading rate defs, cal/config file names, and error codes). You will be left with a typedef struct statement and the WINAPI function prototypes. At the top of this .h file place: #include <windows.h>. Save this edited file under its new name. Then, with the file still open in the editor, pull down GENERATE DLL IMPORT LIBRARY under OPTIONS in LabWindows/CVI. It will ask you to provide the path to the DLL file. When you click <ok>, the import libarian will create the library. It will give you a long list of warnings about some function prototypes not being found (it's because it is looking for the function prototypes of <windows.h> in the DLL, which it can't find). Ignore these warnings. When the librarian is done, it will have created a .lib file with the same name as your newly-named .h file (i.e. new_gen.lib) in the current directory. Include the generated .lib file and the .def file in your LabWindows/CVI project. Also put the product's DLL there as a reminder of its existence, the the project manager indicates that it is not compilable/linkable and dehighlights it, which is OK. The functions in the manual/header file should now be usable by your source code. That's it! Mike S. SONY Customer provided CVI samples: ------------------------------- LabWindows/CVI example: Curtesy of Bourns Co. Using a timer the DMM can make repated measurements. It is assumed that the DMM was previously initialized, the measurement funciton was set, and the appropriate range was selected. /***************************************************/ //****TIMMER TO DRIVE DMM READING CONTINUOS MODE *** /***************************************************/ static int panelHandle; int CVICALLBACK TIME_2 (int panel, int control, int event, void *callbackData, int eventData1, int eventData2) { double reading = 0.0 static double trMeasured; switch (event) { case EVENT_TIMER_TICK: readStatus = DMMRead (0, &reading); if (readStatus == DMM_E_RANGE) reading = 99999999.0; trMeasured = reading; SetCtrlVal (panelHandle, PANEL_TR_VALUE, trMeasured); PlotStripChartPoint (panelHandle, PANEL_STRIPTR2, trMeasured); break; } return 0; } Another input from a customer as to the required changes to the header file: ============================================================================ Add at the beginning of the SMX4032.h other product's file the following lines: #ifndef WINAPI #define WINAPI __declspec(dllimport) #endif #ifndef CHAR typedef char CHAR; typedef CHAR *LPSTR; typedef const CHAR *LPCSTR; #endifDownload Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.