Agilent Technologies E1326B Manual de usuario Pagina 240

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 291
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 239
/* write command to command register */
/* wait for mm ready bit = 1 */
while(!READY);
iwpoke((unsigned short *)(base_addr_dmm + 0x08),command);
/* write parameter to parameter register */
/* wait for mm ready bit = 1 */
while (!READY);
iwpoke((unsigned short *)(base_addr_dmm + 0x0A),parameter);
/* save aperture time, range, and function for reading conversion */
if (command == 0)
aper = parameter;
else if (command == 2)
rng = parameter;
else if (command == 4)
func = parameter;
while(!DONE); /* wait until mm is done before sending the */
/* next command and parameters */
if(!NOERR) check_for_error(base_addr_dmm);
/* check for configuration errors */
}
/******************************************************/
void set_sample_period(char *base_addr_dmm, int command, unsigned
short parameter)
{
/* this function sets the multimeter sample period */
/* parameter variables */
unsigned short parm1 = 0, parm2 = 0;
/* convert parameter (sample period) to two bytes */
parm1 = parameter >> 8; /* upper byte */
parm2 = parameter & 0xFF; /* lower byte */
/* write command to command register */
/* wait for mm ready bit = 1 */
while(!READY);
iwpoke((unsigned short *)(base_addr_dmm + 0x08),command);
/* write upper byte to parameter register */
/* wait for mm ready bit = 1 */
while (!READY);
iwpoke((unsigned short *)(base_addr_dmm + 0x0A),parm1);
/* write lower byte to parameter register */
/* wait for mm ready bit = 1 */
while (!READY);
Continued on Next Page
Appendix C HP E1326B/E1411B Multimeter Register-Based Programming 241
Vista de pagina 239
1 2 ... 235 236 237 238 239 240 241 242 243 244 245 ... 290 291

Comentarios a estos manuales

Sin comentarios