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?

Similar Messages

  • Using stand alone executables to send data to the parallel port

    I have a executable that uses the parallel port to activate an alarm. The program works well on the base machine which is running windows XP. However when I try to run the stand alone executable on a windows NT machine there is nothing sent to the parallel port. I have updated the Cvirt file on all machines. I don't get any error messages when running the stand alone executable.

    I have the same situation using parallel port to control a hot swap PCI extender card and no error showed.  I can turn on/off and read correct voltages from the card in base machine.  After creating executables, I can turn on/off the card, but got wrong voltages in target machine.
    I've installed AccessHW in both machines and copied AccessHW.dll and cvirte.dll to system32 folder and the folder same with executables.  I also tried installer with port support and serial support checked. 
    Windows XP is in both machines and LV 7 in base machine.  I use "Output Byte to Port.vi" and "Input Byte from Port.vi" in AccessHW lib.
    One thing I observe is initiation.  The card manufacturer provides a program with same functions.  After running their program, the voltage readings from the executables become correct.  The readings remain good after closing their program.  I close the executables and run the executables again and still see good results unless restarting the target machine.
    Any solution for the problem? Thanks in advance!

  • 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 communication error with new addresses

    MD2 motors controlled by LabVIEW. I am trying to communicate with the motors through a parallel port. I plug in a PCI card which can provide another two parallel ports. I check their addresses which are 1110-1117 and 1120-1127. Then I replaced the old addresses (378), but could not communicate any more, neither writing nor reading. The parallel port setting in BIOS is bi-directional, since both writing and reading are necessary. Does this matter?
    I really have no clue why or how this could happen. Any help appreciated.

    Hai,
    I have installed a additional parallel port card (in pci slot) in my pc.  Then i installed the device driver that came along with the parallel port card.  I
    checked out the base address it was 278H (but i dint look the address before installing the device driver).   In general centronics interface ( parallel port) are placed at their respective addresses strictly.  Try reinstalling the device driver that came along with the external parallel port card or try latest updates from the manufacturer if available.
    of the card.
    With best regards,
    JK1
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • My parallel port cannot work on win2000 and new pc

    I was troubled by the reading/writing from parallel port on win2000 for a long time. I had made my programs work on win2000/OLD PC, but i failed with the same programs on win2000/new PC. I tried with the method from the forum, that is, install accessHW and other method from my colleagues. Allways failed. I have to return to an old pc, it work! I think not only win2000/winxp will influence parallel port work, but also pc hardware. My new PC is Dell's GX260SMT with p4 2.4G. Dell's FAE told me that i can not install win98 on the pc due to some limitation of mainboard. Who met the smae issue as mine? How to fix it? Thanks for any help.

    I typically stay away from Dell PC's. I always have problems with them..
    I'm surprised to read that a new PC doesn't support Win-98. Have you / can you try Win-NT 4?
    I can't understand why Win2K would be different with a newer PC. The OS assigns the base address of the parallel port to a typical value of 0378h. This is for LPT1.
    My question would be: Are you having problems with LPT1 or do you have a PCI-based Parallel Port (to add ports)? If so, you cannot change the base address with Win-2K or Win-XP which assigns a PCI base address to the port.
    Can you provide more details as what exactly changes between the 2 PC's. Other than the motherboard and typical hardware (of course).
    How is the parallel port configured?
    What are you doing
    with it, etc?
    Any information that can help figure out a solution.
    Regards,
    JLV

  • Parallel Port Problem

    Hi,
    I've encountered a problem when using the parallel port. There are two LEDs blinking one green and the other orange. When the LEDs on my hardware blinks, the GUI will also blink in sync.
    When the Green and Orange LED indicator icon are within the while loop the LEDs will blink successfully but when I try to link the Green and Orange indicator outside the while loop, there is no blinking LEDs on my program. Is there any way where I could connect the LEDs indicator outside the while loop? Coz I need to use the Boolean to do some calculations.
    Can anyone please kindly help me?
    Thanks
    I've attached my problem.
    Attachments:
    parallelporttest.vi ‏23 KB

    Saykhoon,
    I am not sure what you are asking. If you need to have the indicator update over and over, you need to have it in a loop. You can do other operations on it inside of the loop as well. Just needing to perform some other Boolean operations on it does not necessarily mean that it cannot be in a loop.
    Maybe it would help if we had a little more information about what you are trying to accomplish.
    I hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to enable parallel port DC5800

    This PC has header pins on the motherboard for a parallel port and I have connected a header cable but linux does not recognise that the computer has any parallel port hardware. There also seems to be no way to enable or disable the parallel port in the BIOS although it does have a setting for the printer port mode. The parallel support is described as "optional" on this PC, is it possible that the port cannot be enabled on this model?
    Additional: I just installed Windows and it's the same. It really seems like the parallel port is disabled at BIOS level and cannot be activated.

    869578 wrote:
    Could you give me a sample query using by the above example query?
    What kind of hints are needed in order to invoke multiple db link? As I said - this (distributed PQ across db links) is not supported. PQ needs to run inside a single database.
    The only time that PQ runs across servers, is with an Oracle RAC database. But even then, PQ runs inside a single physical database.
    If you want to use parallel processing across databases via db links, you need to code and implement that yourself.

  • USB to Parallel Port connector plug for printer

    Hi
    I'm trying to get an old IBM laster printer (4019) to work with an ibook G4--I have downloaded the Gutenprint driver which is supposedly compatable but now I need advice on adapting cables for printers. I was going to buy a Sabrent USB to Parallel port connector but saw in the feedback that many people weer unhappy with it. Could somebody suggest the best USB to Parallel port connecting cable for me and where to order it? thanks very much.

    Hi Derek,
    maybe this is a better one: http://www.keyspan.com/products/usb/up6c/homepage.spml
    I don't have any need for this, so I can't provide any review of it.
    Regards
    Stefan

  • Parallel Port Interfacin​g

    Hi,
    I'm working on an RF Design project. I'm working on LabVIEW to communicate with one of the evaluation boards used in the project. Parallel port interfacing is used and I would like to know the processes involved in parallel port interfacing.
    I'm looking forward to a reply at the earliest.
    Yours faithfully,
    Vishnu.

    Look at the VISA routines.  It has supportfor the parallel port.  Otherwise you will have to communicate with it at the register level using peek / poke memory.
    Search examples for, "Parallel".  This is one that is included: C:\Program Files\National Instruments\LabVIEW 8.2\examples\portaccess\parallel port examples.llb\Parallel Port Read and Write Loop.vi
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • How can i us the parallel port of the printer to control a frequenz-generator?

    Hello all !
    I like to  control with LabVIEW 8 student-version, the Frequenz-generator gadget . For this challenge i like to us the parallel port of the printer. I need for data flow only 2 cable. The frequenz-generator gadget need two signal : Low and High.How  can i  us the parallel port of the printer to control a frequenz-generator gadget? I have us  the VIs-Visa  (Visa-Serial, write, Close ), but i dont no what command i have to write on the Visa-Write so that the Signal can be in the low or high position.
    Thanks

    Hi Jeanjac,
    first, look here:
    http://en.wikipedia.org/wiki/Parallel_port
    to get the port numbering. also, be sure not to leave pin unconected, sometimes you might get an error message otherwise (i remember pin11 has to be always connected or so for windows...)
    second, just run the test panel in MAX and write something to your device to check if it works.
    then in LV, you have to decide to which pin is connected your instrument. in any case you have to address all 8 output pins together! this is a parallel...
    if you prefere to use only one pin, then you can use the serial port, with just pin 2 and 3 connected. it would work easier for you, since you address only one bit.
    Gabriel
    ... And here's where I keep assorted lengths of wires...

  • How to use the Control lines of a parallel port as Input lines to be read using Labview ?

    The details are :
    NI Software : LabVIEW
    Version : 5.0
    OS : Windows 95
    NI Hardware : N/A
    Drivers : N/A
    CPU : Pentium
    RAM : 48
    Vendor : darcom
    Customer Information :
    SPEL TESTING
    SPEL, INDIA
    [email protected]
    Ph: (91) 4114 53818
    We do not have any DAQ cards within the PC. We have the parallel port which is EPP and ECP compatible having the address 278h on LPT2 and we are trying use this port for reading 8bit data from an external circuit. We developed a vi program in Labview 5.0 to control the parallel port.We tried with the Data lines to send signals from PC to external device through this parallel port with the addr
    ess 278h (which
    is Data lines) and it works fine. We also tried using reading 4bit data from external
    device to PC through this port with the address 279h (which is Status lines) and it
    is also working fine.
    But it was not possible for us to read through Control lines whose address is 27Ah. Whereas when line printer (dot matrix printer) was
    connected, it was possible for us to take print out. Thus printer was working. This
    informed us that the control lines are all OK!
    Can you please clarify, how to use both control lines and status lines to read 8 bit data through this parallel port using the Labview software.

    There are several Knowledge Base entries about this on the NI site, but probably the most detailed document is on the Advanced Measurements (www.advmeas.com) website. Try looking at this page, I think you will find it useful.
    http://www.advmeas.com/goodies/parallelport.html

  • Is it possible to control the parallel port with Lookout 5.0

    I want a simple demo setup on a PC, so I can control the 8 data bits of the parallel port. Example, to use START p/b that would toggle bit 0 and data returned on bit 1.

    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.

  • Controlling pins on the parallel port

    Hey
    I'm writing a program in  labview to controll a matrix card with labview. For that I'll use the parallel port. On  the datasheet it says  that only one off the pins shall send data serial into the card, and others are pins for update. clk etc.
    So I need help on how to configure the parallel port to  send different  things to the dedicated pins.
    jonas

    Hi Jonas,
    your task is a typical  SPI - communication ( like it is used for many chips - A/D  or D/A- converters; µC's etc. )
    Find attached a SPI-example-program (LV7.1.1), ( 16 Bit in this case )  - there you will see the mechanism, how to
    serialize Data @ LPT - Port and how a clock and /CS signals are added.
    I think with all my comments inside the Diagram you should understand, how it works.
    Switch the yellow light bulb "ON" and step through the program in Debug mode - every single clock and
    Data change can be observed  .............. or use a scope in "loop mode".
    If there are still open questions - let me know.
    Regards
    Werner
    P.S. Next time you should first simply type "parallel port" or "SPI"  in search line.... on this forum you will
    find a lot of threads about this issue........
    Attachments:
    project xx SPI.zip ‏92 KB

  • Could you help me to control a DC motor with the parallel port and windows 2000?

    I have labview 5.1 and i want to control my application throught the internet

    I would recommend upgrading to LabVIEW 7.0 for a couple of reasons. First, LabVIEW 6.1 introduced remote front panels which allows you to control a VI through a web browser. Setting up remote front panels is very simple and that alone is worth the upgrade. As far a using the parallel port you can use VISA to send/receive commands via the parellel port if you are using a motor controller with a parellel interface. If you are talking about using the port on a bit level to control the motor, LabVIEW 7.0 ships which an example of how to do basic digital input output with the parallel port.
    Regards,
    JR A.
    Application Engineer
    National Instruments

  • Is it possible to use the parallel port to control a stepper motor (compumotor s6-drive)?

    I'm using a compumotor S6 drive and I was wondering if I could somehow use Labview to program the parallel port to send the required step and forward backward signal to the controller and motor. All I need it to do is go back and forth at a user defined rate. Considering I know very little about Labview this is a daunting task indeed.

    Hello Tiano!
    I found an example on the www.ni.com website named "Reading from the Bi-directional Parallel Port."
    Here is the link: http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CBA4C111EE034080020E74861&p_node=DZ52058&p_submitted=N&p_rank=&p_answer=&p_source=External
    Hope this and the other documents help you along your way!
    BB_Phil

Maybe you are looking for