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.

Similar Messages

  • ?My music and pod casts will not play. I have followed the instructions many times.  I would like to toss this equipment.

    ?My music and pod casts will not play. I have followed the instructions many times.  I would like to toss this equipment.  help please.

    What happens when you try?
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all media and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • How do I turn on long press keyboard to write the same character many times with one keystroke only? I can only write 1 letter at a time with each key press. To write "aaaaa" I need to press 5 times the A key. I didn't use to do this.

    I know this has something to do with INSERT key in Windows I guess. But suddenly I was using Mac OS X Lion and a keyboard sign appeared in the top bar, and the keyboard didnt work as it usually does. I mean, I wanted the long press key to write multiple caracters of course. Please help!

    It's now a hidden option that can be turned on with a terminal command.  The easiest way to do this is to download TinkerTool from this site:
    http://www.bresink.com/osx/0TinkerTool/download.php5
    Then go to Tinkertool > General tab > Select "support key repeat".
    Logoff and login again.
    Regards,
    Captfred

  • Labview GPIB Tutorial for sending commands to gen purpose equipment

    Hi
    I am reading an old NI GPIB "in-depth course" (in dos). It seems quite easy to send and receive GPIB command. Is there a GPIB tutorial for labview that will show me how to set up a piece of equipment and send/receive commands?
    Wayne

    Yes. If you have LabVIEW 6 or later, look in the LabVIEW Measurements Manual (a printed manual in your LabVIEW box, as well as a PDF installed with LabVIEW).
    First of all, there are two ways to program GPIB. You can use the Traditional GPIB VIs, or you can use VISA. Both APIs are simple, but you probably want to use VISA. VISA works over GPIB, USB, Ethernet, Serial, etc., so learning it will apply to future projects, too.
    In the 6.x version of the Measurements Manual, read chapter 20. In the 7.x version, read chapter 16. In either case, we have examples of using VISA to communicate with instruments.
    This will give you a brief introduction to VISA. If you want to learn more, there are more advanced tutorials available on NI's web site, such as
    href="http://www.ni.com/swf/presentation/us/instcontrol/">this one.
    I hope this helps.
    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.

  • Can anyone help me with Labview/GPIB timing problems?

    I am trying to use a very simple VI (downloaded from the NI site) to control a Newport 1830C optical power meter.
    I have been spending most of my time trying to use the VI issue a command to read the current displayed power. When I run the VI normally, I get no response from the meter, and the VI simply terminates without any error message. (The "remote" indicator does light on the meter, though, so it seems to be receieving the command.)
    However, when I run the VI in the "highlight exectution" mode, everything seems to work just fine, and I receive a correct reading from the meter! Needles to say, this makes it really hard to debug the problem.
    My guess is that I have some kind of timing problem, and t
    he "highlight execution" feature fixes it by introducing delays. Is this correct? If so, how can I achieve the same thing by putting in delays by hand?
    thanks, Whitney White

    Whitney,
    I agree that this is very likely to be a timing issue. VIs run much slower in highlight execution mode, therefore your instrument may need more time to prepare the data you have requested. Try wiring a delay inline prior to the GPIB reads and/or writes, or try using Service Requests (SRQs) to give the instrument enough time to generate the data it needs to send back to the computer.
    Another possibility is that your instrument may not be IEEE 488 compliant. Some older instruments indicate that they are ready to receive data before they really are. Try changing the GPIB bus timing to the slowest setting (in the GPIB Configuration Utility). This only affects the time that the GPIB controller waits before valid data is on the bus and the DAV line i
    s asserted (a step in the GPIB handshaking that occurs each time a byte of information is sent to the device) so this may not be effective.
    Lastly, you may wish to try the instrument driver for your instrument. There is a contributed driver at this location: LabVIEW Traditional Instrument Driver: Newport Optical Power Meter 1830C. A 'contributed driver' means that someone outside of National Instruments wrote the driver and then submitted it for posting. This driver also contains a good example of adding a time out.
    Regards,
    Heather S.
    Applications Engineer
    National Instruments

  • 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

    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

  • Where can I download labview GPIB driver for Electroglas 2001 wafer prober?

    Need a copy of Labview GPIB driver for Electroglas 2001 prober. Please let me know where I can download it.
    Thanks.

    Hi,
    All the Instrument Drivers NI has can be found at the Instrument Driver network:
    www.ni.com/idnet.
    I searched for the instrument you are using and I couldn't find anything on it.
    In this case, you can contact the device manufacturer to see if they have a library. If not, you'll need the command set of the instrument. With the command set you can then use the VISA VIs to sent these commands and receive any data from the instrument.
    DiegoF
    National Instruments.

  • Where can I download a LabVIEW GPIB driver for an ANDO AQ6315E Optical Spectrum Analyzer?

    Where can I download a LabVIEW GPIB driver for an ANDO AQ6315E Optical Spectrum Analyzer?
    Thanks.
    Solved!
    Go to Solution.

    The Instrument Driver Network has all the drivers for instruments. There is no driver specific to that model, but there is one for the 6310B. Perhaps that may work for you. You may need to modify it. If not, you will need to write one yourself. You can get a lot of material for this here: http://www.ni.com/devzone/idnet/development.htm

  • 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

  • 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

Maybe you are looking for

  • Problem with logging in Creative Cloud account

    Hi, I have a problem with my Creative Cloud account. It seems like I logged out about a week ago and when I tried to log in again just now I didn't succed as the program said I have logged out of the system. My password is correct, I even changed it,

  • How to check the bank details in the table?

    Hi All, i want to develop a report in BW for getting duplicate bank details for the employee. i am not sure where can i find the details of the bank details field. i have searched in the RSA6 for any datasource which contain any bank details. But the

  • Difference/relationship between XML and XSD

    Hi All, Correct me if i am wrong, When we create a source and a target datatype in IR automatically objects will be created in XSD. The same way it does when we create message type. In message mapping, We map source and target message type and when w

  • Weblogic Startup Class

    Hello, I need to set up a start up class for quartz jobs in my weblogic server. I have created the startup class from the weblogic console but i dont know where to put the class or java file. Where is it read from?

  • Skipping beginner guide section: "disable input hotplugging". That ok?

    I'm skipping the section in the Beginner's Guide called "Disable input hotplugging."  Is that ok? Or should I disable it and let HAL use the settings from xorg.conf?