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]

Similar Messages

  • I've a parallel port problem.Can anyone help me?

    Hi everybody I've a problem about programming with parallel port.I tried to write a simple byte data likes "0x0D" through the OutputStream of parallel port "LPT1" but it didn't get out from the runtime process;I 've found that it has stuck at OutputStream.write(0x0D); when i 've debugged it. Do you guys have any clues? and How can i make it through.

    Maybe take a look at this:
    http://java.sun.com/products/javacomm/javadocs/index.html

  • Problem with JNI and Parallel Port dll

    Hi. I'm doing some testes with JNI. Firs i followed the netbeans tutorial for doing a C programa that prints somthing for java.. like.. "Hello java from C".
    So i tried to load a dll from my dll. Like, I have this dll to use the parallel port on windows Xp. So i created a dll to access it an comunicates eoth java.
    I did everything just fine.
    When I start my Java app, the first thing it does is to load this parallel port dll and configure the functions of it.
    After that .. I get this error
    EXCEPTION_FLT_STACK_CHECK (0xc0000092) at pc=0x0093d269, pid=2284, tid=3000
    Can someone explain why ?
    (Sorry if i wasn't clear enough, english is not my native language, so ask if you don't understand something.. )

    hi ,
    I met the same problem this morning, and searched the www.google.com in order to solve it, as a result, your article was shown on my screen. :)
    Till now I have read some technical information and solved my problems. Maybe the solution be useful to you:
    ==============================
    error message : (Environment : Tomcat 5, Windows 2003, Mysql5)
    2006-3-29 11:53:48 org.apache.catalina.core.StandardWrapper unload
    message: Waiting for 2 instance(s) to be deallocated
    ==============================
    cause: the number of connection to database exceeded.another word,too many connections.
    ==============================
    solution: close the connection when it becomes useless for your program. :)
    ==============================
    ps. Sorry for my weak English . hehe ....

  • Problem in sending data to parallel port

    Hello,
    I can open a parallel port (LPT1) using java comm api i,e javax.comm.
    but problem in sending data to parallel port,
    I choose the appropriate port(LPT1), it is in bi-directional mode according to BIOS configuration.
    but according to the java program the mode is SSP.
    when i write data to parallel port the volt-meter give a reading of high state for all data pin (pin1 to 9) i,e the parallel port doesnot change state. I am using windows XP.
    What is the solution?

    try it on Open Solaris 10 or Linux platform.
    also just try using the new FileWriter("LPT1").write("Hello");
    on windows platform
    Pravin

  • Parallel Port Listener problem

    hello everyone,
    I have downloaded the javax.comm package and installed it as given in the installation instructions. I can print my files using the javax.comm classes. But i do not get the Parallel Port Event even if i register a listener.
    Also for all the methods such as is PrinterError(), isPrinterTimedOut(), isPaperOut() etc i do not get anything else but flase. Even if the printer is online or not, or if the paper is out etc, in all cases only false is returned by these methods. Please tel me what could be the problem.
    All these methods return false even when the printer is online or not :
    parallelPort.isPrinterBusy()
    parallelPort.isPrinterError()
    parallelPort.isPrinterSelected()parallelPort.isPrinterTimedOut()
    parallelPort.isPaperOut()

    Well, i think you should be looking for specs about the printer(s) to find out how they communicate with windows. That might not be that easy because not all company's will be very open about that. You should realise that any message windows gives you about the printerstatus comes to you via the drivers for that printer. The drivers know how to communicate with the printer, and that's different per printer.
    The most used standard for printing is Postscript (I believe HP6L is a postscript printer) wich is supported by the 'bigger' printers. There will be info about Postscript on the web, but it is owned by Adobe and I son't know how free the specs are...
    An older dot matrix printer is more likely to be using the lines that are signal out busy, error etc. You will find the pin layout here: http://www.doc.ic.ac.uk/~ih/doc/par/doc/regpins.html
    If all your after is printing your files you might want to use java.awt.PrintJob wich will let you print through the spooler of the operating system, thus letting the OS handle the printer with the right drivers.

  • Parallel port access problem

    Hi all!
    I'm trying to communicate with parallel port using the commapi version 2. Unfortunately, the api doesn't accept any other mode than SPP mode that is read-only. When I try to change the parallel port mode, I got an UnsupportedCommOperationException. I'm working with windows xp.
    Does anybody have an idea?
    Thanks!
    Thiago

    I have same problem...
    No one more have solve this?
    I alread have tried use RXTX library..
    but I have:
    java.io.IOException: The device is not connected.
    I think that pass-motor don't have correct response for pararell protocol (I need use it with direct write, no ack signal, no read, etc)

  • Using Parallel Port with Outport.vi Problem

    Hello,
    I am trying to use my parallel port to control a relay network and have run into a problem. I am using the outport instead of visa because for some reason I get an error with visa and outport seems more simple. The problem I am having is that my program doesn't seem to be able to initially take control of the port. What I mean by this is that if I restart the computer and open/run my program, I get an incorrect output on the parallel port. However, if I run one of the example programs for controlling the paralle port using outport (attached) (I believe the one I use is called Reading and writing to parallel port using loops) I am able to control the output to the parallel port. Also, after the example has run, my program works correctly. However, if I restart my computer again and run my program first it can no longer control the port correctly. So the problem seems to be that my program isn't initializing the port correctly or assessing it right at the beginning of the program. However, looking at the example program I don't really see what they are doing that I am not. I have the correct port address. 
    My program takes values from a text file and displays them on the port and that works correctly. 
    Attachments:
    CircuitTopModule.vi ‏26 KB
    parallel port examples.llb ‏72 KB

    Hi Jag213, I'm glad you were able to resolve the issues you discussed on the other forum related to this issue.
    Now that you have it working, I would recommend a few things:
    1. Just try modifying one of the existing examples and see what you can get away with removing in order to keep it working the first time.
    2. Try modifying the timing on your example - 10 seconds is a long time to wait between each week, I wonder if you are getting a time out? Do the examples work when you insert that kind of timing delay?
    3. Add the In Port.vi into your code - this may be related to getting your Out Port.vi to work correctly.
    4. Your code controls 8-bits on the parallel port, while the examples control 32-bits. Do all 32 bits need to be initalized? Looking at the Parellel Port Read and Write Loop.vi Example, in the IO Connector Status, the 31st bit controls whether the target is initialized.
    Play with these settings and see if you can get yours to work the first. If all else fails, build your program to run off of one of the examples. For example, have the while loop run once, and then call yours as a SubVI.
    Good luck!
    Joey S.
    Software Product Manager
    National Instruments

  • Problems accessing the parallel port

    Dear All,
    I'm having problems to access to the parallel port using the VI write /
    read to the serial port, it returns the error code 37. As far as I've
    seen in the documentation this error code is for UNIX systems and we're
    using Windows 95.
    Anybody know what's going on?
    Cheers,
    Ernest
    Ernest Mendoza
    Institut de Ciencia de Materials de Barcelona
    Consejo Superior de Investigaciones Cientificas
    Campus de la UAB. E-08193 Bellaterra (Barcelona)
    Tel- 34- 93 580 18 53
    Fax- 34- 93 580 57 29
    http://www.icmab.es/dmag/new/index.html

    This is the device not found error. It is platform independant. It means
    that you are addressing a serial port that LabVIEW cannot find. This is
    becuase the port is not there or LabVIEW cannot access it. Make sure the
    serial port you are addressing is configured in Windows device manager and
    then make sure you have the file serpdrv in your LabVIEW (or compiled executable)
    directory.
    -Jim
    Ernest Mendoza wrote:
    >Dear All,>>I'm having problems to access to the parallel port using the
    VI write />read to the serial port, it returns the error code 37. As far
    as I've>seen in the documentation this error code is for UNIX systems and
    we're>using Windows 95.>>Anybody know what's going on?>>Cheers,>>Ernest>>>-->____________________________________________
    _______>>Ernest
    Mendoza>Institut de Ciencia de Materials de Barcelona>Consejo Superior de
    Investigaciones Cientificas>Campus de la UAB. E-08193 Bellaterra (Barcelona)>Tel-
    34- 93 580 18 53>Fax- 34- 93 580 57 29>http://www.icmab.es/dmag/new/index.html>___________________________________________________>>

  • 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

  • 2nd Parallel Port address problem

    I bought a PCI parallel card and install in the computer. After installation, computer(window XP) automatic assign the 2nd parallel port to 0xC8C8 (which is virtual memory). I have software directly talked to Parallel port. It works fine with 1st port (0x378). When I change to address 0xC8C8, it could not work.
    There is something related to address. I use outport8.vi to talk to port. In this vi, address is I16. It only works with I/O memory range. My question is
    1. How do I change the address 0xC8C8 to Legacy address, such as 0x278? It does not work in XP.
    2. If I could not change port address, how do I talk to parallel port using some available vis?
    Thanks,
    Lucy

    Hello Lucy,
    find attached a simple Test-Program .... your Address 0xC8C8 is selected, if you choose LPT3.
    I had in the past the same problems on different Lab-PC's and additional PCI-cards. I solved it with "LPT.vi" - in example used as sub.vi - I think, this should be an acceptable workaround.
    Regards
    Werner
    Attachments:
    printer_port_test.zip ‏57 KB

  • Problems with Parallel Port on Reboot

    Hi,
    I use labview to drive my stepper motor connected to the parallel port
    on my Win98 machine. The motor takes a step for every clock pulse sent
    out on a particular pin on the port.
    Although my problem is not directly related to labview, I was hoping to
    get a solution. Every time I reboot my computer (at least once a day,
    it seems) the computer sends a series of clock pulses to the port,
    moving my motor several hundred steps. I cannot tell if it's a regular
    series of pulses or just random noise.
    Is there a way to disable the lpt port or otherwise prevent spurious
    noise being sent out to my motor when rebooting my machine? Or when
    labview is not running?
    Thanks,
    Scot

    Windows likes to check for plug-n-play devices when it boots up. You may want to set up a relay/interlock gating system that only allows pulses to reach the motor driver when one digital line is high and another other digital line is low.
    -Jim

  • Problems with ieee 1284 (parallel port)

    hi.
    I hope somebody can help me, I want to control the pins of the ieee 1284 to communicate with a pic, but i havent found any example or anything to do it, please help!!! :(

    You didn't search, did you?
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=parallel+port&subCat=siteforumid%3Ajava31&site=dev&qp=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums

  • Control parallel port (data and control lines)

    I need to control the output on the parallel port (LPT1) - Both data and control lines.  Once the data is written (Pins2-9), I then need to toggle the Sprocket signal (PIN1) - on the parallel port. The sprocket signal is also referred to as the Data Strobe Output.
    The required method is as follows:
    1. Lower the sprocket signal on PIN1
    2. Send the data (Pins2-9) and wait
    3. Raise the sprocket signal and wait.
    4. Repeat.
    I am looking for a method to control the data on LPT1 pins 2-9 and then be able to toggle PIN1 - Strobe signal - without the data falling from the other pins. What I have found is that whenever the state is changed on the strobe - the data that was written to Pin2-9 falls to zero. This will not work for my application - the strobe tells the hardware device that the data is ready. If it falls to zero when I toggle the strobe - that will not work.
    Regards,
    Guy

    Hello Adam,
    I am familiar with both references.  If you look more closely at the library reference - it allows me to communicate using VISA across the parallel port pins 2-9.  It does not permit direct communication to pin1 (the strobe signal) - property nodes don't allow the strobe to be refereced either (similar to control lines/signals for COM ports).
    Worse, I have also located examples using OUT PORT that does enable pin1 to be toggled.  The problem is, when those VIs are used, the data falls from the data pins when the strobe signal is written, even if its value is not changed.  For example, if the strobe is already high, if another high value is passed, the data falls from the data lines.  The other issue, when using VISA, as soon as the data is writen, the strobe signal automatically goes high even though I need a wait before setting the strobe high.  This is in complete contradiction to the second article you referenced which clearly discusses writing data to pins2-9 then taking the strobe high to indicate to the printer that new data is available.  It must be possible since this is the typical handshake.
    I am still looking for a more complete answer/solution.
    Regards,
    Guy

  • Parallel Ports vs. Trashing Printers

    Recently bought 3 new workstations:  2 w/Windows 7 - - 1 w/Windows XP Pro... Question is:  my old HP Laserjet 2100tn will not work with these computers due to their not being a paralel port on the back of the computer.  
    Do they make converters for the cables to make them work? Or is the printer basically worthless at this point?
    This question was solved.
    View Solution.

    You can purchase and install parallel port adapter cards and the printer will work. I can't specify which cards as you haven't stated what the specs are on your workstations. There are also usb to parallel port converter cables available.
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Connecting a HP LaserJet 4000 parallel port to Windows 7 USB port

    I have been using a HP LaserJet 4000 via a parallel port for years on a variety of machines / Operating systems without issue. However, having purchased a new Laptop (Windows 7  64bit), there is no parallel port (unsurprisingly). So the question is 'How do I connect my legacy parallel printer to the USB port ?
    Regards
    John Bennett

    Hi,
    You need something like this:
      http://www.shopbot.com.au/pp-belkin-usb-parallel-printer-adapter-f5u002-price-106075.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • Virtual Pc 7, Trouble Getting Online

    hi, i just bought virtual pc 7, and the internet connection seems to be working, but there's 1 problem, the only prgramme that can use the internet is internet explorer, whenever i try, and for example msn messanger, to log on it keeps giving me erro

  • How to copy from DVD

    Hi. I have a dvd which contain my friend's wedding movies. The problem is that everytime I played it on the DVD player, it gets stuck and said 'skipping damaged area'. But when I played on an actual player on the tv, everything's fine. Recently my fr

  • Issue with Purchase Requisition Release Strategy (Approval)

    Hi There, I am facing an isssue with the PR Release Strategy. Please read the description below. When a PR is created the PR Release Strategy is getting determined correctly. But the problem is that for example, if the Strategy has found a two level

  • Airport Express Appears Connected, But No Music

    I have the oldest version of Airport Express, and a 2009 vintage Macbook Pro with Yosemite recently installed, iTunes 12.0.0.140. Yosemite does not support the Airport Utility needed for the AE I have, but I was able to configure using Airport Utilit

  • Quick swipe comp broken

    Hi there, This has recently got broken somehow after working fine for ages. I've got 5 choir tracks all recorded normally into take folders. But now when I select takes the other 4 'slaved' tracks are no longer following suit. I've got all the usual