Programming the parallel port

Hi. I need to send some bytes to the parallel port. I don't want to print any documents. I found a method called public static void setOut( PrintStream out ). Can I use this method? And if so, how do I do it? What PrintStream sould I use? Thank You!

Interesting...
http://mindprod.com/jgloss/parallelport.html
Well, I'm not sure if that's really true (not that I don't trust that site, it has lots of good info)... My impression was (I've only used serial ports with it before) that since ParallelPort extends CommPort, that it would at least work by using it's CommPort's methods and that the ParallelPort stuff (which is all printer related) was just there for convenience, since most of the time it is a printer there.
Well, the OP could try it, I guess, but if not, then JNI is the only hope... or another parallel port package if one was ever written.

Similar Messages

  • Is it possible to use the parallel port to control a stepper motor (compumotor s6-drive)?

    I'm using a compumotor S6 drive and I was wondering if I could somehow use Labview to program the parallel port to send the required step and forward backward signal to the controller and motor. All I need it to do is go back and forth at a user defined rate. Considering I know very little about Labview this is a daunting task indeed.

    Hello Tiano!
    I found an example on the www.ni.com website named "Reading from the Bi-directional Parallel Port."
    Here is the link: http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CBA4C111EE034080020E74861&p_node=DZ52058&p_submitted=N&p_rank=&p_answer=&p_source=External
    Hope this and the other documents help you along your way!
    BB_Phil

  • How can I write to the parallel port using LabVIEW 6.0.2

    I have tried updating the labview.ini file and also using the parallel.llb available on the site. When I execute the program it gives me error 37 saying,"device not found". I am running this code on windows 98. I tried to use VISA write,serial port write (using port 10) but nothing seems to work. I also tried to develop a sample code using inPort and outPort, but no success, it is not able to read the data back from the parallel port, even if it seems (????i don't know any way to cross-check it though????) to write.
    Does anybody know the problem here?
    THanks.
    Pari.

    Thanks Brian.
    Well here is the next problem. I got a VI (attatched) off ni.com and it works fine on a windows98 platform. But quits working on NT.
    I can write perfectly (which i checked by hooking an LED display unit at the other end of the parallel port cable). I observed that the LEDs respond to the toggling of individual bits (data bits). But the error occures at the "out port.vi", when I try to run it on a NT machine (where I actually wanna use it). Are you aware of any changes to be made in order to run a VI on NT that works on 98?
    Thanks again.
    Pari.
    Attachments:
    parallelPortSwitcher.vi ‏124 KB

  • How do I generate custom-made signals (impulses) from the parallel port

    I am trying to generate some simple pulses to drive an external device. I am sure this is simple, but I'm not sure how to do it in LabView. I need to generate to TTL-level (2.4 - 5v) pulses that are spaced 500ms apart and occur every 34 seconds (that's the period).
    Any suggestions?

    ilogix-
    The easiest way to write to the serial port in LabVIEW is with the Port Out.vi. You can find the help info here. You can find the address of the parallel port in the properties (located in Control Panel>>System>>Hardware Tab>>Device Manager) under the Resources tab. IT is the first number in the I/O range property (usually 0378).
    This is a digital line and the parallel port is written as a byte so your labVIEW program will need to write a byte, delay and write another byte to get a "waveform".
    Xaq

  • Using stand alone executables to send data to the parallel port

    I have a executable that uses the parallel port to activate an alarm. The program works well on the base machine which is running windows XP. However when I try to run the stand alone executable on a windows NT machine there is nothing sent to the parallel port. I have updated the Cvirt file on all machines. I don't get any error messages when running the stand alone executable.

    I have the same situation using parallel port to control a hot swap PCI extender card and no error showed.  I can turn on/off and read correct voltages from the card in base machine.  After creating executables, I can turn on/off the card, but got wrong voltages in target machine.
    I've installed AccessHW in both machines and copied AccessHW.dll and cvirte.dll to system32 folder and the folder same with executables.  I also tried installer with port support and serial support checked. 
    Windows XP is in both machines and LV 7 in base machine.  I use "Output Byte to Port.vi" and "Input Byte from Port.vi" in AccessHW lib.
    One thing I observe is initiation.  The card manufacturer provides a program with same functions.  After running their program, the voltage readings from the executables become correct.  The readings remain good after closing their program.  I close the executables and run the executables again and still see good results unless restarting the target machine.
    Any solution for the problem? Thanks in advance!

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

  • 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

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

  • Why does this loop used to write values to the parallel port keep going forever?

    Have a look at this VI guys. I'm trying to send a sequence of bits (used to trigger an IC). I'm interested in the last bit of the data port (D0). so I'm sending either 0 or 1 to that pin to trigger the IC. it works, but the problem is that the loop keeps going forever and i cant control it. if i send 3 to the loop count, I'm expecting to get: 1 0 1 0 1 0, but it doesnt stop and keeps going forever.
    It seems that the problem is not with the loop. because i deleted the loop and just left the flat sequence so that it executes only once, but still it keeps repeating. How can i make the flat sequence execute only once?
    I'm using a parallel port monitor (parmon.exe) and a LED connected to D0 of the parallel port to check.
    If anybody has an alternative or better method to send the bits to the parallel port, I'd be very thankful.Message Edited by krayzie on 05-14-2005 04:33 PM
    Attachments:
    pport.vi ‏24 KB

    It works just fine here. Place an indicator to the iteration terminal [i] to watch how things progress. Do the number ever increase above N-1 to what you wire to N? I don't think so!
    Also make sure you don't run the VI with the "Continuous run" button. In this case the VI would immediately restart whenever it is finished. use the "Run" button.
    LabVIEW Champion . Do more with less code and in less time .

  • Errors with the parallel port

    I am trying to communicate with a robotic arm which is attached to the parallel port.

    and... ?
    See:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=205&HUSERSHADE=0&HOID=5065000000110000006D070000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    2006 Ultimate LabVIEW G-eek.

  • How can I use the parallel port as an input channel to communicate with a SPECTROMETER?

    Hello,
    The sensing system we use is called: FieldSpec Pro from www.asdi.com.
    The spectrometer has a LPT terminal. I'd like to use LabVIEW to acquire signals from the spectrometer for further analysis.
    Thank you!

    Dennis,
    I appreciate your time.
    I have asked the copmany for such infos, but it seems to be confidential.
    Do I need an I/O DAQ-Card?
    Dennis Knutson wrote:
    About all that tells me is
    that I'm located in the same town as the manufacturer. You'll need to
    find some specification that describes the parallel port protocol.
    Without that, you're just wasting your time. Even if the instrument is
    constantly sending data, you'll need to know how to interpret the data
    and there's nothing that says it has to be sending constantly. Maybe
    you first have to write something to the port first. Talk to them and
    tell them you want to replace their software with software of your own
    and need to be able to read the data.

  • 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

  • Read the parallel port

    Hello,
    I am working with LabView 7.0 and with Windows 98. I want to read the
    parallel port, but I don't get it. I am using the I Saw In port.Vi but
    I don´t read anything, but however with the function Out Port.vi if
    that get
    to write in the port. Is somebody able to throw a hand?
    Thank you

    Hi,
    Hope this gives some light to your problem:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/c80752c53094c296862565f3007ac765?O...
    Regards,
    Jaime Cabrera
    Ni Applications Engineering Spain
    Regards,
    Jaime Cabrera
    NI Applications Engineering Spain

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

  • How can i use the parallel port

    I was wondering how to adress my PC´s
    parallel port. I did'nt find a suitable
    VI in the palettes.
    Do I have to read/write somehow directly
    to the port adress in memory 0378 ...?
    If so, how can this be done ?
    Thanks for any help,
    Holsch

    Use VISA to read/write to the parallel port just like you would read/write
    to the serial port. I would staty away from the inport/outport stuff. I believe
    there's some articles in the KnowledgeBase if you get stuck.
    [email protected] (Helmut Hullen) wrote:
    >Hallo, Holger,>>Du meintest am 29.07.00 zum Thema how can i use the parallel
    port>> I was wondering how to adress my PC's>> parallel port. I did'nt
    find a suitable>> VI in the palettes.>>Look at "in port" and "out port".>Under
    Windows NT/Windows 2000 you need a special library for direct port >access,
    look for "hwaccess" or "accesshw".>>Viele Gruesse!>Helmut>

