Example 2 Setting The Basic Measurement - Rigol DS1204B Programming Manual

Digital oscilloscope, ds1000b series
Hide thumbs Also See for DS1204B:
Table of Contents

Advertisement

Example 2 Setting the basic measurement

/*Save the character string of equipment identifier the *IDN command
returned*/
char s8IDNString[256];
void BasicSetup(void)
{
/*Firstly acquire the equipment identifier*/
viQueryf(g_vi,"*IDN?\n","%t",s8IDNString);
/*Send the command :AUTO, and the equipment sets automatically
according to the current signal to display best*/
viPrintf(g_vi,":AUTO\n");
/*Send the command :CHANnel<n>:PROBe to set the probe
attenuation factor*/
viPrintf(g_vi,":CHAN1:PROB 10X\n");
/*Send the command :CHANnel<n>:OFFSet to set the vertical
offset*/
viPrintf(g_vi,":CHAN2:OFFS 20\n");
/*Send the command :TIMebase[:MAIN]:SCALe to set the horizontal
scale*/
viPrintf(g_vi,":TIM:SCAL 1e-8\n");
/*Send the command :TIMebase[:MAIN]:OFFSet to set the horizontal
timebase*/
viPrintf(g_vi,":TIM:OFFS 2e-6\n");
/*Send the command :TRIGger:MODE to set the trigger mode*/
viPrintf(g_vi,"TRIG:MODE EDGE\n");
/*Send the command :TRIGger:EDGE:SLOPe to set the edge type of
edge trigger*/
viPrintf(g_vi,"TRIG:EDGE:SLOP POS\n");
}
Programming Guide for DS1000B Series
RIGOL
3-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ds1104bDs1064b

Table of Contents