GPIB reads/writes compared with VISA reads/writes

Hello all,
Being slightly new to LV (3 months of casual use, and 1 month of really getting to know it)...
I was just wonder what the difference between VISA reads/writes and GPIB reads/writes.
Actually this is my main question: Is the GPIB Write "data" parameter and the VISA Write "write buffer" parameter the exact same thing?
Would I write the exact same command with either parameter and get essentially the same effect (if all parameters are correct?).
I have a list of GPIB commands that I want to use to write drivers for  a PSA, and I really want to use VISA, and not have to change my paradigm of thinking.
I would hope they are quite similar.  In fact, my research is telling me that GPIB is almost like a subset of VISA?
Thanks for your help.

The data you write with the GPIB functions is identical to the data you write with VISA. There are some things that are a bit easier to use the traditional GPIB calls but for 99+% of the time, VISA will do the trick. VISA was originally conceived as a common api for GPIB and VXI instruments. The first VXI instruments were basically the same GPIB instruments without a power supply and the user interface (buttons, screen, etc.) but they required different drivers. VISA permitted a single driver to be used for both types of instruments. Now, VISA has expanded to include serial, Ethernet, USB, and PXI and not having to change your "paradigm of thinking" is one of the big reasons that VISA is so widely used.

Similar Messages

  • How to read three parameters for exemple temperatur​e,current and voltage from the same port with visa read and separate them in a table

    Hi i want to read parameters with visa read, from three sensors related to  pic16f877a, using  module xbee ..but i want to make every one from those parameters (temperature, voltage and current) in a table ..it's the first time i use Labview so i don't know if ther is a solution for my problem so if any one have any idea please help me. thnx in advance. 

    [email protected] wrote:
    Hi i want to read parameters with visa read, from three sensors related to  pic16f877a, using  module xbee ..but i want to make every one from those parameters (temperature, voltage and current) in a table ..it's the first time i use Labview so i don't know if ther is a solution for my problem so if any one have any idea please help me. thnx in advance. 
    The short answer is: "Yes, of course."  But you are going to have to do the legwork and learn LabVIEW basics before we can offer meaningful help.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Why do I get a "termination character was read" warning with VISA read and TCPIP?

    I am using VISA Reads with TCPIP raw sockets without issue with NI-VISA 3.0.1 but when I moved to NI-VISA 4.4 I was getting timeout errors.   The timeout errors went away when I set the termination character enable property to true (which seemed to be default in NI-VISA 3.0.1), but now I get a warning stating that the "termination character was read".   
    Can I disable this warning?   Can I set the termination character enable to default?   How can I get rid of this annoying warning?
    Solved!
    Go to Solution.

    Hey Dagwood,
    Unfortunately there isn't a way to globally change the attribute VI_ATTR_TERMCHAR_EN to VI_TRUE.  I spoke with R&D about possible use of the registries and they say it's not accessible through that.  To address why this change was made, the developer who made the switch isn't around anymore so I can't find his reasoning as an explanation for you.  The best this for you to do in your code would be while initializing, use the VISA Property Node to make the change and until that VISA Resource is closed, this change will remain set to the value you assign.  I'm sorry we cannot provide any other solution for this inconvenience.  Also, if you feel this is a large burden on your programming practice you can definitely submit a product suggestion for the ability to change global default values for VISA attributes.
    Thanks,
    David Pratt
    AES - Test Side Products
    NIC

  • How to send more than one command at the same time to write buffer in VISA READ?

    Hi,
    I'm using the LABVIEW->serial.VI with a small modification for my serial communication with a shutter control unit.At present,I can send one command CTSO1 to the write buffer.My instrument can read upto 5 commands.I want to send CTSO1 and CTSO2 simulatenouly so that i could open two shutters simulatenously.Note that commands have carraige return constants as terminatting characters.I'm enclsoing the VI which works for one command.
    Any help in this regard is greatly appreciated!
    Regards,
    Rajesh
    Attachments:
    VI_SHUTTER_JUNE30.vi ‏50 KB

    You cannot do two different simultaneous VISA writes over a serial bus. There is a single rx line on the pc's com port and a single rx line on the instrument. You only hope is if the instrument allows you to chain commands and the reception of the carriage return triggers the instrument to implement both at the same time. Maybe you can send CTS01 and CTS02 separated by a space or comma. The manual should tell you if that's possible or maybe you need to ask the manufacturer.

  • Creating Runtime Installer for VI with VISA Read VI

    Greetings Fellow Users,
    Please let me know which 'ADDITIONAL INSTALLERS' the  LabView RunTime engine requires in order to run a VI that reads from the built-in serial port (COM 1) of a Windows XP PC.  For instance, I include LabView Run-Time engine 8.0.1 to creat an installer for the VI.  If I want to load and run this .exe on a PC that has no other NI software, do I need to include any of the following as 'ADDITIONAL INSTALLERS':
    ->NI-SERIAL 1.8?
    ->NI-VISA RUNTIME 3.4?
    ->NI-DAQmx 8.0?
    What does the NI-VISA RUNTIME do anyways?  Also, when I do include some of these, I have to dig out my LanVIEW installations CDs and they are loaded from teh D:\.  What is the cleanest way to load these onto my HDD so that LabView will select these automatically.
    Thank you. 

    FLT CTRL 6 wrote:
    Greetings Fellow Users,
    Please let me know which 'ADDITIONAL INSTALLERS' the  LabView
    RunTime engine requires in order to run a VI that reads from the
    built-in serial port (COM 1) of a Windows XP PC.  For instance,
    I include LabView Run-Time engine 8.0.1 to creat an installer
    for the VI.  If I want to load and run this .exe on a PC that has
    no other NI software, do I need to include any of the following as
    'ADDITIONAL INSTALLERS':
    ->NI-SERIAL 1.8?
    ->NI-VISA RUNTIME 3.4?
    ->NI-DAQmx 8.0?
    What does the NI-VISA RUNTIME do anyways?  Also, when I do
    include some of these, I have to dig out my LanVIEW installations CDs
    and they are loaded from teh D:\.  What is the cleanest way
    to load these onto my HDD so that LabView will select these
    automatically.
    Thank you. 
    ->NI-SERIAL 1.8?
    This is the driver used for serial port controller boards and
    interfaces from NI. You do not need that software when trying to access
    built in serial ports or ports on interface cards from other
    manufactureres than NI.
    ->NI-VISA RUNTIME 3.4?
    This is the software LabVIEW uses to talk to all kinds of IO interfaces
    including serial ports. This is what you will need. Runtime means it is
    a stripped down version without LabVIEW, C, VB, Delphi and whatever
    development bindings and examples etc.
    ->NI-DAQmx 8.0?
    This is the software driver for NI data acquisition devices (analog IO, digital IO, counter , timers).
    These are all to be considered drivers and (very maybe apart from
    NI-VISA) it is usually not a very good idea to include drivers into the
    application installer. If you use them your user is likely to have
    bought his own kind of hardware and no matter if he happens to have
    bougt the newest SuperPCI interface board with 256 ultra-high-speed
    serial ports over wireless connections or an old standard PCI board
    with 2 RS-232 interfaces they both will have come with a CD that is
    appropriate for that device, whereas the NI-Serial driver you included
    is only appropriate for NI serial boards that are still AND already
    sold at the moment when that driver was released. The same applies for
    any other driver software.
    NI_VISA being able to connect to standard built-in serial ports could
    be considered different but it isn't really. I have included NI-VISA on
    application installers in the past only to find out that the included
    NI-VISA version did not run or not run reliably on newer machines with
    new OS versions, so we had to point the customer to the NI site to
    download the newest version anyhow, or even burn a new CD with updated
    NI-VISA versions and express ship it.
    Basically including any kind of driver software in the application
    installer may seem like a good idea but will usually cause lots of
    additional support after some time due to incompatibilities with newer
    OS versions, new hardware, etc.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • PDF opens and works correctly with Windows 8 Reader, but not with Adobe Reader.  Why?

    Hi,
    My sister-in-law has this PDF order form from one of her company's distributors that opens and allows editing of specific fields.
    The only application that opens the file correctly (visually and functionally) is the Windows 8 Reader.  If I open the file in Adobe Reader or with the Mac viewer things do not line up, fonts are too large, and when editing fields sometimes symbols show up and sometimes way over-sized numbers show up.
    This behavior has been observed on both a Windows 8.1 PC as well as on a Mac Book Air.
    Can someone please tell me why this is happening?  Is there something that needs to be configured differently?
    Thanks,
    Matt

    This is what I see when I open that PDF in Adobe Reader 11.0.07:
    Can you tell me which parts are not correct?  Obviously the Submit button is a bit strange.

  • Play sound in specified duration and desired file when reading data with VISA functions ?

    Hi.
    I read data with VISA read function and then I use functions like multiple for showing data on Chart. every thing is OK.
    now I want play a specified sound (like a 3s song in my desired folder) when signal amplitude cross over from specified value. then after desired time, it will be wait for new cross over from specified value and this procedure repeat again until I stop the program. 
    Data comes from MCU and it doesn't stop when system play sound and when system play sound, incoming data for this part (play sound) will be ignore them until specified expired.
    I use this VI for reading data and mentioned part which is sound part is empty and I don't know what I must done ?
    altougth I use another while loop for sound apart because I want save CPU time.
    Thanks.
    Solved!
    Go to Solution.

    I would recommend making the data type of the notifier a cluster that contains a path and a numeric (double).  The path tells the player which file to play.  The numeric is the duration.
    Now for a slightly complicated, but really neat, way to stop your second loop.  Do not use a second notifier.  Instead, send the normal notification but use Not A Path for the path in the cluster.  Your second loop can do a check for the Not A Path and stop when that is recieved.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • VISA Read hangs. Get Resetting VI dialog on abort.

    I also updated to the latest VISA and GPIB drivers available from National Instruments, and the same problems still occurs. Happened on the Keithley with an "*idn?" call again.
    Tomek

    I have the same problem with VISA Read (with a 1/2 second timeout) going to different instruments (I've seen it happen with a Keithley 2400 as the OP, but also SRS 830 Lock-in, and an SRS SIM module setup), and hanging both the VISA read and the UI.
    EDIT: Added:
    Windows 7 SP1 64-bit
    LabVIEW version 9.0f3 (2009)
    VISA Versions: 5.0
    Ni-488.2 Version: 2.73
    One thing that might be tripping things up is the inclusion of an IOTech Extender488/F bus extender/isolator, which uses a fiber optic cable to span a distance and provide some separation between computer ground and instrumentation.
    Because of some debugging I was doing, I left NI Spy open, and have the following results from the last calls:
    19859184.  viParseRsrc (0x0C818D20, "GPIB0::23::INSTR", 1, 0), Process ID: 0x00001414         Thread ID: 0x00001600, Start Time: 10:48:45.027       Call Duration 00:00:00.001,Status: 0 (VI_SUCCESS)
    19859185.  VISA Open ("GPIB0::23::INSTR", True, 0, 0, "GPIB0::23::INSTR"), Process ID: 0x00001414         Thread ID: 0x00001600, Start Time: 10:48:45.028       Call Duration 00:00:00.038, Status: 0 (VI_SUCCESS)
    19859186.  VISA Lock ("GPIB0::23::INSTR", 0, 1), Process ID: 0x00001414         Thread ID: 0x00001600, Start Time: 10:48:45.066       Call Duration 00:00:00.000, Status: 0 (VI_SUCCESS)
    19859187.  VISA Set Attribute ("GPIB0::23::INSTR", 0x3FFF001A, 500), Process ID: 0x00001414         Thread ID: 0x00001600
    Start Time: 10:48:45.066       Call Duration 00:00:00.019, Status: 0 (VI_SUCCESS)
    19859188.  VISA Unlock ("GPIB0::23::INSTR"), Process ID: 0x00001414         Thread ID: 0x00001600, Start Time: 10:48:45.085       Call Duration 00:00:00.010, Status: 0 (VI_SUCCESS)
    19859189.  VISA Lock ("GPIB0::23::INSTR", 0, 1), Process ID: 0x00001414         Thread ID: 0x00001600, Start Time: 10:48:45.095       Call Duration 00:00:00.010, Status: 0 (VI_SUCCESS)
    19859190.  VISA Write ("GPIB0::23::INSTR", "*idn?"), Process ID: 0x00001414         Thread ID: 0x00001600, Start Time: 10:48:45.105       Call Duration 00:00:00.018, Status: 0 (VI_SUCCESS)
    19859191.  VISA Read ("GPIB0::23::INSTR", 100), Process ID: 0x00001414         Thread ID: 0x00001600, Start Time: 10:48:45.123
    You'll notice that it crashes on "*idn?". I'm pretty sure that in the past, it has crashed on other commands as well, and is not reproducible (for example, I ran visa read/writes to the SRS lockin every 200ms or so for the past 12 hours with no problems, with at least 60+ calls (including *idn?, which is part of a class constructor) to the Keithley. 
    I am happy with a solution which kills that read command, and simply issues an error -- I can handle those. But it is frustrating that I cannot trust that the VISA read will either work or throw an error that I can catch.
    Any help or guidance in diagnosing this would be appreciated. Please let me know if I have missed reporting on something...
    Thanks,
    Tomek

  • VISA read in exe file is not working

    Hi all,
    I am having problems with VISA read in an exe file created.
    I am trying to write to and read from a programmable power supply via RS232. The VI writes a command to the instrument to set the voltage level. It then writes another command, requesting the resulting current value. This value is then read by VISA read
    The VI is working fine on the development PC, which has LabVIEW installed. The exe file is also working fine on this PC. However, when I try to run the exe file on another PC (I've tried several) everything seem to work except for the VISA read functions. The voltage level command is sent, as well as the On and OFF commands, but the current is not read back.
    I guess there must be something I have missed in the installation. I am working in LabVIEW 8.5. I have created an installer and included
    Runtime Engine 8.5.1
    VISA runtime 4.5
    Is there something else I should do? I am really running out of ideas here...
    I hope someone has a clue about this!
    Clara 

    Clara-
    1. Have you verified that the COM port settings in Windows (check under device manager) are matching how you initialize them (Baud, bits, parity, and flow control) and that these match the power supply's settings?
    2. Also, are you trapping an error message after the attempted Read command (this will make it a lot easier to diagnose).
    3. Do you programmatically close the VISA session at the end of the program?
    4. You can always post the code to see if the forum members will catch the porblem.
    ~js
    2006 Ultimate LabVIEW G-eek.

  • VISA Read function Read buffer problem in serial communication

    Hi,  I use VISA write and read function in serial communication app, the device continuously sends 0x00 if it is not receive a request from Labview program running on PC.
    And the request sent by labview is programmable. I met a weird problem, each time the request changes, the VISA read buffer output port still shows the last request firstly, from second time, shows the right request.
    It works like: Req code: ... 50, 51,51,51,50....;  VISA Read buffer: ...50, 50, 51, 51, 51, 51, 50....
    Please refer to the program.
    Attachments:
    readOne_test.vi ‏21 KB

    How are you running this?  You don't have a while loop around it.  Is it part of a larger VI?  Please don't tell me you are using the run continuously button.
    You don't have any wait statement between you VISA Write and your bytes at port.  So it is very likely the receive buffer is still empty since you didn't give your VI time to wait for the device to turn around and give a reply.  If you read 0 bytes, your VISA read string will be empty.  How does your decoder subVI (which you didn't include) handle an empty string?

  • About VISA read

    If I wrote different values to different registers by using VISA write. Then I connected a VISA read after the last VISA write. How can I know the read buffer returned is from which register?

    Hi,
    this is the capture:
    the instrument is Emcore TTX 1994, and the application note is attached. I only want to read the value from a certain register, but there are many VISA writes concatenated before VISA read, so I don't know which value is returned from VISA read.
    Attachments:
    11FM1046B - TTX1994 application note.pdf ‏4150 KB

  • VISA Read gets incorrect data from serial connection

    I am having difficulty using the VISA functions in LabVIEW to read data from a virtual COM port. Data is being sent from a serial to USB chip via a USB connection using OpenSDA drivers. I have a python program written to read from this chip as well, and it never has an issue. However, when trying to achieve the same read in LabVIEW I am running into the problem of getting incorrect data in the read buffer using the VISA Read function.
    I have a VISA Configure Serial Port function set up with a control to select the COM port that the device is plugged into. Baud rate is default at 9600. Termination char of my data is a newline, which is also default. Enable termination char is set to true. A VISA Open function follows this configuration, and then feeds the VISA Resource Name Out into a while loop where a VISA Read function displays the data in read buffer. Byte count for the VISA Read is set to 20 so I can read more of the erroneous datat, however actual data will only be 6-12 bytes. The while loop has a wait function, and no matter how much I slow down the readings I still get incorrect data (I have tried 20ms thru 1000ms). 
    The data I expect to receive in the read buffer from VISA Read is in the form of "0-255,0-255,0-255\n", like the following:
    51,93,31\n
    or
    51,193,128\n
    And occasionally I receive this data correctly, however I intermittently (sometimes every couple reads, sometimes a couple times in a row) get incorrect readings like this:
    51,1\n
    51,193739\n
    \n
    51,1933,191\n
    51,,193,196\n
    51,1933,252 
    51,203,116203,186\n
    Where it seems like the read data is truncated, missing characters, or has additional characters. Looking at these values, however, it seems like the read was done incorrectly because the bytes seem partially correct (51 is the first number even in incorrect reads).
    I have search but haven't found a similar issue and I am not sure what to try from here on. Any help is appreciated. Thanks!
    Attachments:
    Serial_Read_debugging.vi ‏13 KB

    The first thing is that none of the error clusters are connected so you could be getting errors that you are not seeing. Are you sure about the comm parameters? Finally, I have never had a lot of luck looking for termination characters. You might want to just capture data and append each read into one long string just to see if you are still seeing this strangeness.
    What sort of device is returning the data? How often does it spit out the data? How much distance is there between it and your computer? Can you configure it append something like a checksum or crc to the data?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Firefox 17.0.1 on my Mac OSX 10.7.5 will no longer work with Adobe Reader 11.0.0. What shall I do to fix it ?

    When I try to read a page with Adobe Reader I get the following message:
    Adobe Reader cannot show documents in this browser.
    Why is that ? It occurer a short period ago, and prior to that I have had no problem.
    I have no problem when I use Safari - but normally I prefer Firefox.
    So, please help me - and tell me what to do.
    Thanks in advance.
    Lars Jejlskov

    You can disable the Adobe Reader plugin in Firefox (Tools > Add-ons > Plugins) and use the external Adobe Reader application or Preview application instead.
    *Firefox > Preferences > Applications > Adobe PDF document : Use Adobe Reader
    PDF files may also be found under another entry like Portable document.
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file

  • Adobe Reader 10.1 with some problems

    To Technical support,
    Dear sirs,
    I have some problems with Adobe Reader version 10.1.
    Once installed Adobe Reader, version 10.0, I found the problems listed below:
    When I open Adobe Reader 10.1, and check the "Task Manager" (Ctrl + Alt + Del), the process appears Adobe Open twice, taking increasing a lot of memory space.
    When attempting to view the following pages, Adobe Reader closes or crashes by itself, and can not continue.
    I have already installed it in other computers but the problem remains.
    What can be done to not happen anymore?
    Working with Technical Documentation
    PS. I'm using this version because of the tools to highlight text and make notes.
    thanks
    yours sincerely,
    Augusto Cesar Amado
    São Paulo, Brazil
    [email protected]

    Augusto,
    You have posted to a user to user forum.
    Sometimes Adobe staff visits and provides a response to a question.
    However, they do not provide formal technical support.
    For formal  Adobe Customer Service or Technical Support, you can find more information here.
    http://www.adobe.com/support/contact/
    With that said, two processes for the Adobe Reader is associated with Adobe Reader's "Protected Mode".
    You may want to view Joel Geraci's recorded Tech Talk over at Acrobat User Community (AUC).
    http://acrobatusers.com/events/52438/tech-talk-acrobat-x-security-sandbox
    Be well...

  • Read event frame with X-NET

    Hi all,
    I am sending a CAN message to an ECU (it's an automotive device) and I have to receive the response message (event message).
    If I read this message with XNET Read(Frame CAN) (CAN session configured as Frame Input Queued), I don't see anything! Why??? XNET Read shouldn't read frame from CAN board RX buffer???
    Thanks in advance for your help!
    xxx
    Jessica

    Hi Jessica,
    You can see this:
    http://zone.ni.com/devzone/cda/tut/p/id/9717
    Clod

Maybe you are looking for