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

Similar Messages

  • 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 address out of range for output.vi

    Hi all,
    I know people have had this question before, but I don't seem to follow the responses.
    Basically, I have a Parallel Port connected through a PCI slot with the address BCC8, and I've been trying to talk to a stepper motor using output.vi, but as far as I can tell the address input is limited to I16 values.  Is there away to get around this?
    Hann

    Hi Hann,
    What forum postings have you been researching before posting? We need more information about your application, perhaps posting your code would be helping in resolving your issue. Are you using a particular LabVIEW toolkit like the LabVIEW Motion Control Tools or are you using VISA Read and Write functions?Where are you getting the output.vi? What version of LabVIEW are you using.
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

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

  • Parallel port printing problem

    I was printing quite fine on LaserJet 2100 (I was even surprised how easily I've set it all up, thought it woudl be more compliacted). I even tried different drivers, all worked fine so far. Now I acquired LaserJet 2200 which has USB in addition to LPT so I can print on my desktop via USB and on laptop via LPT.
    I'll have USB cable no sooner than tomorrow so I tried to print on LPT on the 2200 as for now. But only strange line of letters came out every time and the printing job never finished, it was still printing the same crappy line of some stuff again and again. I even deleted all the 2100 printers I have set up and added only the 2200 but it was still the same.
    So I wanted to try at least the refiled toner (I bought 5 these toners and the 2200 was extra bonus) on my 2100 so I added it. But what, the same problem. When I try test pages, there comes something like lines of settings for the printer and it still wants to print infinite. I noticed there is 5012 error in HPLIPS. I tried setting the printers up in CUPS and HPLIP also, under root and normal user, still the same for both. Reinstalling HPLIP didn't help, different drivers behave the same way. What's wrong? Printers should be fine, testing page directly on them cames out good.
    Even it worked before without being in lp group, I added myself to it, but I still get the same communication error. I'll also look for another parallel cable, but that would be strange, the cable was working before - I've printed several hundred pages in past few weeks.
    ADD// tried USB printer (2200), printed under Win 7 on desktop and Arch on laptop (not flawlessly, I did not succeed in printing with EconoMode under any of the systems), however using the parallel it behaved the same crappy way. I could not print now because I disassembled the 2200 little too much during process of changing some moving (rubber) parts between the two. Now 2100 works, 2200 blinks all the time…
    Last edited by Behemot (2011-03-18 10:24:04)

    Behemot wrote:Tried under XP, same problem, so I got another LPT cable somewhere -> print good under XP. Tried under Arch, some strange stuff, changed HP driver for HPCUPS, LJ 2100 prints fine.
    Have you considered the fact that there may be something wrong with the printer and/or connection?

  • Read parallel port

    dear all
           reading parallel port having problem its giving same value.............i am using windows xp and and labview 8.5.........
    anything else to activate or to install..........
    Indrajit
    | [email protected] | [email protected] .

    indrajit,
    I found this article to be very useful here see Figure 3.  Careful the DOS debug command may be emulated on XP so you may show the wrong port address using it.  Try the example I mentioned above along with the default port address. 
    Regards,
    -SS
    Message Edited by ShotSimon on 07-14-2008 09:54 AM
    Message Edited by ShotSimon on 07-14-2008 09:54 AM

  • Parallel port and labview

    I am trying to control a OMHT23-400 stepper motor through a 3540M motor drive using a Moschip PCI Parallel Port. I created a program to send alternatilng pulses to the motor and rotate it a desired amount of degrees. The address of the stepper motor in my computer is I/O Range BD00-BD07. The same program worked in another computer who's parallel port address was I/O Range 0378-037F. I dont know why the program is working in the first computer and the same program wont work in this one. Thank you for your help.
    PS: the program that i wrote is attached below.
    Guillermo Naranjo
    Physics/Space Science
    Florida Institute of Technology
    Phone: 768 537 6392
    e-mail: [email protected]
    Solved!
    Go to Solution.
    Attachments:
    Rotation of Camera2.vi ‏17 KB

    Dear Gant88,
     first download and unpack accesshw.zip as instructed  (you can also unpack it to the directory where your .vi files for this projet are, thugh this is not good practice).
    I attached my write_port and my read_from_port. (LV 7.1)
    In my case I wanted to write (or read) 32 bit integer from the port, for this purpose I am writing (or reading) three (data, status, control) bytes at different locations. You will figure out.
    Take care not to have any printer installed (in win xp) on parallel port, because windows will do some check-ups on printer from time to time. This will interfere with your program. 
    Try and let me know.
    regards.
    Bojan
    Attachments:
    write_to_port.vi ‏28 KB
    read_from_port.vi ‏32 KB

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

  • Parallel port communication error with new addresses

    MD2 motors controlled by LabVIEW. I am trying to communicate with the motors through a parallel port. I plug in a PCI card which can provide another two parallel ports. I check their addresses which are 1110-1117 and 1120-1127. Then I replaced the old addresses (378), but could not communicate any more, neither writing nor reading. The parallel port setting in BIOS is bi-directional, since both writing and reading are necessary. Does this matter?
    I really have no clue why or how this could happen. Any help appreciated.

    Hai,
    I have installed a additional parallel port card (in pci slot) in my pc.  Then i installed the device driver that came along with the parallel port card.  I
    checked out the base address it was 278H (but i dint look the address before installing the device driver).   In general centronics interface ( parallel port) are placed at their respective addresses strictly.  Try reinstalling the device driver that came along with the external parallel port card or try latest updates from the manufacturer if available.
    of the card.
    With best regards,
    JK1
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • 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

  • 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

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

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

Maybe you are looking for

  • Is there a way to see all your new mail from multiple accounts on one page?

    I'm currently receiving emails from four different accounts on my iPhone. I love getting all my emails like this, but it would be even nicer if I didn't have to navigate between all the different accounts.

  • Opps. forum problem.

    Dear experts, From morning onwards a try to login into this forum.but no luck. @ the end of day, it's logined. please am facing this problem sometimes. what is the problem. why i cant do anything.? just i can view the page. but not able to login if a

  • Using an exteral HDD for EA4500

    hey I got my ea4500 all set up. never had a media servor or anything like that, figured this would be an easier way. when i hook up my exteral i can find it but i can only view the files in windows media player. how can i just browse the folders manu

  • 802.1x default VLAN

    Hi, I am trying to set up 802.1x on a Catalyst 4006 with a Supervisor III module with IOS 12.1(12c)EW1. I am using Cisco Secure ACS 3.0(2) Build 5 for my Radius server. I'm using the Windows 2000 802.1x hotfix for my 802.1x client software. My goal i

  • Is the current version of AirPort Extreme better that the version I purchased two years ago?

    Does the current Airport Extreme have better range than the one I purchased 2 years ago?