Maybe you are looking for

  • How can I change the date format in a Numbers table?

    I have selected all of the cells in a date column, opened the Inspector and selected the Date & Time format, selected the date & month format butb the cell date does not conform to this format.  Instead I am getting the month, day, year, and time. St

  • Netmask is not set properly in Solaris 10

    Hi, I am not able to change my netmask for bge0 NIC. I've just run Oracle CRS installer and it changed my netmask. I didn't install CRS. bash-3.00# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 12

  • Setting up the sender communication last week of the month

    Hi All, I am doing right now JDBC to RFC, now my problem is i need to featch the data in this way "daily during the last week of the fiscal month, and first few days of the following month" i need to extract the data and send it RFC as receiver. How

  • DVD+R 4.7GB 1-16x speed - will it be read and can i burn it on...

    Hi, Can such a DVD be burnt and or read on the new MacBook Pro's 8x SuperDrive (DVD±R DL/DVD±RW/CD-RW)? It says on the DVD that one has to check whether the drive supports 16x speed DVD+R discs... Thank you for your guidance! Best, Jonathan

  • CAT!!! I kept my player for more than 7 hrs for the initial cha

    Hi Cat, I have kept my zen v plus for more than 7 hrs for the initial charge, still the Play icon not appeared on the display, its showing still the battery charging flash icon. TELL ME WHAT TO DO? Thanks & Regds, 2CREATIVE