Comms with parallel port
Hi
I am trying to send a command to a printer via the parallel port, but am having no joy. I have set the BIOS printer port setting to 'Bidirectional', and created a small test program as attached.
I need to send an <ESC>A, 10 (hex), <ESC>Z in order to stop the printer during a print run, and an <ESC>A, 11 (hex), <ESC>Z to restart the printer. I have used the functions found in the example, but maybe I'm misunderstanding the functionality of the functions?
Attachments:
Test LPT1 commands for prn stop-start.vi 68 KB
Hi Alan,
I was working on a windows 2000 sending a signal to the parallel port using a Out Port.VI and it worked fine because the format of the computer was a 378 like you have in your program; however, when i tried to use this program in a windows vista, this didnt work because the format of the parallel port of this computer was BD00-BD07, which is not written in 16 bit like your program. In order to solve this problem, i used VISA Write and it would automatically send the signal to the parallel port. Try using VISA and you shouldnt have any problems. I will send you an example VI so you can see how i used it. I also modified your VI using VISA instead of using Out Port.vi. It has an error because part of the file is missing but this should get you started. If you have any questions dont hesitate to ask.
Guillermo Naranjo
Attachments:
UsingVISA.vi 11 KB
Modified Test LPT1 commands for prn stop-start.vi 19 KB
Similar Messages
-
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???
LavaIs this option ok also??
Attachments:
Interface_OutPort.vi 13 KB -
Comm API Parallel Port reading
Alguien podria decirme como leer desde el puerto paralelo?
Could anybody say me, haw can i read from the parallel port?
Thanks.Hey ramosdario,
You need to download and install the javax.comm package correctly (this can be difficult - in Windows 2K I found that I had to put some files into
c:\program files\java\jre...
Then you should be able to read from the COM port
http://java.sun.com/products/javacomm/javadocs/javax/comm/package-tree.html
Hope this has helped :) -
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,
ScotWindows 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 -
HP Laswe Jet printer with parallel port cable
My dear, dear printer has served me 14 years. It has a parallel port and is a HP Laser Jet 4 L printer. Where can I get the right cable to connect this printer to USB port on my Mac mini?
Thanks for your help,
TontaThere are plenty of sources on the Internet that sell a Parallel to USB Printer Adapter Cable. Take a look here.
http://www.emtcompany.com/catagories/usb-to-parallel-adapters.htm?gclid=CJT21fy- xJACFQdEFQodLDBAWg
David -
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!
ThiagoI 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) -
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 -
New workstation lacking parallel port poses printing challenge
I'm supporting a Netware 4.11 + sp9 small business network, which long ago
had a custom DOS-like database application written to manage rental
activities. The app allows the user to print out lists of things rented,
etc. It has been working very well for years. There are several
workstations, some DOS, some Windows XP, etc., and they all share the rental
database resident in the Netware 4.11 file server.
I have had various networked printers, starting with parallel-port lasers.
More recently I have had a large Canon printer that connects directly via
our Ethernet_802.2 IPX (as well as IP) intranet. In other words, this
printer works both for Windows programs, which use IP, and for our rental
program, which uses IPX.
What's the problem, then?
An important Windows 2000 Pro workstation died, and I replaced it with a new
Windows XP Pro workstation. This new Dell computer HAS NO PRINTER PORT. I
have YET to tinker with this, as I am hoping to get this request for help
posted as soon as possible.
All my workstation computers "CAPTURE" print jobs that the rental program
"thinks" are going to LPT ports. Once these jobs get into various queues, I
have no problem getting them into printed hard copy. The problem NOW is to
fool the DOS-like rental program, which will be running on the new Dell
computer, into seeing some kind of a parallel port that doesn't exist.
I suppose I could launch a major effort into modifying the BIOS of a Dell
computer, but I am hoping there must be a better way!
Can "net use" be of any assistance?
Can Unix "lpt" printing be of any assistance?
It is not likely this rental application can be chanaged. I am not the
author.
I read another thread regarding an "opposite" predicament. It won't help
me, then, to buy a USB->LPT adapter box, because what's important here is
NOT to actually connect a printer to this workstation computer, but to
supply something (a faux LPT port) that can be captured inside this
workstation.
Any ideas most welcome.
Thank you.
John BThis is neat. But I think the all-important DOS-like custom application
rigidly prints only to LPT1.
In the absence of a real LPT1, I need to find a "faux LPT1."
Over the weekend, I'll look at this utility..."printfil."
Thanks very much!
"Davide Guolo" <[email protected]> wrote in message
news:[email protected] s.com...
> John,
>
> > I wonder how long it will be before no such cards
> > are available?
> >
> > So any tips on "faux LPT ports" are still of interest.
>
> you may want to have a look at Printfil, which can capture LPT output
> and forward it to file or directly to a Windows printer, even if no
> LPT ports are physically available on the Windows machine.
>
> You can find more info and a free trial version to download at
> http://www.printfil.com
>
> Regards,
> Davide
> aSwIt s.r.l.
> --------------------------------------------------------------
> Printfil - Windows Printing System for Applications
> http://www.printfil.com
> Odbc4All - Connection to ODBC Data Sources for any Application
> http://www.aswit.com/odbc4all
> @Kill - Batch Close Windows Applications - Freeware
> http://www.aswit.com/akill
> --------------------------------------------------------------
>
>
> -
Anybody knows how to control parallel port to generate digital line ?
All,
I have found at some website, there are a software can generate corresponding signal (I suppose that is digital line) to driver a relay board, the relay board is 8 channels. which out put is pin 2, pin3, pin 4, pin5, pin 6, pin7, pin8 and pin 9 of parallel port to control it . it is well control, how can it do ? and I want to simulate it at LV with parallel port too , how can it achieve ? which command, or a simple sample which you provide will be appreciated.
thanks in advance.You forget to search through NI Web site. Here are some links.
http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CB9CB111EE034080020E74861
Sergey -
PSC 500 With Parallel Support In Windows 8
I have a neighbor that has to replace an older computer but would like to keep costs down by keeping the working printer/scanner, a PSC 500 with parallel port(no USB). The new PC she bought with Windows 8 has no parallel port, so I borrowed a Parallel to USB adapter from work. The adapter driver loaded successfully, but when I plugged in the printer cable and tried to add the new device Windows was unable to detect it.
According to the manual the adapter I have supports IEEE1284-1994. Would a different adapter possibly work better? HP claims to support this printer in Windows 8 but tech support on the phone wasn't familiar with the term "parallel port" and reminded me that the printer was well past its support lifetime.
If anybody has a working configuration for this or suggestions about how to get there I would love to know about them.See if the Thunderbolt FAQ and articles on http://www.macwindows.com has more
My thread and links https://discussions.apple.com/message/22908244#22908244
Thunderbolt ports and displays:
Frequently asked questions (FAQ)
http://support.apple.com/kb/HT5219
Disable the Windows 8 Fast Boot feature to allow Thunderbolt devices to be recognized. -
any one can tell me how to change the mode of parallel port from " out put only" to input....
Apparently so (I don't have access to solaris at the
moment but looking around the net it would appear
that
a mode change is possible in solaris.
Try using the rxtx library
http://www.rxtx.org/
It apparently supports Windows now. It provides a
commapi interface and it may provide more
functionality
then suns commapi implementation. (although I would
not hold my breath)
There are also a few comercial vendors of commapi
complient libraries out there but they appear to have
problems with parallel ports also. One suggestion is
to buy a cheap serial to parallel port adapter and
use that (nasty hack though).
matfudThank so much for help. I will try to use the rxtx library and I'll inform you about it.
Further, I agree with you regarding the use of a serial/parallel adapter, it seems a last solution.
marco -
Necessary of drivers for this they Video Blaster WebCam III with parallel port.
I only obtain to find for USB.
Somebody can help me?
Thanks!Hello
I need a driver for Webcam III usb. Can you send me?
Thanks -
PC parallel port access with XP
I recently got In Port and Out Port working on XP.
I searched the ni site for AccessHW. The CVI Run Time Engine has to be
version 5.510 or earlier. I checked the version number of one file, i.e.
cvirte.dll to verify.
I directed the installer to install accesshw to the directory where the new
In Port and Out Port and the rest of the new parallel port .vis were going
to be, i.e. Labview\Labview 6\vi.lib\platform.
I downloaded parallel.zip from ni.com and moved the parallelnt.llb file to
this same directory. Parallelnt.llb has a number of parallel port vis, not
just replacements for In Port and Out Port. I replaced the In Port.vi and
Out Port.vis in the diagrams I was trying to make work with the new .vis.
So, on this XP machine, with
a monitor program, parmon.exe, running to
display the bits on the parallel port, Labview can be seen to be using the
new parallel port .vis, and, bits on the port are changing.I wonder if there's a reason why there's a javax.comm 3 series for *nix, but not for windows. Hmmm.
-
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 .... -
Using XP software with a parallel port dongle in windows 7 professional
Please help... Looking to have my parallel port dongle recognized for my older version software (XP) in Windows 7 under the XP PC mode. Help in figuring out if LPT1 is set correctly or what I am doing wrong.
ThanksHello,
I have W7 Professional 64 bit with Windows Virtual PC/Windows XP Mode installed. I have some older programs installed in XP Mode and they are working properly.
Unfortunately, I have one older program that I currently have working on an older XP Machine and that program requires a Sentinel dongle to be seen on the LPT1 Parallel Port. Since my W7 computer has an LPT1 Header on the mother board, I have purchased and
installed a PCI-Express Parallel Port and I have the ribbon cable connected to the LPT1 Header.
After I enabled the parallel port in the bios, I could see LPT1 in the W7 Device Manager and in the Windows XP Mode Device Manager. However, when I click on
Windows Virtual PC, highlight Windows XP Mode.vmcx and click on Settings, LPT1 does not appear.
I have installed my old program in Windows XP Mode and it starts to run but, when it gets to the point where it must see the Sentinel dongle on the LPT1, the
program does not find the dongle.
I also purchased a Manhattan MHUSB to DB25 Parallel Converter and plugged it in. It said that it found new hardware and installed drivers for it but that didn’t
work either.
I am not married to any particular solution. So, I would use a USB Adapter or LPT1 connected to the mother board but there must be some code editing or changes
in settings to make the dongle work in XP Mode.
Can you tell me how to get W7 Professional 64 bit with Windows Virtual PC/Windows XP Mode to find the Sentinel dongle
on LPT1?
Thank you,
Dan
Dan
Maybe you are looking for
-
Print the PDF fille on Client side
Hi, i created the PDF file on server if client click print button the PDF file print on the client side. Is it possible to do that. if you do Please help me
-
Html5 animation problem on iPad
Hi, I made a very simple animation in Adobe Edge of a headline with a PNG file. This one: http://project.aboutdesign.nl/test/lineani1.html When I import this in InDesign it works fine in the Folio preview mode (CS5.5 - 7.5.2) except that it also star
-
I just open the excel file as 'string' in CVI. I already read http://forums.ni.com/t5/LabWindows-CVI/How-do-I-allocate-memory-for-excel-strings/m-p/754813#M37082 However, I cannot understand it T-T because I am poor at programming. Does any guys tea
-
I bought new iPhone6, I got all data updated from icloud to new iPhone6. Now I want to erase all contents from iPhone5 But unable to do so. Every time it keeps asking for Apple ID password, even though i enter correct password, it keeps saying passwo
-
Trying to Upgrade My Hard Drive
Hey all, any help will be very much appreciated with this issue! I purchased a Seagate Constellation.2 - 1 terabyte hard drive for use with my Satellite P205D-8804 laptop. I thought I could simply clone my old drive using a SATA to USB cable an