Parallel Port Reading

Hi there,
Well I'm making a school project. It consist of a temperature sensor connected to the parallel port of the PC. Well obiously the problem isn't the electronics, the problem, is that I want to make an GUI for that circuit using Java. Could you please give me some web pages with information or maybe some guidence to begin the search in the web. Thanks.

Access to serial and parallel ports in java is handled by javax.comm, an additional library you will have to download. Unfortunately, it is not available for all platforms, so you might want to check out the open source alternative rxtx as well.

Similar Messages

  • Parallel port read with a CIN

    I need to read the status of a pin of the parallel port from within a Labview CIN.
    I intend to use this as a trigger for multiple camera acquisitions, and going back to Labview to read this value would not be fast enough.
    I know that under windows XP I need to "unlock" access to this port. I used a set of functions called "winio" to do this. This works fine from a regular C program, but won't work from within a CIN. Does Labview lock the use of the parallel port in any way?
    Does anyone know what I should do ?
    Thanks.

    Tchill wrote:
    Does Labview lock the use of the parallel port in any way?
    Does anyone know what I should do ?
    Thanks.
    Hi Tchill,
    I can't remember Win-XP causing trouble with the parallel port. But I do know about the security feature which does not allow to change the parallel port IO addressing (that's another topic )
    If you are running LV7.0, you can do a search example on parallel port. There are a couple of very useful vi's that you can run right away and it should get you going.
    You can also check this thread.
    or more directly into the developer zone for a tutorial by clicking HERE.
    JLV

  • Comm API Parallel Port reading

    Alguien podria decirme como leer desde el puerto paralelo?
    Could anybody say me, haw can i read from the parallel port?
    Thanks.

    Hey ramosdario,
    You need to download and install the javax.comm package correctly (this can be difficult - in Windows 2K I found that I had to put some files into
    c:\program files\java\jre...
    Then you should be able to read from the COM port
    http://java.sun.com/products/javacomm/javadocs/javax/comm/package-tree.html
    Hope this has helped :)

  • Parallel Port

    I have an application that uses the parallel port. It works fine on Win2K using the AccessHW stuff. However, the piece of hardware I have hanging off the parallel port requires the parallel port to be put in SPP or AT mode. I change the mode in the computers BIOS. However, I have a computer that does not have that option in the BIOS. Is there a way of programatically changing the mode through LabVIEW or through Win2K?

    I would think that if there is no BIOS support, there's no hardware support on the motherboard. You might want to check with the manufacturer of the motherboard. I suppose it's possible that the motherboard was newer than the BIOS that they used. If that's the case, a BIOS upgrade would be the solution to using the port on the motherboard. You could also look for an add-on board with a newer parallel port.

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

  • Parallel port programming in java

    anyone please help me!!
    I have to send binary data(of numbers 1-255) to parallel port in 8 bit format.
    If you have code please send me or help me how to do so...

    One post is sufficient.
    Next time try "New to Java".
    Google ( [url http://www.google.com/search?q=java+rxtx+parallel+port]java rxtx parallel port )

  • Aquerir from parallel port with labview

    I want to aquerir digital data from parallel port of the PC then representing them on a graph with labview.
    How can i do that ?
       finaly thnx.

    You can use the port in and port out VIs found in the Advanced>Port I/O palette.  For an example check out 'Parallel Port Read and Write Loop.vi'.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Parallel Port in LV 8.2

    Hello,
    I'm trying to get two PCs connected together using a parallel port. I tried to write a byte to one parallel port and read it on the other. For this I use the VISA write, on LPT1. But every time I do this I get a timeout error on the sending computer as well as on the receiving one. Also the MAX test panelsends me a return status BFFF0015. Isn't it possible to use parallel port any more on WIN XP? I tried nearly all example codes from the developing site, but nothing worked. Do I have to change BIOS settings?
    NEED HELP!
    Thanks
    Thomas

    My explanation is not that clear..  see the attached VI.
    Enter the numeric value that you want in the number control.  You'll see the value written.  If you look at pins 2 to 9, you'll see the boolean equivalent to the value you wrote.
    Message Edited by JoeLabView on 06-24-2007 02:10 PM
    Attachments:
    PortIOModified.PNG ‏5 KB
    Modified Parallel Port Read and Write Loop.vi ‏45 KB

  • 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

  • Parallel Port Output

    ...doing a school project where i connect the parallel port to a bread bord which connencts to motors etc...
    i understand u use javax.comm.*; classes to access the parallel port.
    rite now i have like this...
    import javax.comm.*;
    import java.io.*;
    public class carPort {
      ParallelPort port;
      byte[] outputByte = new byte[8];
      public carPort() {
        port.setOutputBufferSize(8);
      public OutputStream getOutputStream() {
        try {
          return port.getOutputStream();
        } catch(Exception e) {
          return null;
      public void outputBit(byte bit, byte position) {
        try {
          outputByte[position] = bit;
          port.getOutputStream().write(outputByte);
        } catch(Exception e) { }
    }lets say outputByte has these value inside the array
    outputByte[0] = 1
    outputByte[1] = 0
    outputByte[2] = 1
    outputByte[3] = 0
    outputByte[4] = 1
    outputByte[5] = 0
    outputByte[6] = 1
    outputByte[7] = 0
    and i call the outputBit method...
    and this executes
    port.getOutputStream().write(outputByte);
    will the result be.
    PIN 1 = ON
    PIN 2 = OFF
    PIN 3 = ON
    PIN 4 = OFF
    PIN 5 = ON
    PIN 6 = OFF
    PIN 7 = ON
    PIN 8 = OFF
    (ps. i have an thread class that provides constant output)
    i know i know i know...i should be using c++....
    if the above isnt the output wut can i do to make that?
    just i case u dont understand wut im trying to do lolz. im trying to output indiviudal raw bits through the parallel ports 8 pins.
    thx =)

    wut i want to do is to turn leds/motors on and off through the parallel port. to do that, pin 1 would like be the right motor. and pin 2 the left motor, and like pin 3 for an led...etc...if pin 1 is on than the right motor will go if its 0 then the motor wont go....
    in other words i want the program to output raw bits not bytes to the individual pins of the parallel port.

  • IEEE 1284 compliant parallel port for HP dv6 with W7 Pro 64bit

    I am considering buying an HP dv6 laptop, but I also need an IEEE1284 compliant parallel port to program chips through. Do you know of an Express card to provide this feature, or a docking station which has such a parallel port?

    Given the bad reviews associated with that link, I don't think so.  I have tried a Sychrotech C-270 PC CardBus to IEEE 1284 Parallel Host Adapter on my Toshiba laptop with Vista Home Premium 32-bit.  It would work for an old printer, but does not support the 2-way interchange that the Altera ByteBlasterMV programming unit requires.
    Any other ideas?  Otherwise, I guess I'm stuck using an older desktop with a fully functional parallel port.

  • 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

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

  • Read the parallel port

    Hello,
    I am working with LabView 7.0 and with Windows 98. I want to read the
    parallel port, but I don't get it. I am using the I Saw In port.Vi but
    I don´t read anything, but however with the function Out Port.vi if
    that get
    to write in the port. Is somebody able to throw a hand?
    Thank you

    Hi,
    Hope this gives some light to your problem:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/c80752c53094c296862565f3007ac765?O...
    Regards,
    Jaime Cabrera
    Ni Applications Engineering Spain
    Regards,
    Jaime Cabrera
    NI Applications Engineering Spain

  • Problems Reading/Writing Parallel Port Data, Status & control Registers Using In Port.vi and Out port.vi

    Hi,
    Can anyone there help me Please with the problem. I am trying to
    communicate with the parallel port using my program which i have
    attached to the message. I am running LabVIEW 7.0 Professional with
    application builder. All the program does is reads and writes to the
    three parallel port registers. It runs FINE!!! in my computer. But when
    i built an executable (see attached) and tried running on a different
    computer (with LabVIEW Runtime engine 7.0 installed) the program does
    not read/write to the registers. The target PC had the parallel port in
    SPP mode just like mine. I can't seem to understand whats going wrong?
    Can anyone please help me if you know the right answer.
    Thanks
    Attachments:
    Programs.zip ‏119 KB

    Hi Guys,
    I too have a problem using "Out Port.vi", but of a diferent kind. I use this VI to control the  Parallel Port which in  turn controls a small circuit. I use only two data pins, DP-2 and DP-4 for this purpouse. I use LV 7.1 Professional Development version in a Windows 2000 operating system. Now, my main problem is that my code runs fine (both is development and .exe forms) in my development computer, but when I try to run the .exe version in  other computers (Windows XP operating system), it asks for a "protocol file" while starting (look at the attached picture).
    Now, I really have no idea what kind of a protocol file it asks for and just click "ok" and proceed to work, the most interesting part is that the code works well as I expected. So, my only problem is that it asks for a protocl file which I want to avoid. As with the application building, I do all that is  required like including the sub VIs (self developed), creating an installer, enabling the port access, and creating a proper .ini fine. I also use the Out Port.vi from the AccessHW library.
    I have my doubts on two fronts,
    1) With the version conflict, since my development computer runs with Windows 2000 and my target computers all run with Windows XP
    2) With the Out Port.vi which further contains a small VI "Output Word to Port.vi" in it and that further contains Call Library Function Node, which might call soem external files, like what my problem is.(look at the attached picture)
    I don't have answers to these questions and may be my problem is in different place, but I would like to hear from anyone who could give me a helping hand. I am in a situation where I could not disclose my code.
    Thanks in advance,
    mohan
    Attachments:
    protocol file.zip ‏153 KB

Maybe you are looking for

  • Open Items Layout

    I'm sure there is a basic answer to this so hopefully someone can help. When accessing payment processing or customer clearing transactions (F-28, F-26, F-32) the Process Open Items screen initially has a layout which contains a number of columns inc

  • Could someone find what went wrong?

    Hello all, it's my first post here. I recently started with flash, so my problem might be really silly, and easy to solve. So the problem is: On my layer 2 (1 is only background) my script works fine. The movie clip is stopped on the first frame, and

  • Photo file numbers

    How do I get the Ipad to display the photo file numbers as well as the image?

  • Lost serial number after move, no sign of it anywhere and my account has no sign of any of my products! HEEEEELLLLPPP ":-(

    I have STUPIDLY uninstalled my cs5 extended form my imac due to it playing up for some time now. I have the disc to re install but have no idea where my serial number is (no box, no sleeve,no email no sign) Adobe bridge is still working. I have logge

  • Spinning ball, delays

    I'm using a 2008 Mac Pro (10.9.5) with multiple internal drives, none of which are anywhere near full. Using FCPX (10.1.3) I frequently get the spinning beach ball after doing seemingly simple operations. I've been trying to figure out why and what I