S p e z i a l e l e k t r o n i k G m b H
iseg Spezialelektronik GmbH
Email: [email protected]
Phone ++ 49 351 / 26 996 - 0
Bautzner Landstr. 23
http://www.iseg-hv.com
Fax
++ 49 351 / 26 996 - 21
D - 01454 Radeberg / Rossendorf
Germany
10
*(ushort*) (base+START_VOLT_A) = 400;
/*set channel A voltage to 400 V
*/
printf("channel A voltage set\n");
*(ushort*) (base+START_VOLT_B) = 350;
/*set channel B voltage to 350 V
*/
printf("channel B voltage set\n");
sleep(5);
/* give the unit time to ramp
*/
value_s = *(ushort*) (base+ACT_VOLT_A);
/* read actual voltages
*/
printf("channel A is at %d V\n",value_s);
sleep(1);
/* allow for a new conversion
*/
value_s = *(ushort*) (base+ACT_VOLT_B);
printf("channel B is at %d V\n",value_s);
printf("press any key to ramp down and exit\n");
/* ramp channels down
*/
getc(stdin);
*(ushort*) (base+START_VOLT_A) = 0;
/*set channel A voltage to 0 V */
sleep(1);
*(ushort*) (base+START_VOLT_B) = 0;
/*set channel B voltage to 0 V */
return(0);
}
/***********************************************************/
/* vhq.h
*/
/*
*/
/*
header file for iseg vme hv boards
*/
/*
*/
/* mki,
24.1.96
*/
/***********************************************************/
/* vhq registers */
#define STAT_REG1
0x00
#define SET_VOLT_A
0x04
#define SET_VOLT_B
0x08
#define RAMP_SPEED_A 0x0C
#define RAMP_SPEED_B 0x10
#define ACT_VOLT_A
0x14
#define ACT_VOLT_B
0x18
#define ACT_CUR_A
0x1C
#define ACT_CUR_B
0x20
#define LIMITS_A
0x24
#define LIMITS_B
0x28
#define STAT_REG2
0x30
#define START_VOLT_A
0x34
#define START_VOLT_B
0x38
#define MOD_ID
0x3C
#define SET_CTRIP_A
0x44
#define SET_CTRIP_B
0x48
#define ushort
unsigned short