Writing a series of codes to parallel port LPT1

Currently i'm using Labview version 5 to write a program which sets the individual pins on my LPT1, which i'm sucessful in. However, I notice that after writing an ascii to Serial Port Write.vi, it still doesnt sets the parallel port. It is only when i include close serial driver.vi after writing the string then the respective output is set.
In my application, i need to send many ascii within a very short time frame, currently, using the above method, for 40 ascii characters that i write into the parallel port, it took the computer about 2 seconds to finish (which is too slow). How do i improve the performance of my application?

Jared,
I tried using Out Port.vi but when i key in 378 to the register address and key in the number for the value control and run the vi just for testing purposes, it gives a dialog "Capability not supported. VI 'Out Port.vi' was stopped at Code Interface Node 0x1BC of subVI 'Out Port.vi' . I do not have the advance analysis package and i wonder if it's that is the root of the problem for the mentioned, or have i misintepreted 0x378.
Thanx for your attention.

Similar Messages

  • [865PE/G Neo2 Series] How to correct "Parallel port driver service failed to start"?

    I recently disabled the parallel port in the BIOS (I wasn't using it anyway) to try and free up an IRQ or some system resources, when I installed a firewire controller (which I wanted to have its own IRQ if possible).  Then I periodically started getting this error "The Parallel port driver service failed to start due to the following error:
    The service cannot be started, either because it is disabled or because it has no enabled devices associated with it."  I Googled this, but any info I found either was not applicable or was in incomprehensible techspeak.  I couldn't figure out how to prevent the error from occurring, so for the time being I re-enabled the parallel port in the BIOS--disabling it didn't free up any IRQ's anyway.    I would like to know more about this, however.  Is there a proper way to go about disabling the parallel port so that this error does not occur?   
    Should it be done before installing Windows?  What are the advantages and disadvantages of disabling the parallel port, other than freeing up IRQ's (as I said, it didn't--unless this also happens only upon Windows install?).  Gurus, please respond!

    That was the first thing I tried.  There is nothing called "parallel port service", nor is there any mention of the parallel port in any of the services listed.   I don't know if it is even using any system resources, anyway.  The ECP Printer Port always had a box checked that said "never use an interrupt" anyway. It has no conflicts or sharing.   Maybe I should leave it alone.  It's just that people always mention disabling it in order to free resources.   

  • Can we read the status of a particular pin in the Parallel port(LPT1)?

    Hi,
    I have a Camera.I'm trying to read the status of the camera by connecting it to the parallel port.The camera has a DB26 ,high-density I/O connector .A high level on pin 19 indicates that the camera power is switched on(+5v =on ,0v=off).I want to read the status of this pin by connecting it to the parallel port.Can i read the status of a particular pin in parallel port thru LABVIEW? if so how ? Any help in this regard is appreciated.

    Rajesh,
    You may find the following tutorial useful:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596?opendocument&node=DZ52058_US
    Regards,
    Khalid

  • 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

  • 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

  • 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

  • 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

  • Working with parallel port

    Hello
    I am intersted in working with the parallel port (LPT1 if I understand correctly) - I want to be able to generate an electric stimulus in the LPT port from the vi: what is the way to do it???
    should I use the Out Port.vi to do so???   
    Lava

    Is this option ok also??
    Attachments:
    Interface_OutPort.vi ‏13 KB

  • Writing to parallel port

    i need to be able to write to the parallel port on a desktop computer
    to control a stepper motor.  I need to be able to write logic high and
    low
    at certain pins that go to a stepper motor driver.  The writing to the
    port needs to be done so many times, or so many steps that are entered
    into the interface. Pins7 is the clock that that starts the stepper
    motor control in the stepper motor driver.  Also, pins 9 and 10 need
    to be driven low or high to tell driver wether half or full step and counter clockwise or clockwise.
    Basically i need to know how to set up my parallel port on my labtop in labView 7.1?
    I want to be able to use the write to digital I/O.vi to send the proper
    binary or hex value of an index array  to the parallel port
    to drive the motor driver.

    Hi exavier,
    Look here maybe someone else hase asked.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Writing a String to the Parallel Port

    I am a new user of Labview and have very little experience. I am trying
    to write an arbitrary string (that I can input) to the parallel port.
    Basically, I need to communicate with a device that connects to it and
    will accept commands as plain strings. I have read the article "using
    the parallel port with labview" but it hasn't helped me as I am so
    inexperienced. I was hoping that someone could help to learn how to do
    this and if there's a vi that already does this. It seems like a simple
    enough task. Thanks.

    Rather than simply present an answer from which you will learn little, I will try and out line what it is that you should investigate......
    First have a look at a string control
    You might want a button and a case structure to tell the code when to start decoding the string
    Put the following code inside the case structure say on the true state
    Then, taking data from this string control get the strings length
    Then using this and a loop index through the string using the string subset VI on the string pallette, use the length of 1 and index the position in the loop
    Now figure out how to convert the character to an ASCII value
    Send this to the parallel port
    This should be a reasonable frame work to empower you to learn for yourself.
    "Give a man a fish and you feed him for a day, teach a man to fish and you feed him for life", enjoy the free meals!
    Message Edité par Conseils le 07-13-2006 09:17 PM

  • Reading/writing to parallel port LabVIEW 7.0 Win2000

    I'm using LabVIEW 7.0 on a Windows 2000 machine which also has the CVI runtime engine version 6.0.4.105.
    I wish to write to the parallel port, simply on/off signal to eight lines. I have previously done this with LabVIEW 5+Win98. I have downloaded the accessHW libraries and installed them but have discovered that I also need the CVI rte version 5.0 . When IT personnel try to install this run time engine "A newer version of this run time engine is currently installed"
    appears and won't install version 5 over version 6. Has anyone else come up against this and is there a way around this (without having to install an older version of LabVIEW)?

    Leeser wrote:
    > I'm using LabVIEW 7.0 on a Windows 2000 machine which also has the CVI
    > runtime engine version 6.0.4.105.
    > I wish to write to the parallel port, simply on/off signal to eight
    > lines. I have previously done this with LabVIEW 5+Win98. I have
    > downloaded the accessHW libraries and installed them but have
    > discovered that I also need the CVI rte version 5.0 . When IT
    > personnel try to install this run time engine "A newer version of this
    > run time engine is currently installed"
    > appears and won't install version 5 over version 6. Has anyone else
    > come up against this and is there a way around this (without having to
    > install an older version of LabVIEW)?
    You could also use the PortIO library from the OpenG project
    http://www.openg.org.
    It is currently only in the CVS source code
    repository on that site and not yet part of the OpenG Toolkit. Because
    it is not everybodys thing to use CVS I include that library as
    attachement here.
    I tested it myself on Win95, NT4, 2000 and XP and had no problems at all
    with it. But please consider it beta software and if you have problems
    let me know with as much details as possible.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions
    Attachments:
    portio.zip ‏195 KB

  • Is VISA Write VI / Out Port (need AccessHW) better for writing to parallel port?

    We have experimented with 2 methods for writing to parallel port:
    1. Using NI VISA directly by calling VISA Write vi.
    2. Using the Out Port vi, for which we had to install AccessHW.
    Does the first method have any disadvantages. It seems to be a simpler solution.
    Operating system: Windows 2000
    Labview 8.2
    NI VISA 4.0

    Hey rashadi,
    There is nothing wrong with using the VISA write.vi to write to a parallel port.  Here is a great example program of how to use the VISA vi's to write to a parallel  port. 
    I hope this helps!
    Best regards,
    Jason W
    Applications Engineering
    National Instruments

  • 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

  • Parallel Port (Mac OS 9)?

    I am putting together an electronic circuit for controlling a stepper motor. The board includes an option for a parallel port as typically found on older PCs.
    Is there a product available that would give me a parallel port on my G4 tower that I could then program? I am familiar with writing Firewire and older serial port drivers and feel comfortable writing code. All I need is the hardware and an associated software library for accessing the port.
    Please note that I am using Mac OS 9.2.2. I have no tools or desire to write for X.
    Gary

    Hi Gary, look for an old USB to Parallel adapter that's Mac compatible.
    Here's one...
    http://www.antarespro.com/890523-item-LINK_DEPOT-USB-DB25--899744001363-USB-DB25+DataTransfer.aspx?sgd=330d319d318d313d316

  • Parallel Port Programming

    After series of trials and searching the forum i was able to get the commapi and install it. i want to design a simple program that can control circuits (i.e to on leds) . the problem is how to write a 1 or 0 bit to a particular pin. i saw different posts on this issue but still haven't got the real solution.
    i also got to know about parport api and have downloaded and istalled it. but when i run the SimpleIO.java that comes with the package i get this error:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_PRIV_INSTRUCTION occurred at PC=0x10001057
    Function=[Unknown.]
    Library=C:\Program Files\Java\j2re1.4.1_02\bin\parport.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    at parport.ParallelPort.readOneByte(Native Method)
    at parport.ParallelPort.read(ParallelPort.java:37)
    at SimpleIO.main(SimpleIO.java:8)
    plz i want to know what's the cause of this problem, really can't go further on my own and i know nothing on native interface.
    I would be grateful if i can achieve my objective without the parport also.
    How can i write bits to the parallel port plz???????????????
    Thanx in advance

    Why not communicate with the parallel port using the COMM API 2.0?

