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.

Similar Messages

  • "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

  • 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 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

  • Control Parallel Port using Python!

    Hello, I've coded a new library for python which only purporse is to control the parallel port natively. It uses a C lib ported to python by me(although the C functions to handle this are really simple, all credits go to its original author Juan Gabriel del Cid Portillo) and what I like more about it in python is the interactive mode it offers! check sample code and more information at http://devpower.blogsite.org (in spanish).
    By the way, this is for linux only by now, windows is supported too but I don't have a windows system to compile it, if you want to you can compile it your self since the code for the C lib is included. I hope anyone can find this useful (say goodbye to pyparallel! no more Java deps!). Direct Download Link: http://devpower.blogsite.org/data/files … arport.zip
    Edgar Merino

    This is a frequently asked question. I'd dare say it probably gets asked once each month. You should look at this article:
    Using VISA to Access the Parallel Port in LabVIEW
    In a nutshell: You have to write/read by port. You cannot read/write by bit. This means that if you want to change the value of a single line you have to read the current value of the port, mask it to get the new value that has the line you want changed, and then write out the new value of the port.
    If you also do a search in this board, or on the NI site for "parallel port labview" you will find lots of hits.
    Message Edited by smercurio_fc on 04-09-2007 04:18 PM

  • Parallel port use Lookout

    Does anybody know how to read/write through the parallel port with Lookout 5.0? Is there any example code for this?

    Hi,
    It is possible to send bytes to the parallel port using the ASCII object within Lookout. However, it is presently not possible to control the state of the individual bits on the parallel port with Lookout.
    If you need to control the individual bits on a parallel port, consider using LabVIEW. It is much more powerful when programming serial and parallel ports.
    Remzi A.
    National Instruments

  • 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

  • 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.

  • Satellite A200: How connect a parallel port printer?

    Probably a very silly question, but would like to connect A200 series laptop to a parallel port printer that does not have a USB port... what is the best option?

    Hi
    You ask for the best way?
    Well, you have got only one way?
    You need an USB to parallel adapter. Check in the google for some offers.
    I searched in the google and found some good options.
    Maybe this could be a good choice;
    http://www.ramelectronics.net/html/usb_printer_cable.htm#UP6C
    Best regards

  • HOW TO ACCESS PARALLEL PORT USING JAVA

    hello guys.. Please Solve my Problem..
    I have to access motor through pc using Parallel Port. I want to know how to program in java to access Parallel Port. So How can i code to access the any Port of Parallel Port. Please Guide me in this..

    well I cannot give a more detailed answer than "use the java comm API".
    http://java.sun.com/products/javacomm/
    http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdf
    However Java wasn't built to do these kinds of operations, so it may well be that the API does not provide the functionality you need. In that case you may need a native library to do the work for you, which can make things a lot more difficult.

  • Controlling the ouput of my parallel port to control a simple LED display

    I am trying to produce a running light (using 8 LEDs) from my parallel port. How should I start if I want to program using Java. Can I anyone give me a simple program to start with?

    I am trying to produce a running light (using 8 LEDs) from my parallel port. How should I start if I want to program using Java. Can I anyone give me a simple program to start with?

  • Parallel port and labview

    I am trying to control a OMHT23-400 stepper motor through a 3540M motor drive using a Moschip PCI Parallel Port. I created a program to send alternatilng pulses to the motor and rotate it a desired amount of degrees. The address of the stepper motor in my computer is I/O Range BD00-BD07. The same program worked in another computer who's parallel port address was I/O Range 0378-037F. I dont know why the program is working in the first computer and the same program wont work in this one. Thank you for your help.
    PS: the program that i wrote is attached below.
    Guillermo Naranjo
    Physics/Space Science
    Florida Institute of Technology
    Phone: 768 537 6392
    e-mail: [email protected]
    Solved!
    Go to Solution.
    Attachments:
    Rotation of Camera2.vi ‏17 KB

    Dear Gant88,
     first download and unpack accesshw.zip as instructed  (you can also unpack it to the directory where your .vi files for this projet are, thugh this is not good practice).
    I attached my write_port and my read_from_port. (LV 7.1)
    In my case I wanted to write (or read) 32 bit integer from the port, for this purpose I am writing (or reading) three (data, status, control) bytes at different locations. You will figure out.
    Take care not to have any printer installed (in win xp) on parallel port, because windows will do some check-ups on printer from time to time. This will interfere with your program. 
    Try and let me know.
    regards.
    Bojan
    Attachments:
    write_to_port.vi ‏28 KB
    read_from_port.vi ‏32 KB

Maybe you are looking for

  • Photo stream questions, sharing, etc.

    Shared photo stream questions Camera Roll (CR), Photo Stream (PS) If I create a shared PS and share it with a friend, is this temporary like the main PS (most recent 1000 images)? For example, if I put one photo in a shared PS and then take 1000 new

  • 2nd HDD causes Qosmio G40 to crash

    My C drive is fine and everything ok split into 2 partitions running Vista Premium. 2nd HDD causes the computer to crash with the following error message: 0X00008086 0X00000100 0X000002B4 0X00000001 0X00000000 I have reinstalled everything wiped the

  • Firewire disk does'nt boot when updating it from 10.5 to 10.5.1

    I installed Leopard for security reasons on an external firewire disk, all went fine with the installation,but when I try to update it to 10.5.1 the disk never boots again ... any solution ????

  • Digital signature error while confirming maintenance order

    hi all, while i try to confirm maintenance order i m getting following error. "Unable to find strategy information about strategy Message no. SIG403 Diagnosis Signature strategy has been allocated to the function you selected. However, signature stra

  • How can i arrange deleted files by deletion date/time?

    Ok, so i deleted a bunch of files (in an effort to get rid of some old left over files from unused apps).. Anyway, i deleted some files that need to get back. I am not sure what their exact names or types are (they were in various folder and had diff