Comunicating to a GPIB port using labview from a pc.

I want to interface with an oscilliscope Through its GPIB port using my pc. Is there a code out there that has this capability already? What is the easiest method to do this.

If you had mentioned the make and model number of your scope, I could have given you a definite answer, but since you didn't you're going to have to do a little searching yourself. First go to the Instrument Driver Network. There you will find several links. You should probably browse the ones under the Learn topic first to get an idea of what an instrument driver is. Then you can go to the Search link and try and find a driver for your particular scope. If you find one and assuming that your NI GPIB card is configured, you should be all set. If there is no driver, you'll have to do some programming yourself. You can use the Instrument I/O Assistant on the Instrument I/O palette (LV 7 or higher)
or follow the links under Develop on the IDN page.

Similar Messages

  • How to transfer file from PC to PC via serial port using labview

    I need to transfer files(.txt, .doc, .xls) from PC to PC via serial port using LabVIEW. Is it possible to transfer files, if so how to transfer?
    Solved!
    Go to Solution.

    Yes, it is possible to transfer files with the serial port using LabVIEW.  Files are just collections of bytes and the serial port is pretty good at shipping bytes from one PC to another.  You need to connect the serial ports together with a null modem cable.
    First, take a look at the example for serial communication.   In LabVIEW, go to the Help menu and select "Find Examples...".  From there you can search for "serial" or navigate to Hardware Input and Output >> Serial.  Select the "Basic Serial Write and Read.vi".  Experiment with that example to gain confidence on the serial communication methods.
    Next, it's time to learn about how to read and write files.  For that, the examples could be somewhat confusing since they all deal with files that are presumed to have data of a specific type in them.  I would recommend just getting familiar with the functions on the File I/O palette.  Specifically, get to know the following functions.
    Open/Create/Replace File - On your destination side, you'll need to create the copy of the file that you are trying to transfer
    Close File - When you are finished reading from or writing to a file, you should close it.  It cleans up the memory being used and finalizes any write operations that are still floating in the write buffer.
    Read From Binary File - The best way to read from a file when you do not really care what type of file it is.  In your case, you just want to get those bytes read and sent out so they can be written down at the destination.
    Write to Binary File - At the destination side, this is what will store those bytes to the file you created with number 1.
    Get File Size (under the Advanced File Functions sub-palette) - You need to know how big the file is so you know when you are finished.
    OK, so once you are able to create files, write bytes to them, and read bytes from existing files you can move on to transferring.
    The basic method I would suggest is to have the user specify a source file on the source PC and a destination folder on the destination PC.  Then, find out the size of the source file using number 5.  Divide that size number by the number of bytes you feel like transferring at once.  The serial buffers are usually around 32k (if I remember correctly) so do not exceed that.  Now begin sending data by reading some number of bytes and wiring that string output to the VISA Write function.  On the destination side, you'll want to be monitoring the serial port for bytes and reading them when they arrive.  Wire that string to the Write to Binary File function to add them to your destination file.
    That is the basic outline of how to do it.  You have to be careful not to overload the write and read buffers on the serial ports.  Initially you can use delays on the sending side to make sure the reading side has enough time to digest.  To get things moving faster, you can bring in some flow control.
    If all that sounds a bit intimidating, there are Alliance Member companies out there (such as PrimeTest Automation) who can write such code for you and even provide a turnkey solution for you.
    Happy wiring,
    Dan Press
    Certified LabVIEW Architect
    PrimeTest Automation

  • "how to read parallel port using labview"

    "i am doing a bio medical project and need to read data from parallel port using labview. can anyone help me"

    Hi
    in most cases a simple example helps best.......see attachment. Find in addition in Word document a helpful picture of LPT - Pins.
    In case you work with WinNT, W2k, XP - you need to install accesshw.
    Regards
    Werner
    Attachments:
    printer_port_test.zip ‏41 KB
    dsub_25_parallel_port.doc ‏29 KB

  • How can I do to communicate to parallel port using labview 5.0 and NT ?

    I am trying to write and read from parallel port using Labview 5.0. It does not work with NT.
    How can I do to communicate to parallel port using labview 5.0 and NT ?
    Thank you in advance.
    Regards,

    If you are trying to use In/Out port functions that come with LabVIEW they will not work with NT. I think the AccessHW file at the following link will fix that problem:
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/49664743ded6f1da862564bc004e3a7f?OpenDocument
    Try also this link:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/0989d3d9dafae64e8625680400679736?OpenDocument
    and do some searchs at NI.com for parallel port, you should find some more usefull info.
    Good luck
    Brian

  • I want to write data into eeprom(93LC86) in parallel port using labview?

    I want to write data into eeprom(93LC86) in parallel port using labview? Also I want to read data from EEprom.

    Hi Mr. Mz,
    after having a look to 93LC86-Datasheet I do not see a problem. The self-timing programming cycle of this Chip avoids timing problems; the rest is only logical stuff.
    If you need more general info, how to use the parallel port, I recommend: http://[email protected]/ or
    in case you need an example of SPI-Interface in LabVIEW with paraport - then write to: [email protected]
    You are welcome
    regards
    wha

  • Does anyone know how to comunicate with a USB port using labview 6?

    Does anyone know how to comunicate with a USB port using labview 6?

    Unfortunately, there is no way to communicate directly with a USB port before LabVIEW 7.0 and VISA 3.0. With the new releases, there are functions called "VISA USB Control In" and "VISA USB Control Out" that give you direct access to a USB port.
    You can definitely communicate with DAQ, Serial, or GPIB devices that are connected through a USB port, though. This is done seamlessly through the NI-DAQ, NI-Serial, and NI-488.2 drivers.
    Luke S.

  • Controlling XY stage connected to parallel port using labview

    Hi,
    I have a XY stage which I can control using mach3 software. I want to control a signal generator, VNA and the XY stage at the same time. I have programmed SG and VNA using Labview but I am having difficulties controlling XY stage using Labview. I have never controlled an instrument connected through parallel port using labview.
    Can anybody give me some ideas to start with? How do I use VISA to control the parallel port? I really appreciate your help. Thank you in advance.

    Hi srms,
    Since your question is related to using VISA, I would try posting your question on the Instrument Control Board. You're likely to have better luck there.

  • To invoke an application exe built using Labview from python.

    I am trying to invoke an application exe built using Labview from python.
    I am able to invoke labview vi, send and receive data. But if I change the vi to exe, it doesn’t work.

    This is more of Python. I can suggest you another way, if you can do those changes to your existing code.
    This is what I do: If I have to communicate between 2 different platforms I use "File" as a communication medium (Simple method). So if you want to pass data to the LabVIEW code from python, write the data to the file from Python and read the data in LabVIEW and vice versa. I generally use *.ini files for this purpose.
    The best solution is the one you find it by yourself

  • How to access parallel ports using LabVIEW?

    I want to send data to a device which is connected through LPT1.when Iam using serial port write.vi with port number 10(for LPT1) it is giving an error code 37 which means the device not found. whether those vis are only for accessing serial ports? Then how to access LPT1 using LabVIEW?

    Most likely you need to modify your labview ini file to let it know that LPT1 (or whichever) will be controled through the serial port control. See the following link for a knowledgebase answer to this question:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/a5abd9d76665217b86256333005ac9a5?OpenDocument
    Jared

  • How can I write to the parallel port using LabVIEW 6.0.2

    I have tried updating the labview.ini file and also using the parallel.llb available on the site. When I execute the program it gives me error 37 saying,"device not found". I am running this code on windows 98. I tried to use VISA write,serial port write (using port 10) but nothing seems to work. I also tried to develop a sample code using inPort and outPort, but no success, it is not able to read the data back from the parallel port, even if it seems (????i don't know any way to cross-check it though????) to write.
    Does anybody know the problem here?
    THanks.
    Pari.

    Thanks Brian.
    Well here is the next problem. I got a VI (attatched) off ni.com and it works fine on a windows98 platform. But quits working on NT.
    I can write perfectly (which i checked by hooking an LED display unit at the other end of the parallel port cable). I observed that the LEDs respond to the toggling of individual bits (data bits). But the error occures at the "out port.vi", when I try to run it on a NT machine (where I actually wanna use it). Are you aware of any changes to be made in order to run a VI on NT that works on 98?
    Thanks again.
    Pari.
    Attachments:
    parallelPortSwitcher.vi ‏124 KB

  • How do I interface a computer to the HP8753D Network Analyzer (NA) via a GPIB cable using Labview?

    Hi,
    I am a new beginner to LabVIEW. Right now, I am trying to acquire data from the HP8753D Vector Network Analyzer (VNA). However, I don't think I even managed to get past the first step.
    I tried to create a simple VI with only a single READ GPIB and a WRITE GPIB both to the address 16 (default for HP8753D) with the command IDN?;. I output the result from the READ GPIB to the a string indicator but the front panel displayed boxes and unrecgonized characters.
    The NA didn't even showed that it was communicating to the computer at all (No LED lit up).
    I have also varied the byte size from 200 to 2000 but I still did not get the res
    ult.
    I really need help on how to interface the VNA and my computer together. I have a strong feeling that the VI I constructed is too simplified (attachment below). If you know the solution, please help. I really would like to get past this first stage of first getting the computer and the device to communicate first.
    Thank you.
    Attachments:
    LabVIEW_VI.gif ‏4 KB

    Hello,
    There are several things to check. First make sure that you are using the correct GPIB or VISA resource name. If you are using GPIB the name that you use should be something similar to:
    GPIB0::2::INSTR where 2 is the primary address and 0 is the device number.
    Then you need also to check which commands are accepted by your device. It is a good idea to start in MAX (Measurement and Automation Explorer) by right clicking in the device.
    Another thing you might want to try is to download the driver the instrument driver for this HP8753D that you have.
    You can find it in the following address:
    hp8753D Instrument Driver
    H
    ope this helps
    Ricardo S.
    National Instruments
    Message Edited by Support on 12-08-2006 01:36 PM

  • "how to read serial port using labview 6.0"

    sir i am doing a project and is in a need to extract data from serial port. can anyone help me

    This link, and the links from it, are a great place to start:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/8DECBF3E0B714BF3862568F9006E7851?opendocument
    2006 Ultimate LabVIEW G-eek.

  • How to control a parallel port with labview

    Hi. I'm trying to control a dc motor with a parallel port using labview. the program has to be able to vary the out put voltage of the computer (0 - 5V) through the parallel port into a circuit which will step up the voltage for the motor. Any help would be greatly appreicated. garreth

    Do you want to output and varying signal from the parallel port pins? If so you can't do it, the port pins are digital and can only be high or low, not inbetween. You can control the individual lines high or low using the In/Out Port vis in Advanced>>Port I/O. For more help on doing this search the message archives (I know I've answered a few) and NI's site, there is some good info on it out there. Try some of these for starters:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/0989d3d9dafae64e8625680400679736?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/f4146c66990c46388625695f00726581?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/f3c4ee6ee2c23ef386
    25646b007882c8?OpenDocument
    http://www.advmeas.com/goodies/parallelport.html
    I hope this helps get you started
    Brian

  • Creating a NT service using LabVIEW

    Hi,
    last week I followed the instructions from the NI tutorial " Creating
    a Windows NT Service Using LabVIEW" from http://zone.ni.com/devzone/cda/tut/p/id/3185.
    It worked, I was happy.
    Today I tried again and something strange happens: When i start the
    new created service it does not start as a service but as an
    application with it's Frontpanel open!
    So what did I do?
    1.) Created a very simple TestService.vi
    Just a while loop with 1s Timer inside and counting up a shift
    register, nothing more.
    2.) Create Application TestService.exe (No special actions required in
    AppBuilder, right?)
    3.) Testing Application: FP shows up, ok
    4.) Copy TestService.exe, srvany.exe and instsrv.exe to d:\TestService
    5.) Open a command prompt, typed:
    instsrv TestService d:\TestService\srvany.exe
    "CreateService SUCCESS" appears, Service was installed, I can see
    it in the Services applet
    6.) Changed "LogInAs" from Admin to local System (DataExchange
    Allowed)
    7.) Added new Key in the Registry for the new service and there added
    a
    new String "Application", set it's value to "D:\TestService
    \TestService.exe"
    8.) i can start the Service manually and it can be started at system
    startup.
    But when the service i started the frontpanel opens and I see
    TestService in the Taskbar!
    What am I doing wrong?!
    I already read the tutorial almost for the 10th time now in search of
    things I forgot. Any ideas would be great.
    I'm using LV8.2 ProfDevSys with AppBuilder
    Thank You,
    Stefan

    Ok, when i search here for "windows service" i read that NI has a tutorial page (http://zone.ni.com/devzone/cda/tut/p/id/3185). So i read it to learn how to make a service, but in the step "Creating the client" it said:
    Run your CookieService.exe application. The front
    panel appears because you have not actually changed the application
    into a service, yet. (it's OK)
    Create the cookiefile.txt file in the
    same directory as the CookieService.exe file. Add a few lines of
    message text to the file and save it. (it's OK)
    Run the GetCookieClient VI a few times. It displays a random text line from cookiefile.txt each time you run it. (LabVIEW sends an error code, saying that the VI isn't in memory)
    Quit the CookieService.exe application by closing the front panel with the Close button.

  • Turn Ethernet off using LabVIEW or DOS prompt

    Does anyone know of a method to disable an Ethernet port using LabVIEW or a DOS prompt?  In an automated test, I need to be able to turn off one port of a dual port Ethernet PCI device, then turn it back on and do the same to the other port.  Any ideas?
    Thanks for any help.

    One tehnique is using the System Exec.VI issue an IPCONFIG comand (with correct parameter): -
    (see the very bottom)
    USAGE:
        ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
                  /flushdns | /displaydns | /registerdns |
                  /showclassid adapter |
                  /setclassid adapter [classid] ]
    where
        adapter         Connection name
                       (wildcard characters * and ? allowed, see examples)
        Options:
           /?           Display this help message
           /all         Display full configuration information.
           /release     Release the IP address for the specified adapter.
           /renew       Renew the IP address for the specified adapter.
           /flushdns    Purges the DNS Resolver cache.
           /registerdns Refreshes all DHCP leases and re-registers DNS names
           /displaydns  Display the contents of the DNS Resolver Cache.
           /showclassid Displays all the dhcp class IDs allowed for adapter.
           /setclassid  Modifies the dhcp class id.
    The default is to display only the IP address, subnet mask and default gateway for each adapter bound to TCP/IP.
    For Release and Renew, if no adapter name is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed.
    For Setclassid, if no ClassId is specified, then the ClassId is removed.
    Examples:
        > ipconfig                   ... Show information.
        > ipconfig /all              ... Show detailed information
        > ipconfig /renew            ... renew all adapters
        > ipconfig /renew EL*        ... renew any connection that has its
                                         name starting with EL
        > ipconfig /release *Con*    ... release all matching connections,
                                         eg. "Local Area Connection 1" or
                                             "Local Area Connection 2"
    Message Edité par Conseils le 01-13-2006 10:18 PM
    Message Edité par Conseils le 01-13-2006 10:19 PM

Maybe you are looking for