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.

Sample Programs Folder Structure used in<strong>CompuScope</strong> <strong>SDK</strong>sThe default directory for the <strong>CompuScope</strong> C/C++<strong>SDK</strong> sample programs is C:\Gage\<strong>CompuScope</strong> <strong>SDK</strong>for Windows\<strong>SDK</strong> for C-C++\. There are several example programs provided with the <strong>CompuScope</strong>C/C++ <strong>SDK</strong>. These sample programs each reside in their own Windows folder and acquire data usingseveral unique features of the <strong>CompuScope</strong> cards. Each folder contains all the files that are required tocompile the project in MS Visual C/C++.Each sample program is written to highlight a particular feature of the <strong>CompuScope</strong> hardware. Forexample, the gage_busmastering project is the simplest sample program that captures a signal on a single<strong>CompuScope</strong> card (in dual or single channel mode) and writes the data from all active channels to separateASCII data files. Data transfer is done using PCI bus-mastering.The list of all files contained in the gage_busmastering folder is as follows:Gage_busmasteringGage_busmastering.dswGage_busmastering.dspGage_busmastering.cGage_busmastering.hApp_supp.cApp_supp.hEeprom.hGage_drv.hGage_drv.libStructs.cStructs.hWhichdrv.hDebugGage_busmastering.exeGage_busmastering folder contains a subfolder named Debug. Debug folder consists of thegage_busmastering.exe, an executable built from the gage_busmastering project.The gage_busmastering project can be opened either by clicking on the gage_busmastering.dsw file or fromwithin the MS VC environment. If the project file gage_busmastering.dsw is opened in MS Visual C/C++and is rebuilt, then the executable will be created in the Debug folder.The layout of all other sample programs follow the same format as the one described above for thegage_busmastering project. Sample programs provided with the <strong>CompuScope</strong> C/C++ <strong>SDK</strong> have beenbuilt in the Microsoft Visual C 5.0 environment. These sample projects can also be compiled usingBorland Compiler. In order to do this, the user must simply collect the files required for the project andcreate a Borland project. Furthermore, the GAGE_DRV.LIB file must be modified using the IMPLIBfunctionality.Page 28<strong>CompuScope</strong> <strong>SDK</strong> <strong>Manua</strong>l

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

Saved successfully!

Ooh no, something went wrong!