Sicl Example In Visual Basic - Agilent Technologies InfiniiVision 5000 Series Programmer's Manual

Hide thumbs Also See for InfiniiVision 5000 Series:
Table of Contents

Advertisement

{
}
/*
* retrieve_waveform
* ------------------------------------------------------------------
* This function retrieves previously saved waveform data from a
* file called "wave.dat".
*/
void retrieve_waveform(void)
{
}

SICL Example in Visual Basic

To run this example in Visual Basic for Applications:
1
2
3
4
5
6
7
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
FILE *fp;
fp = fopen("c:\\scope\\data\\wave.dat", "wb");
/* Write preamble. */
fwrite(preamble, sizeof(preamble[0]), 10, fp);
/* Write actually waveform data. */
fwrite(waveform_data, sizeof(waveform_data[0]),
(int)preamble[2], fp);
fclose (fp);
FILE *fp;
fp = fopen("c:\\scope\\data\\wave.dat", "rb");
/* Read preamble. */
fread (preamble, sizeof(preamble[0]), 10, fp);
/* Read the waveform data. */
fread (waveform_data, sizeof(waveform_data[0]),
(int)preamble[2], fp);
fclose (fp);
Start the application that provides Visual Basic for Applications (for
example, Microsoft Excel).
Press ALT+F11 to launch the Visual Basic editor.
Add the sicl32.bas file to your project:
Choose File>Import File....
a
Navigate to the header file, sicl32.bas (installed with Agilent IO
b
Libraries Suite and found in the Program Files\Agilent\IO Libraries
Suite\include directory), select it, and click Open.
Choose Insert>Module.
Cut- and- paste the code that follows into the editor.
Edit the program to use the SICL address of your oscilloscope, and save
the changes.
Run the program.
Programming Examples
689
12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents