13.07.2015 Views

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix C: Compiling<strong>CompuScope</strong> <strong>SDK</strong> C/C++Sample Programs underLabWindows CVIThe <strong>CompuScope</strong> C/C++ <strong>SDK</strong> sample programs can be compiled under National <strong>Instruments</strong> LabWindowsCVI programming environment with relative ease. This document lists the changes required to use thecurrent sample programs from the <strong>CompuScope</strong> <strong>SDK</strong> for C/C++ under LabWindows CVI. After followingthese simple steps, your project can be compiled from within LabWindows CVI like any other CVI project.Modifications to the ‘app_supp.c’ file:App_supp.c is a C source file, which is common to all the <strong>CompuScope</strong> C/C++ <strong>SDK</strong> projects. This filecontains functions that initialize all the <strong>CompuScope</strong> boards found in the system and that set up the<strong>CompuScope</strong> hardware for acquisition by passing user defined parameters to the <strong>CompuScope</strong> boards.Using any Windows editor to open app_supp.c file, follow the steps listed below order to make necessarychanges to the app_supp.c source file so that it can be compiled within the LabWindows CVI environment.STEP 1:Remove the following include directives:#include #include #include #include STEP 2:Replace the line:with this one:gage_get_driver_info_structure (&major_version, &minor_version, &board_support, &gdi,…)gage_get_driver_info_structure ((uInt16 far *)(&major_version), (uInt16 far*)(&minor_version),(uInt16 far *)(&board_support), (void **)(&gdi), (long far *)(&gdi_size));<strong>CompuScope</strong> <strong>SDK</strong> <strong>Manua</strong>l Appendix C Page 71

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!