Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

gpib commands

i need the gpib commands to do, to display on my pc, to ask a frequency and display, what i see with a spectral analyser. i use matlab. i need help as soon as possible.
thanks.
0 Kudos
Message 1 of 11
(6,360 Views)
What kind of spectrum analyzer do you use?

You should look in the "Programmers Guide" of you device,and you will find the commands over there.

Are you using it in Labview or with a terminal for IEEE 488.2 commands?
0 Kudos
Message 2 of 11
(6,333 Views)
i use a spectrum analyser FSP40 from rohde schwarz.

i'm in a work placement and i don't have the manual. i will look for on the web. have you got the URL?
and i have to program in matlab, the spectrum is linked with a USB port(pc).

i don't know if i answer to your questions. thanks a lot. i needed your help and i need again if you can.
bye
laurent
0 Kudos
Message 3 of 11
(6,328 Views)
Hi Laurenttls

fisrt of all go to this site and download all the manuals

http://www.rohde-schwarz.com/Homepage

here is one of them (you can find commands to use in it but there are more manuals for other application commands).

Try first to use MAX to see if it "sees" your device and from there use "communicate with instruments" to see if simple commands work.

What version of Labview are you using?
I have never used USB connection,but it shouldn't be different if you use VISA.
0 Kudos
Message 4 of 11
(6,302 Views)
I tried to attach a Labview driver for you but it was too big.

Go to the URL I wrote in the last message and go to drivers,there you will find ready drivers for your instrument.

Tell me how it goes.

Tzviel
Message 5 of 11
(6,300 Views)
hi tzviel

thanks again tzviel.
today, i had my real work. i send you.


******************************************************************************
The main task at this moment is to create a matlab program that:
1) Starts the communication with the FSP Spectrum Analyzer
2) Allows obtain the value of the field value given by the FSP (for a single
specified frequency) when sending a trigger impulse to the FSP.
3) Allows obtain the values given by the FSP (for a single specified
frequency) when sending a periodic trigger impulses to the FSP.
3) Allows continuing recording to a ascii file of the field given by the FSP
over some period of time (for a single specified frequency)
******************************************************************************

indeed, i'm not a programmer. i say you what i will do tomorrow in order to do what it is asked.
so
first, i linked the pc and the sepctrum analyser
after i write a program:

=> g=gpib('ni',0,1);
g.inputbuffersize=50000;
g.timeout=120;
fopen(g); -> start the comunication
TRIG1:SYNC:AD -> select the trigger source
TRIG1:SOUR EXT -> the next measurement is triggered by the signal at the external trigger input
while.... -> for the periodic trigger impulses
do TRIG1:HOLD 500ms
end while

fclose(g);
delete(g);
clear g


can you say me if my program coul be right or wrong. and what will you do?
thanks a lot tzviel
and, i don't knof if it's possible to change email here, because, i would like to work at least two times a day. so if it's possible say me.
i wait an answer from you
bye
0 Kudos
Message 6 of 11
(6,287 Views)
i forgot to say you, i can't handle up to now. maybe tomorrow.
thanks
0 Kudos
Message 7 of 11
(6,287 Views)
i work with the instrument toolbox, i use matlab7. i think it's very interesting. in theorie, i created a linked between the pc ans the spectrum analyzer. but commands don't work because pc and spectrum analyser are not connected. i hope tomorrow, i could handle. i will say you

my email: laurenttls@gmail.com
i don't if we have the right, but it will be more pratical.

thanks to you tzviel
0 Kudos
Message 8 of 11
(6,266 Views)
Hi laurenttls

Sorry for not answering,I was on vacation.

I will try to get matlab7 and get back to you soon.

Tzviel
0 Kudos
Message 9 of 11
(6,218 Views)
thanks tzviel.
today, i handled
so, when i ask *IDN?, it's ok. it says me the response
now, when i ask for example CALC1:MARK1:X 2GHz, it said me :

Warning: GPIB: NI: An I/O operation has been canceled mostly likely due to a timeout

do you know why?
thanks
Laurent
0 Kudos
Message 10 of 11
(6,206 Views)