Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use send command with secondary address for borlandC_obj with Decl32.h

I use borland C++ builder within Decl-32.h and BorlandC-gpib-32.obj

For primary address example, I used send(0,(Addr4882_t)5,"*IDN?",5L,NLend) and it worked.

But I forgot how to set the secondary address to control it.

I knew that secondary is high-bit(96-xxx) and primary is the low-bit(0-30)

I use the MakeAddr(8,98) function, it shows me that result is 25xxx.

And I try to use 25xxx in send() function, it couldn't work.

Anyone can help to tell me how to use the correct syntax in send() with secondary GPIB address???

PS: I try to use 0x9808 and 9808...it still couldn't work.... Q_Q
0 Kudos
Message 1 of 2
(2,602 Views)
I believe that to address PAD 8, SAD 2 you will want to use a word 0x6208. See the help topic "General Program Steps and Examples for Your Multi-Device Application" in NI-488.2 help for another example and more information.

Scott B.
GPIB
National Instruments
0 Kudos
Message 2 of 2
(2,594 Views)