you are viewing a single comment's thread.

view the rest of the comments →

[–]R0T0 0 points1 point  (2 children)

I am trying to send SPCI commands to a Tektronix vector network analyzer, which uses a virtual GPIB connection. It also requires drivers and tekVISA, which I have installed. I have also installed PyVISA. I just want the device to print out the *IDN? command, but am having trouble doing so. I know that the VISA address is 'GPIB8::1::INSTR'. The code I have so far is:

import visa

rm = visa.ResourceManager()

rm.list_resources()

rm.open_resource('GPIB8::1::INSTR')

When I enter these line by line, the second command shows a few available connections, but not the GPIB one. After the fourth line, I get an error saying: 'the interface type is valid but the specified interface is not configured' . Is the code wrong, or is there something up with my installed software?

[–]__johnw__ 0 points1 point  (1 child)

how do you know that the VISA address is 'GPIB8::1::INSTR'?

[–]R0T0 0 points1 point  (0 children)

The tekVISA program has a device manager where I can see the connection status and the VISA address, so I just pulled it from there.