Bnc 1105 Universal Counter Manuale Utente Pagina 183

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 197
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 182
183
183183
183
stat = viOpen (defaultRM, rsrcName, VI_NULL, VI_NULL, &sesn);
if (stat < VI_SUCCESS)
{
printf ("Could not open %s, status = 0x%08lX\n",rsrcName, stat);
return 0;
}
else
{
stat = viGetAttribute (sesn, VI_ATTR_INTF_INST_NAME, intfDesc);
printf ("Resource %s, Description %s\n", rsrcName, intfDesc);
}
stat = viFindNext (flist, rsrcName);
//Setting Process Timeout
stat = viGetAttribute(sesn, VI_ATTR_TMO_VALUE, &tmo);
stat = viSetAttribute(sesn, VI_ATTR_TMO_VALUE, 30000);
//send reset command '*RST' -- reset MODEL 1105
stat = viWrite(sesn, (unsigned char *)("*RST"), 4, &ret);
//send Clear command '*CLS'-- Clear MODEL 1105 status register
stat = viWrite(sesn, (unsigned char *)("*CLS"), 4, &ret);
//send reset command 'INIT:CONT ON' -- Initial MODEL 1105
stat = viWrite(sesn, (unsigned char *)("INIT:CONT ON"), 12, &ret);
//Send commands befor measure (required)
/*----------------------------- CH1 Input Condition -----------------------------*/
stat = viWrite(sesn, (unsigned char *)("INP1:IMP 1000000"), 16, &ret);
stat = viWrite(sesn, (unsigned char *)("INP1:COUP AC"), 12, &ret);
stat = viWrite(sesn, (unsigned char *)("INP1:ATT 1"), 10, &ret);
stat = viWrite(sesn, (unsigned char *)("INP1:FILT OFF"), 13, &ret);
stat = viWrite(sesn, (unsigned char *)("EVEN1:SLOP POS"), 14, &ret);
stat = viWrite(sesn, (unsigned char *)("EVEN1:HYST:REL 50"), 17, &ret);
stat = viWrite(sesn, (unsigned char *)("EVEN1:LEV:REL 50"), 16, &ret);
Vedere la pagina 182
1 2 ... 178 179 180 181 182 183 184 185 186 187 188 ... 196 197

Commenti su questo manuale

Nessun commento