VISA_open - Open a VISA session
This function opens a VISA session. It should be used if the interface is differant thant "GPIB0::xx::INSTR". For GPIB0, you can use GPIB_write() and GPIB_read().
// Lecture du wattmètre GPIB ANRITSU // VISA_open(1,"GPIB0::13::INSTR") VISA_write(1,"*IDN?") VISA_read(1,50) ans = ANRITSU,ML2438A,00080050,3.07 // Lecture du wattmètre USB ROHDE & SCHWARZ // VISA_open(2,"RSNRP::0x000c::100189::INSTR") VISA_write(2,"*IDN?") VISA_read(2,50) ans = ROHDE&SCHWARZ,NRP-Z11,100189,03.00
VISA_close , VISA_write , VISA_read ,