Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

HP 8902 addressing issue

Hi,

 

I currently have an automation file in VB that communicates with various types of equipment using the visa interface commands, I am having trouble in writing to the 8902 as it is fairly old and when I communicate through NI max all is good as I can set different values. I ran NI spy and it gave me these:

 

ibconfig(UD0,ibcEOT(0x0004),1(0x1))

ibconfig(UD0,ibcEOSrd(0x000C),1(0x1))

ibconfig(UD0,ibcEOSwrt(0x000D),0(0x0))

ibconfig(UD0,ibcEOScmp(0x000E),0(0x0))

ibconfig(UD0,ibcEOSchar(0x000F),10(0xA))

 

I was wondering if anyone knew if I can use these commands with the visa commands or is there away around this.

 

Any help would be appreciated.

 

Thanks,

Stephen

0 Kudos
Message 1 of 2
(4,349 Views)

ni spy.png

 

 

A screenshot of NI spy if it help, lines 1 to 8 are using NI max and the rest is my vb code. I think the main problem is with the read and writes as I don't know how to setup the instrument through visa.

 

Thanks

0 Kudos
Message 2 of 2
(4,347 Views)