Direct Controlling of parallel port

Hi.
I need to be able to read/write direct to the parrel port under Solaris. Would I need to write a device driver, or is there one I just can download?.
In case I need to write the driver, Could somebody please help with following information:
(I have a working driver, which can read/write to a PCI board memory space - based on pio sample)
- How to allocate the parallel port
- How to read / write to the port
Thanks
Sarbjit

If someone has the same problem, I found a lot of things seraching for Java Comm API. Here is the link:
http://java.sun.com/products/javacomm/index.jsp

Similar Messages

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

  • 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

  • Is it possible to get direct access to parallel port pins under Windows NT? What can I do

    to get such an access under NT? I found Write to Parallel Port.vi but I can`t open it. The error that occurs is:
    resource not found, error occured while loading the vi, labview load error code 8: could not load vi ressources.
    This vi is from 1994. Maybe the source of trouble is that I`m using version 5.1.1 or it is a problem with NT. What do you think?

    Parallel Port.vi can only be used in DOS-Systems (like Win9x, WinME ;-). NT does not allow writing to parallel port with low level routines. It is more useful to use the digital port that is on most of the DAQ cards.
    Some more informations on parallel ports: http://www.lvr.com/parport.htm
    In general it seems to be possible. Somebody told me just to use the write port command with the address of the parallel port. Another way seems to be to tell NT to allow direct port access - but I don't know how.
    Andreas

  • 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

  • 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

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

  • 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

  • Send bit to parallel port

    Hello LV community,
    I am sending bits to my parallel port to communicate with my ASIC but I have an issue to enter some test modes which require to send simultanously for example 3 bits at the same time into 3 pins  to the port, I can seen from the scope that there are some delays between them (aprox.20 us).
    My question is, this delays is it due to the PC performance or the way to send them? I am using the Out Port8.via for thi purpose. Is there any solution for this issue?
    Thx

    Hi,
    I don't really know your program but maybe you a better of with a Digital I/O board to avoid these delays. Most people use these boards to control there parallel port at high speed by directly accessing the pins. Don't forget that when you are using Port In and Port Out that you are still using software calls and you are dependant on PC performance.
    Regards.
    JorisV

  • Parallel port / NT 4.0 / Labview 5.0

    How can I control the parallel port i/o pins with labview 5.0 and NT 4.0 ?
    The sub.vi "out.port" doesn't work.
    Thanks for any advice
    Andreas

    I use a DLL that was written in CVI to control the parallel port. CVI
    drivers for Inport and out port will work under windows NT. This is not a
    fast solution but it does work.
    Also a long time ago (In a galaxy far far away) there was a canned Import
    and outport DLL that worked with LabVIEW under Windows NT on Nationals
    Instruments web site. If you cannot find it, I could email you the dll I
    wrote but it is designed to work with EPP printer ports.
    From John Harmon
    Web Page: www.bright.net\~harmonj
    Email: [email protected]
    Land Line: 330-848-0460
    Pager: 330-490-0091
    ==========================================
    Andreas Balzer wrote in message
    news:[email protected]..
    > How can I control the parallel port i/o pins with labview 5.0 a
    nd NT 4.0 ?
    > The sub.vi "out.port" doesn't work.
    >
    > Thanks for any advice
    > Andreas
    >
    >
    >

  • 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

  • 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

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

  • Accessing Parallel Port Control and Status Registers with VISA and Win7x64

    Hello all,
    I've posted this in the I/O forum for VISA, but this main forum seems to get a lot more traffic so I'm posting here too.
    Wondering if anyone has a solution for accessing the Control and Status registers on a parallel port with VISA, now that Win7 has locked down the I/O ports and In Port.vi and Out Port.vi don't work anymore.  I've been looking all over for a solution and haven't found anything that will help; either the VISA solution is shown but doesn't mention if the Status and Control registers are accessible, or the solution is for a 32 bit system.
    The one thing I found was under Instrument I/O>VISA>VISA Advanced, there is a group of functions called Register Access; but, when I investigate that, it seems to need an address that the detailed help describes as "VXI, VME, and GPIB-VXI" or "PXI" with no mention of Parallel Port usage, so I'm pretty much at the end of what I can figure out.
    Basically what I need to do is use the data lines to send info, and watch the status lines for incoming discrete signals.  Since parallel ports are half duplex, I can't have the data lines be both inputs and outputs simultaneously, which is what I need.  A cheap D I/O card would be the easiest solution, but to make a long story short I'm dealing with a legacy system and that's something my higher-ups want to avoid.
    Any help is greatly appreciated!

    Hello,
    I was able to solve this problem using software from Entech Taiwan; it's called TVicPort and it's available for free for personal use, and very cheaply for commercial license.  If you have questions let me know, I'll do my best to answer them but investigate Entech's solution and see if it'll work for you:
    http://www.entechtaiwan.com/
    http://www.entechtaiwan.com/dev/port/index.shtm

  • 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

Maybe you are looking for

  • In Orchestration View , Port Type is Read only

    Hello , I am having Request Response Port in Orchestration View (Port Type), i have linked this with Receive Shape and Send Shape in orchestration and deployed this application. I have realised that my Port Type should be Type Modifier = Public inste

  • Hotkey Features Integration not detected by update retriever / system Update

    Hi Lenovo I suspect there might be an error in your metadata for the package 81vu13ww "Hotkey Features Integration" It is not offered through systemupdate or update retriever. in the update retriever program folder i have been looking at the file "C:

  • Reinstalling Camera RAW plug-in for CS4 on my new Mac - help!

    Hi folks, This is as much a Mac question as a Photoshop question, and I would appreciate any help. I just got  a new Mac, and when I transferred everything from my old computer to the new one, something didn't move over from CS4, such that whenever I

  • Data Model--Query Background colour

    Hi All In Oracle Applications(11i)----Standard Reports ,Query Background colour is changed to different colours(other than standard blue colour) How Can we Achive This.? Any Suugestions are welcome Tahnks In Advance Sasi

  • Automatic Generetion of Offsetting entry - Planning Functions

    Hi, I'm working on a project that will facilitate the users to enter planning data for the capital projects. I have a business requirement for plan transfers between individual projects. In my planning layout, I have Project ID, Sender/Reciever Proje