hi,
I trouble in the problem with this: when i program in CMU200 with NI visa,the code:
viFindRsrc(vi,"GPIB[0-9]*::?*INSTR",&findlist,i,addr)
viOpen(vi,addr,0,0,&defaultrm)
viSetAttribute(defaultrm,VI_ATTR_SEND_END_EN,VI_FALSE)
viSetAttribute(defaultrm,VI_ATTR_TERMCHAR,0x0A)
viSetAttribute(defaultrm,VI_ATTR_TERMCHAR_EN,VI_TRUE)
viSetAttribute(defaultrm,VI_ATTR_SUPPRESS_END_EN,VI_FALSE)
int opt_size=1000;
viQueryf(defualtrm,"*opt?\n","&#t",&opt_size,opt)
ofstream file_out;
file_out(filename);
file_out<<opt<<endl;
Why show below in the file?
0,0,0,B21Var14,0,0,0,0,0,0,0,0,0,0,0,B54Var14
below int NI