User`s manual

140
Chapter 7 Application Programs
Visual C++ Example Program
7
/* Create a scanlist, then set up a loop to scan through
the channels two times. */
viPrintf( vi, "SLIST 100-103\n");
for ( i = 0; i < 8; i++ ) {
viPrintf( vi, "STEP\n" );
Sleep( 25 ); // Wait 25 milliseconds.
}
printf( "Scan End.\n" );
viClose( vi ); // Close session to 3499A/B/C.
viClose( drm ); // Close session to the resource manager.
}