AnsweredAssumed Answered

How to change secondary address of GPIB by VISA

Question asked by yangroot on Apr 17, 2018

 

 

I am newbie of VISA, and now working with a GPIB.
Below works when I open session with secondary address
            ViOpen (defaultRM, "GPIB0::18::5::INSTR", VI_NULL,VI_NULL, &vi); 
But our instrument has different secondary addresses.
I try to below to change secondary address, but it does not work.
viSetAttribute(vi,VI_ATTR_GPIB_SECONDARY_ADDR,sAdd)

Outcomes