Bnc 1201 - 6 1/2 Digit Digital Multimeter Manual do Utilizador Página 171

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 177
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 170
172
void main(int argc, char* argv[])
{
// TODO: Add your control notification handler code here
HINSTANCE hUSBTMCLIB; // for USBTMC HANDLE
unsigned long m_defaultRM_usbtmc, m_instr_usbtmc;
unsigned long m_findList_usbtmc;
unsigned long m_nCount;
ViStatus status;
int m_Timeout = 7000;
char *pStrout; // Write out data buffer
BYTE pStrin[64]; // Read in data buffer
int len;
ULONG nWritten;
ULONG nRead = 0;
char buffer[256];
char instrDescriptor[256];
// Load the NI-VISA library for USBTMC device
hUSBTMCLIB = LoadLibrary ("visa32.dll");
if (!hUSBTMCLIB)
{
MessageBox(NULL, "NIVISA for USBTMC library not found.", "1201
multimeter device test", MB_OK);
return;
}
// Link the libraries
signed long (__stdcall *PviOpenDefaultRM_usb) (unsigned long *vi);
signed long (__stdcall *PviFindRsrc_usb) (unsigned long sesn, char
*expr, unsigned long *vi,
unsigned long
*retCnt, char far desc[]);
signed long (__stdcall *PviOpen_usb) (unsigned long sesn,
char *name, unsigned long mode,
unsigned long
Vista de página 170

Comentários a estes Manuais

Sem comentários