errorhandle( "IORESET"); /* Report any problems */
error = IOTIMEOUT (isc, 5.0); /* 5 second timeout */
errorhandle( "IOTIMEOUT"); /* Report any problems */
error = IOCLEAR (isc); /* Clear the isc */
errorhandle( "IOCLEAR"); /* Report any problems */
sendstringcmd("*RST"); /* RESET the instrument */
/* set trigger mode to NORMAL */
sendstringcmd ( ":TRIGGER:MODE NORMAL");
/* set trigger type to Simple edge */
sendstringcmd ( ":TRIGGER:TYPE EDGE" );
/* set trigger to rising edge on channel 0 */
sendstringcmd (":TRIGGER:EDGE LCHANNEL0, RISING");
/* set thresholds, time base and delay */
sendstringcmd (":autoscale");
return 0;
} /* end main */
Programming Getting Started
Example program
26