Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling agilents VSA software via SCPI interface

Agilents 89601B VSA software provides a SCPI programming interface over a TCP-IP Socket. Trying to access that interface from Agilents softwarestack ( IO-Libraries 16 ) looks fine ,but using NI-VISA-5.0.1/NI-MAX-4.7.2 makes problems.

The VSA software shows about its interface:

 

 SCPI.jpg

 

And using Agilents interactive IO utility to send an *IDN? to the VSA device looks fine

AIIO.jpg

 

How ever if I configure this resource into MAX reading the response from the *IDN? returns with an error code.

MAX is configured to:

MAX.jpg

 

and  pushing the validate button shows:

validate.jpg

 

Sending the *IDN? seems also to be fine:

send.jpg

 

but reading gives a BFFF015 return status:

read.jpg 

 

Any ideas, what's going wrong ?

 

 

0 Kudos
Message 1 of 3
(4,284 Views)

Did you try setting the termination character to 0x0A (\n)?

0 Kudos
Message 2 of 3
(4,280 Views)

Yes,I've tested  with VI_ATTR_TERMCHAR_EN = VI_TRUE and VI_ATTR_TERMCHAR = 0xA. With VSA Version 14.0 it made no difference but with Version 14.2 ( which I got from Agilent support today ) the return code of the viRead is now 3FFF0005 (VI_SUCCESS_TERM_CHAR) . I can live basically with that return code but it opens another question:

Can a viRead with that configuration also return VI_SUCCESS (0x0) ?

0 Kudos
Message 3 of 3
(4,262 Views)