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.

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
TRIG1YNC:AD -> select the trigger source
TRIG1OUR 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

Similar Messages

  • Sync/async GPIB commands?

    Whay are there no synchronous/asychronous flavours of GPIB 488.2
    commands like the traditional GPIB commands?
    ~paul prew

    "Paul F. Prew" wrote...
    > Whay are there no synchronous/asychronous flavours of GPIB 488.2
    > commands like the traditional GPIB commands?
    It's because the C API in NI-488.2 (aka, the NI GPIB driver) doesn't
    offer an asynchronous interface; the GPIB command is always done
    synchronously in the driver. The "traditional" GPIB C API has functions
    like "ibrda()" and "ibwrta()" which we call from LabVIEW to do asynchronous
    I/O.
    The asynchronous driver calls became less important when LabVIEW became
    multithreaded. Do you have a particular application in mind for
    asynchronous 488.2 functions?
    Brian

  • Gpib commands via ethernet

    how can i control my device through ethernet by passing SCPI commands or GPIB commands.
    The device is standalone industrial PC has laser sources.I need to control sources. The IP address is 202.10.10.2.

    You can use VISA to control an instrument with an ethernet interface. Open a connection using a resource name of TCPIP::host address and then you should be able to send your SCPI commands with VISA Write just like you would with a GPIB connection. You should also verify that it's on the LAN from MAX. Right click on Devices and Interfaces, select Create New and then select TCP/IP Resource and then follow the directions.

  • Gpib commands for hp plotter 7470a needed?

    Where can i find the gpib commands or the manual for the hp plotter 7470a?

    I just did a search of HP's and Agilent's web sites. Not much there for the 7470. You may have to contact HP directly. I have worked with some of the old pen plotters, they are pretty simple for the most part. Commands include PENUP, PENDOWN, PEN #, MOVETO, etc. All of the old plotters that I've worked with had the same style of commands.
    If you can't get something, let me know ([email protected]) and I'll see if I can dig up the manual for the one old plotter that we have here.
    Rob

  • What's GPIB command can transfer state file to E5062A from external comtrol(PC)

    Deal All
    so far, I can use MMEM:TRAN? "D:A.STA" to read the state file on my PC. and now I have two questions.
    1. how to save this state file in my PC?
    2. what's GPIB command can transfer this state file to E5062A from PC?
    about question 2 : I was read E5061-90042.pdf, and read sample program of page 140, and try MMEM:TRAN this command. but still fail.
    please advance
    Best Regards
    Patch

    You could just save the read data straight to a text file.  That would be the simplest way.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • What is the exact GPIB command sequence when calling viclear

    I am experiencing some call box lockup problem and viclear is the possible root. What is the exact GPIB command sequence when I call viclear? I need this information to work with Agilent to find the root of the problem. Thanks! I need the exact GPIB commands sent to the equipment.

    Hi,
    viClear calls the ibclr NI-488.2 function. The ibclr function sends the following bus commands according to the NI-488.2 Software reference Manual:
    ibclr calls the board function ibcmd to send the following commands using the designated access board:
    � Talk address of access board
    � Unlisten (UNL)
    � Listen address of the device
    � Secondary address of the device, if applicable
    � Selected Device Clear (SDC)
    Hope this helps.
    DiegoF.
    National Instruments

  • Sending GPIB commands

    Hi,
    How to send string commands to GPIB(IEEE488) from PC?
    The functions "GPIB CMD" and "MISC" not working.
    If use: "cmd 4+0 4" not answer. Why?
    Duke

    Duke,
    I'm not exactly sure what message you're wanting to send to the device; I am not familiar with the BASIC syntax that you are referring to, especially since all your reads, writes, and commands start with the "LISTEN" directive?
    As you may or may not know, you can address a GPIB device to send data or to send a command. To address a device and send data (like a "*IDN?" or some sort of query for measurements), you will want to use GPIB Write and GPIB Read VI's. For commands, you can use GPIB CMD. However, the command value 4 doesn't make much sense by itself. "4" stands for "Selected Device Clear" in the GPIB multiline messages.
    Should you be sending the "4" command (Selected Device Clear)?? Or just the 4 data? If you want to send the
    command, you probably would send a "talker aa, Listener xx, subaddress yy" command to the bus to specify where you want the command to be sent, where aa is the GPIB address of your board, xx is your device's gpib address, and yy is your device's sub address. Look in the links below to construct a string of gpib commands that do this, then you can feed this string into GPIB CMD.
    This link has information about low-level GPIB commands that may be helpful:link
    Here is some getting started info for IBIC, a text-based interactive control for GPIB interfaces that may allow you to experiment to see what exact GPIB command will do what you want: link
    Hope this helps.
    Scott

  • Fluke 6060B Frequency, Amplitude GPIB commands HELP!

    fluke 6060B Frequency, Amplitude GPIB commands HELP! The very old and useless scanned copy of the manual showed the GPIB commands: FR230MZ but it NEVER worked, same for amplitude, anyone can send the WORKING vi that can set any number with any significant digits for frequency and amplitude, GREATLY appreciated!

    Please don't shout.  It doesn't help at all to do that.
    When you use the driver, what VI are you using? Do you get any kind of error code back from the VI? What is it if you do? When you send your frequency command, is this with the driver of in MAX? When the frequency command does not execute, have you done an errory query of the instrument? There is a funciton in the driver for that. It would be extremely helpful to know if the instrument replies back with some error message or code. I don't know if it's related to the problem you are seeing but the driver I downloaded needs to be modified to work with newer versions of VISA. The initialize function has an 'Old' VISA Open. This should be replaced with the normal VISA Open on the palette. I modified this and the Getting Started function to be correct and attached them.
    Attachments:
    FL6060X Initialize.vi ‏79 KB
    FL6060A Getting Started.vi ‏57 KB

  • Hwo to run test program composed with GPIB commands directly?

    When we write test program, we usually use the function libraries which are provided by instrument vendors. But sometimes, we need to use GPIB commands directly. For example, if the instrument vendor doesn't provide library for some GPIB commands, or if I get such a program from somewhere else.
    The question is that I don't know how to edit, compile and run such programs. The attached is such a program, and please tell me how to run such a program if you knows.
    Thank you very much.
    Attachments:
    MER.txt ‏9 KB

    The file that you attached looks like an HP-BASIC or Rocky Mountain Basic program. If you're trying to take an existing program like that and compile it in Visual Studio, that is not going to work. If you're trying to figure out how to write an equivalent program in Visual Studio, our example programs for Measurement Studio would be a great place to start. For the C++ API, you can look at the example program in C:\Program Files\MeasurementStudioVS2003\VCNET\Examples\4882, or . The exact location of Measurement Studio might be different on your system depending on where it's installed, or you might have an older version of Measurement Studio, like 7.0. Note that we also have support for GPIB in .NET languages like VB and C#. You can find examples in C:\Program Files\MeasurementStudioVS2003\DotNET\Examples\GPIB for both languages.

  • Hioki 8826 GPIB command list

    Hi,
    I am in need for a GPIB command list for the Hioki 8826 Hi-Corder. This unit is vintage 1999 or so and the manufacturer could not help anymore as it is considered obsolete.
    Can someone help me out here ?
    Thanks in advance
    Regards
    Kay

    Hi Dennis,
    yes I have downloaded the User Manual, it contains no GPIB stuff, just how to operate the unit.
    I did follow the link you pointed me to, eventually it linked back to the Hioki site and there I found
    something similarwhich may be useful and applicable.
    Description of transfer commands used with the GP-IB, RS-232C and LAN interfaces
    It seems the Hi-Corder line GPIB commands are very similar, the 8840, 8841, 8842 and 8825 are
    very similar and about the same vintage.
    As far as googeling goes, I used "Hioki 8825 GPIB programming manual", "Hioki 8825 GPIB 9523
    programming" ect.
    Thanks again
    Kay

  • GPIB command for acquire simultaneous 2 scope channels?

    I am a new GPIB programmer, and I want to acquire 2 signals simultaneous from a HP54111D oscilloscope (HP) via a gpib bus.
    I can acquire a channel and after the other. do you
    know the gpib command to acquire 2 channels simultaneous and transfer data ?

    Hello,
    If you uses LabVIEW or LabWindows/CVI IDEs the best way to control your instrument is to use the instrument drivers provided on our site:
    http://search.ni.com/query.html?lk=1&col=alldocs&nh=500&rf=3&ql=&pw=595&qp=%2BContentType%3AInstrumentDriver&qt=HP+54111&layout=IDNet
    If for some reason you must use GPIB commands the best for you is to request from HP the set of commands for your scope.
    I assume that you have some commands for configuration of your scope then you can enable ch1 and ch 2. then when you acquire data your scope will probablely fill a memory buffer (record) with your signals data. so i think that there is only one function for one channel and two channel. When using two channel tha data will probably be interleaved in your record i
    .e (ch1[0],ch2[0],...ch1[n],ch2[n]) .
    Hopes this helps
    Regards
    Salissou ISSA
    Applications Engineer
    NI France

  • ATS-1 GPIB command

    Hi All,
    I am attempting to set the ATS-1 to GEN-TRACK when in the SINAD mode.  I  have managed tofind and send the SINAD comamnd but I am unable to find in the ATS-1 programming manual  the GPIB command to set to GEN-TRACK when in the SINAD mode.
    Anyhelp with fining this GPIB command will be great.
    Thanks
    C

    This appears to be a continuation of this thread.

  • Getting GPIB commands from an old instrument.

    I have an old instrument that is GPIB capable, but I don't have the manual containing the GPIB commands. Is there any way to get these from the instrument itself?

    Hi,
    This is a difficult situation. There is no standard way to communicate with instruments.
    You really need to get the user manual if you want to use this instrument.
    Also, check the instrument driver network www.ni.com to see if there is a driver for it. That would at least show you some of the available commands.
    DiegoF
    National Instruments.

  • Cannot read instrument errors for Ando AQ6317B using GPIB commands.

    Maybe related to reading the status byte using GPIB commands for the AQ6317B OSA: how can I read the instrument errors, if one or more occur? Several instruments return their instrument errors in the format <errorCode>, <"error message"> as a response to the command "YST:ERR?" or similar. Not the AQ6317B optical spectrum analyzer.
    Can anyone help me with this one?
    Thanks in advance,
    Cristian

    Yes, I did this using NI MAX also and using NI IO Trace (former NISpy). Many instruments accept "SYST:ERR?" as a query to return any INSTRUMENT ERROR (hardware or firmware).
    Well, I guess my ANDO does not. it responds with an empty string, or whatever it has in its buffer from the previous query.
    In any case, be it as it may, I will close this issue (still in limbo for me), and just ignore instrument errors for the time being.
    Thank you for your answers, though.
    Cristian

  • Multiple LABVIEW GPIB Commanding alternating Write followed by read many times

    Hi,
    I am trying to convert my labwindows C program over to Labview.  This is a VISA GPIB application.  I have seen how you can send multiple
    commands in Labview by sending the commands separated by semicolons.  However with my instrument.  I need to write one command
    then immediately read the command. and report the results to a text window for user visual verification.
    In C is sent around 47 or so commands to the instrument just to be sure all of these parameters have the correct configuation.  I did this with a
    Array of strings with each element a string command.  then simply used a for loop in C to send to visa ViPrintf function.  Always one write and one read followed by displaying the command string and the response to the instrument.
    I would like to do the same thing in Labview. 
    Thank You for your help,
     Gary
    Message Edited by golson on 07-14-2009 04:02 PM

    OK. So what's your question? LabVIEW has VISA functions as well. VISA Write and VISA Read. LabVIEW has loops. LabVIEW has arrays. Thus, you can create an array the same way you did in LabWindows, and drive a loop with that array, and send a write followed a read.
    Perhaps you can clarify what you're asking for. 
    Have you looked at/gone through the tutorials? To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

Maybe you are looking for