Maybe you are looking for

  • Audio from the mini to speakers

    I use an HP monitor with built-in speakers.  The VGA/mini-display port supports the video just great.  The audio uses a 3.5mm connector into the audio out port on my brand new mini.  It worked fine on my old mini but the new one is silent.  THe speak

  • Auto replace missing fonts durring script place

    I have a script that runs on startup that places a word document in a new indesign document. The problem is that if there are fonts in the word document that indesign can't find, then we get a message saying there are missing fonts and a series of ja

  • UCCE 7.5(10) now available for download (March 3)

    This is the "safe harbour" for the 7.5 train. Many important bug fixes. I'll be installing this in one of my lab systems over the weekend. Safe harbour: "Release 7.5(10) is the last planned maintenance release on Unified CCE 7.5 software and will be

  • Windows Itunes help (Quicktime 7.1.3)

    Hey all! I have been using iTunes for a while and have collected a big collection over the years.... When i was asked to download the new version of iTunes (Not 7 i think but a newer one) i acepted as i usually so. The installation did what it needed

  • Instaling upgrade for CS3 and adobe RAW

    Real newbie question here: I have CS3 installed on my windows XP computer. It is notinternet capable, have second online computer for that purpose. I only have RAW version 4.0 on my PS3 program purchased several years ago. I have downloaded the upgra