User Manual

Series 2200 Programmable DC Power Supplies Reference Manual Section 4: Command reference
2200S-901-01 Rev. A/November 2011 4-45
{
clock_t goal;
goal = wait + clock();
while(goal > clock());
}
Example 2
This example shows a command sequence that configures a three-step list to execute once in
continuous mode. It saves the list in location 1, and then places the instrument in list mode and runs
the list.
SYSTEM:REMOTE
*RST
TRIGGER:SOURCE BUS
LIST:MODE CONT
LIST:COUNT ONCE
LIST:STEP 3
LIST:VOLT 1,2V
LIST:CURRENT 1,1.0A
LIST:WIDTH 1,5s
LIST:VOLT 2,4V
LIST:CURRENT 2,1.0A
LIST:WIDTH 2,10s
LIST:VOLT 3,0V
LIST:CURRENT 3,0.1A
LIST:WIDTH 3,2s
LIST:SAVE 1
FUNCTION:MODE LIST
OUTPUT ON
TRIGGER IMMEDIATE
Example 3
This example shows a command sequence that configures a two-step list to execute 20 times. It
saves the list in location 1, and then places the instrument in list mode and runs the list.
SYSTEM:REMOTE
*RST
TRIGGER:SOURCE BUS
LIST:MODE CONT
LIST:COUNT 20
LIST:STEP 2
LIST:VOLTAGE 1,5V
LIST:CURRent 1,1.0A
LIST:WIDTH 1,10s
LIST:VOLTAGE 2,5.5V
LIST:CURRent 2,1.0A
LIST:WIDTH 2,5s
LIST:SAVE 1
FUNCTION:MODE LIST
OUTPUT ON
TRIGGER:IMMEDIATE