CompuScope SDK Manua.. - Egmont Instruments
CompuScope SDK Manua.. - Egmont Instruments
CompuScope SDK Manua.. - Egmont Instruments
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
STEP 3:Replace these lines:// if (sample_rate_table[SRTI_EXTERNAL].sr_text != NULL)// free (sample_rate_table[SRTI_EXTERNAL].sr_text);// sample_rate_table[SRTI_EXTERNAL].sr_text = strdup (value_and_units_to_text……)strcpy (sample_rate_table[SRTI_EXTERNAL].sr_text,strdup (value_and_units_to_text…)with these 3 lines surrounded by a macro defined command:#ifndef _CVI_if (sample_rate_table[SRTI_EXTERNAL].sr_text != NULL)free (sample_rate_table[SRTI_EXTERNAL].sr_text);sample_rate_table[SRTI_EXTERNAL].sr_text = strdup (value_and_units_to_text ….)#endifSTEP 4:As in STEP 3, replace these 4 lines of code:// if (sample_rate_table[SRTI_EXTERNAL].sr_text != NULL)// free (sample_rate_table[SRTI_EXTERNAL].sr_text);// sample_rate_table[SRTI_EXTERNAL].sr_text = strdup (value_and_units_to_text……)strcpy (sample_rate_table[SRTI_EXTERNAL].sr_text,strdup (value_and_units_to_text…)with these 3 lines surrounded by a macro define#ifndef _CVI_if (sample_rate_table[SRTI_EXTERNAL].sr_text != NULL)free (sample_rate_table[SRTI_EXTERNAL].sr_text);sample_rate_table[SRTI_EXTERNAL].sr_text = strdup (value_and_units_to_text ….)#endifModifications to the ‘app_supp.h’ fileRemove the following include directives#include #include #include #include Modifications to the Project Source FileEach project in the <strong>CompuScope</strong> C/C++<strong>SDK</strong> for Windows contains a project source file. This filegenerally bears the same name as the project folder itself. For example, the Gage_busmastering projectfolder contains a source file named Gage_busmasterin.c. This file, Gage_busmastering.c, contains themain() code sequence of the Gage_busmastering project.Add following include directive at the beginning of the main C source file (e.g.#include Page 72 Appendix C <strong>CompuScope</strong> <strong>SDK</strong> <strong>Manua</strong>l