I have a VXIpc770 (runs VxWroks 5.5) with GPIB interface.
After booting, i load below modules:
nivxi.o, vxiedit.o, resman.o, victext.o, nigpib.o, ibic488.o, visa.o
it works if use ibic function to control my GPIB instructment. below is the code: (it is a example code on the user manual )
int getInst()
{
char buf[1000];
printf("find board\n");
int board = ibfind("gpib0");
if( board == -1 ) {
printf("fail to open board\n");
return -1;
}
printf("ibsic, status=%x\n", ibsic(board));
printf("send command
'@!', status=%x\n", ibcmd(board, (void*)"@!", 2));
printf("send command '\\04', stauts=%x\n", ibcmd(board, (void*)"\0A", 1));
printf("write '*IDN?', status=%x\n", ibwrt(board, (void*)"*IDN?\n", 6));
printf("send command ' A', status=%x\n", ibcmd(board, (void*)" A", 2));
printf("read, status=%x\n", ibrd(board, buf, 1000));
buf[ibcnt]=0;
printf( "%s\n", buf );
ibonl( board, 0);
}
but if i use VISA function. i don't work.
viOpen( &rm , "GPIB0::1::INSTR", 0, 0, &inst)
the error status is bfff0011 means no such instructment
(i can open other instructments such as "VXI0::24::INSTR" use by VISA)
how do i config the visa to make it works?