Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

C Problem: Adressing a GPIB Instrument at GPIB Address + 1

$
0
0

I'm trying to write an iGPIB nstrument driver in C.

I have a Driver Template and get the input

 ViSession   VISAResourceName

 

So the instrument I want to control is an RF-Amplifier, which is internal two amplifiers, one from 9kHz to 400MHz, the second from 200MHz to 1GHz.

The output is routed into a second Amplifier on a different GPIB address, and in this Amplifier is the RF switch matrix which i have to switch for routing the Output of Amplifier 1 to the right output of Amplifier 2.

Amplifier 2 has the GPIB address of Amplifier 1 plus 1 (e.g. Amplifier 1 address 7, Amplifier 2 address 8).

How can I extract the GPIB address out of the VISAresourceName and set it to GPIB adddress +1?

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>