Simple parallel port question

Dear everyone,
I want to control some pins of the parallel port to be high voltage. So I read this NI webpage
http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596?opendocument&node=DZ52058_US
I follow the instruction to connect pin 11 & 12 to ground and checked my LPT1 address is 378, but error message comes out when I run the program. Could you please help me to solve the problem
thanks
Attachments:
2.JPG ‏73 KB

It seems you are running windows XP.
The old inPort and outPort VIs are not supported under Windows NT/2000/XP.
You should upgrade to LabVIEW 7 (or higher) or follow the instructions HERE to install the accessHW utilities.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Simple parallel port control

    Hi, I am new in programing and what I need to do is to maintain 5V on 4(any 4, cause I can hook the wires to any pins I wanna to) of the 25 pins of the parallel port. and at specific time I need to press a button to let the voltage drop(a signal) to active the machine I am working on. Can any one give me a lift on what vi to use? I check the NI tutorial but it all talks about how to send and recieve 8 bits info over the parrallel port while what I really need is just a simple program to control 4 pins. I am using windows XP pro and labview 7.0
    Can a computer learn how to program?

    First of all read this arcticle about the Parallel Port
    http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596
    After that downaload the Accesshw.zip which allows you to write and read from any computer's port under windows.
    Now if you want lets's say to write to the 1st bit of the parallel port you have to put to the parallel's port data address the value 1. In order to leave the other bits unaffected you have to keep somewhere the state of the parallel port and use the following condition [state OR 2***bit_number] if you want to turn on (1) this number. On the other hand if you want to turn it of use [state AND NOT(2***bit_number)]
    Please let me know if you need more information
    There are 10 kind of persons. Those who understand binaries and the others.

  • Simple USB Port Question

    When I use the USB port on my Apple keyboard, I'm finding file transfers are much slower compared to when I use the ports on my Mac Pro. Is this normal? If so, why?
    They're all USB 2.0, correct?
    Is it because the keyboard USB port is on a hub?

    I don't think all the keyboards supported USB 2.0, I use a bluetooth keyboard but my old wired Apple keyboard shows only USB 1.1 speeds. You can use the System Profiler (in the Utilities folder) to see if the Keyboard hub supports USB 2.0 speeds.

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

  • Question: serial/parallel port

    Hi, I am trying to control a simple digital switch using labview and either
    my serial- or parallel port. I want to control each individual pin on the
    port: to turn on/off +5V on the output pins. Does anybody now how? Is it
    possible? I am running labview 6.1 on W2k.
    Thanks in advance

    Hi Luca, JS & Pawel,
    in general everything is correct, but I would suggest to use the "Out Port" and "In Port" functions from LabVIEW. Have a look to the simple printer_port_test.vi. This also needs the accesshw as already explained.
    In addition I recommend to use buffer-circuits in between LPT and an application in order not to destroy the motherboard-Chips by accident !!
    Regards
    wha
    Attachments:
    printer_port_test.llb ‏52 KB

  • RXTX Parallel port communication with Pin Printer

    I have successfully installed and configured RXTX-2.0-7pre1 on Linux platform.
    2 printers, one Laser jet printer connected to the Serial port and the other Pin Printer connected to the Parallel port.
    I can print my files out successfully with RXTX on both my 2 printers. But, there is some problem with my Pin Printer performance. The print job is a little slow and the printing is word by word output.
    While the Laser printer received the whole string of my RXTX output and printed them out asap.
    RXTX read my data and write them to the Parallel/Serial port directly, so, for my laser jet printer, it buffered the RXTX output data and processed them all in one. No problem, laser printer works well. But to the Pin Printer, it got the RXTX output and printed them out with no buffer. I am not authorized to deal with the Pin Printer device driver.
    So, my question is that, is there someone knows how to resolve this problem on RXTX side? That is to say, how to modify the source code of RXTX and customize it?
    I wanna know how to create buffer in RXTX, for example, buffering a whole string line and then sending them to the Parallel port. Then, It supposed to be that the Pin Printer will receive once a whole line output and printing line by line in the paper! Not the problemly slowly word by word output!
    Thanks a lot!

    Simple metrics from google should suffice the SUN team from understand the need/huge requirement for supporting Serial and parallel port programming in windows. Platforms would always change and the team at SUN should remain commited in supporting new platforms.

  • Format of the parallel port base address

    Just wondering if someone could please help with what I'm sure is a simple question
    I'm currently trying the control the first 3 bits of the parallel port using the Out Port sub vi.
    Using the Labview examples and help I can see how to find the base address of the port. My LPT1 port is 378 like most.
    However the parallel port I'm trying to control is a added in extra PCI card and looking in the Device Manager this is LPT3 with 2 an address ranges starting at CF00 and CE00 . I understand how the address range of starting at 0378 becomes 378 for the base address. But whatabout CF00 asnd 2 ranges? What do I need to put as the base address for the Out Port for CF00?
    thanks in advance
    Nick

    duplicate post. why did you feel the need to repeat the question, especially since it has already been answered.

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

  • How to Install a parallel port printer to usb port of Pavilion dv5 Notebook

    In trying to install my HP DeskJet 610C Parallel Port printer to my HP Pavilion dv5-1235dx Notebook PC with Windows Vista Home Premium 64-bit, I followed instructions given by HP Support some two years back.
    I connected up the two units through a Parallel-to-USB ports cable. The PC loaded and confirmed suitable driver. (Following advice from sites on the Internet, I have made repeated attempts to carefully install the printer, but to no avail).
    Upon my issuing the Print instruction, the printer invariably prints two copies of what appears to be 'gibberish' in two lines at the start of the sheet. Thereafter it picks up and then ejects 6-8 sheets of blank paper.
    Any help in resolving this anomalous situation will be be most welcome and much appreciated.
    I might add that the printer works normally when connected in parallel to an older, Compaq Armada 1750 Notebook (XP OS). In this instance too, the Parrallel/USB worked as in the Pavilion PC, above.  
    This question was solved.
    View Solution.

    Hi khalidem, 
    Sounds like you have a communication problem with the printer cables. Have you tried a new parallel to USB cable or adapter?
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • 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

  • Parallel Port & Printing

    Hi,
    I am new to ArchLinux and have been using Gentoo since qutie a while. After installing nearly everything I need I am now struggling with the printer setup. I guess this is due to a problem with my parallel port, cause it does not show up in the selection box of cups. I can choose serial and usb ports, but no parallel ports. I have installed some modules like
    lp & parport
    I also have cups running of course and it connects. My question is the kernel (2.6.4) must be compiled with support for the parallel port by default, right? At least after loading these modules it should work. What am I missing?
    Thanks already!!!

    Good advice!  Haven't solved it yet, but FWIW I can read the cups documentation.  So I set the log to debug mode and here it is: 
    This log content follows
        lp fstab
    18/Mar/2004:18:13:15 +0000] AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=1
    CloseClient() 5
    AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=1
    CloseClient() 5
    AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=0
    ReadClient() 5 POST /printers/lpr HTTP/1.1
    print_job: auto-typing file...
    print_job: request file type is text/plain.
    check_quotas: requesting-user-name = 'root'
    print_job: requesting-user-name = 'root'
    Adding start banner page "none" to job 16.
    Adding end banner page "none" to job 16.
    Job 16 queued on 'lpr' by 'root'.
    Job 16 hold_until = 0
    StartJob(16, 0x8093b70)
    StartJob() id = 16, file = 0/1
    job-sheets=none,none
    banner_page = 0
    StartJob: argv = "lpr","16","root","fstab","1","","/var/spool/cups/d00016-001"
    StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
    StartJob: envp[1]="SOFTWARE=CUPS/1.1"
    StartJob: envp[2]="USER=root"
    StartJob: envp[3]="CHARSET=iso-8859-1"
    StartJob: envp[4]="LANG=en"
    StartJob: envp[5]="PPD=/etc/cups/ppd/lpr.ppd"
    StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
    StartJob: envp[7]="RIP_MAX_CACHE=8m"
    StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
    StartJob: envp[9]="CONTENT_TYPE=text/plain"
    StartJob: envp[10]="DEVICE_URI=parallel:/dev/lp0"
    StartJob: envp[11]="PRINTER=lpr"
    StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
    StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
    StartJob: envp[14]="CUPS_SERVER=localhost"
    StartJob: envp[15]="IPP_PORT=631"
    StartJob: statusfds = [ 7 8 ]
    StartJob: filterfds[1] = [ 9 -1 ]
    StartJob: filter = "/usr/lib/cups/filter/texttops"
    StartJob: filterfds[0] = [ 10 11 ]
    start_process("/usr/lib/cups/filter/texttops", 0xbffeff30, 0xbffef2a0, 9, 11, 8)
    Started filter /usr/lib/cups/filter/texttops (PID 2486) for job 16.
    StartJob: filter = "/usr/lib/cups/filter/pstops"
    StartJob: filterfds[1] = [ 9 12 ]
    start_process("/usr/lib/cups/filter/pstops", 0xbffeff30, 0xbffef2a0, 10, 12, 8)
    I [18/Mar/2004:18:13:15 +0000] Started filter /usr/lib/cups/filter/pstops (PID 2487) for job 16.
    StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
    StartJob: filterfds[0] = [ 10 11 ]
    start_process("/usr/lib/cups/filter/foomatic-rip", 0xbffeff30, 0xbffef2a0, 9, 11, 8)
    Started filter /usr/lib/cups/filter/foomatic-rip (PID 2488) for job 16.
    StartJob: backend = "/usr/lib/cups/backend/parallel"
    StartJob: filterfds[1] = [ -1 9 ]
    start_process("/usr/lib/cups/backend/parallel", 0xbffeff30, 0xbffef2a0, 10, 9, 8)
    Started backend /usr/lib/cups/backend/parallel (PID 2489) for job 16.
    ProcessIPPRequest: 5 status_code=0
    This looks like the problem?  Can't find status 22 explanation but must be the next line.
    PID 2488 stopped with status 22!
    [Job 16] /usr/lib/cups/filter/foomatic-rip: No such file or directory
    [Job 16] Page = 612x792; 0,0 to 612,792
    [Job 16] ppd->num_fonts = 35
    [snip]
    [Job 16] ppd->fonts[8] = Courier
    [Job 16] Page = 612x792; 0,0 to 612,792
    [Job 16] slowcollate=0, slowduplex=0, sloworder=0
    [Job 16] 0 %%BoundingBox: 0 0 612 792
    [Job 16] 0 %%Creator: texttops/CUPS v1.1.20
    [Job 16] 0 %%CreationDate: Thu Mar 18 18:13:15 2004
    [Job 16] 0 %%Title: fstab
    [Job 16] 0 %%For: root
    [Job 16] 0 %%Pages: (atend)
    [Job 16] 0 %%DocumentNeededResources: font Courier-Bold
    [Job 16] 0 %%+ font Courier
    [Job 16] 0 %%DocumentSuppliedResources: procset texttops 1.1 0
    [Job 16] 0 %%+ font Courier-Bold
    [Job 16] 0 %%+ font Courier
    [Job 16] 0 %%EndComments
    [Job 16] 0 %%BeginProlog
    [Job 16] 0 %%BeginResource: font Courier-Bold
    [Job 16] 0 %%CreationDate: Wed Dec 22 1999
    [Job 16] 0 %%EndResource
    [Job 16] 0 %%BeginResource: font Courier
    [Job 16] 0 %%CreationDate: Wed Dec 22 1999
    [Job 16] 0 %%EndResource
    [Job 16] 0 %%BeginResource: procset texttops 1.1 0
    D [18/Mar/2004:18:13:15 +0000] [Job 16] 0 %%EndResource
    [Job 16] 0 %%EndProlog
    [Job 16] 0 %%Page: 1 1
    [Job 16] 0 %%Page: 1 1
    [Job 16] pw = 612.0, pl = 792.0
    [Job 16] PageLeft = 0.0, PageRight = 612.0
    [Job 16] PageTop = 792.0, PageBottom = 0.0
    [Job 16] PageWidth = 612.0, PageLength = 792.0
    [Job 16] 0 %%Trailer
    [Job 16] Saw Trailer!
    [Job 16] Saw EOF!
    UpdateJob: job 16, file 0 is complete.
    CancelJob: id = 16
    StopJob: id = 16, force = 0
    StopJob: printer state is 3
    CloseClient() 5
    Bill Barnes

  • Parallel Port & USB Connections

    I have several older Macs & a Windows PC, all connected to an Apple 16/600PS laser printer. The arrangement has worked fine and minimized duplicating hardware. I'm thinking of upgrading the PC, but all newer models do NOT have parallel port connections -- only USB ports.
    How does one deal with these changes in connectivity? Is there a way to connect parallel to USB?
    Thanks.
    Bill
    Windows PC   Windows 2000   Apple 16/600PS Laser Printer

    Also, you did not indicate whether your other Macs
    are simply old and using AppleTalk-over-Ethernet to
    the printer, or really, really old and using
    LocalTalk from the serial printer ports..
    Grant,
    Thanks for your suggestions. Yes, the Macs are pretty old (a Quadra and a PPC), but the LocalTalk network does just fine. My connectivity issue would be with any new PC, and Ethernet connectivity is certainly one option. Another is to buy a fairly cheap port replicator for a new laptop that gives one parallel port connectivity. One piece of new HW, no SW or driver changes to make -- that might be a more simple solution to the problem.
    Again, my thanks.
    Bill
      Windows 2000  

Maybe you are looking for