Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

PROBLEM CMU200 *OPT

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

opt.jpg

 

 

0 Kudos
Message 1 of 1
(5,433 Views)