Parallel port read with a CIN

I need to read the status of a pin of the parallel port from within a Labview CIN.
I intend to use this as a trigger for multiple camera acquisitions, and going back to Labview to read this value would not be fast enough.
I know that under windows XP I need to "unlock" access to this port. I used a set of functions called "winio" to do this. This works fine from a regular C program, but won't work from within a CIN. Does Labview lock the use of the parallel port in any way?
Does anyone know what I should do ?
Thanks.

Tchill wrote:
Does Labview lock the use of the parallel port in any way?
Does anyone know what I should do ?
Thanks.
Hi Tchill,
I can't remember Win-XP causing trouble with the parallel port. But I do know about the security feature which does not allow to change the parallel port IO addressing (that's another topic )
If you are running LV7.0, you can do a search example on parallel port. There are a couple of very useful vi's that you can run right away and it should get you going.
You can also check this thread.
or more directly into the developer zone for a tutorial by clicking HERE.
JLV

Similar Messages

  • Parallel port updating with labview

    I have a project to do that I will need to control using the parallel port. The problem is that I will need to use more than one pin at a time. An example is, when I press button 1, data pin1 and data pin3 will send a signal, and when I press button 2, data pin2 and data pin4 will send s signal and data pin1 and 3 will stop.
    I tried doing that but stopped at the programming stage.
    I have attached the file I've just did, and I would be most grateful if you kindly pointed me on how to configure this problem.
    note: am using win2000 and the parallel port is working fine and i've tried controlling things with it, to make the question more obvious, how could i control the 8 pins and update them as i like. i've read some articles
    and answers but didn't understand well since am new to labview
    Best regards,
    Attachments:
    semifinaltest.vi ‏39 KB

    Hi,
    find your vi with working parallel port (values should change). You have made a mistake - do not toggle byte/word, the paraport does not support 16bit. In addition I have attached a radio-button selection-vi; this should give an idea, how to select one of xx buttons; maybe the event structure could do the same job for your case. Unfortunately I don't have the time to deliver a complete solution for you....
    Hope this helps already. If you have further questions about paraport - mail simply to my .web-address
    You will find it by double-clicking on wha@atmel
    regards
    wha
    Attachments:
    semifinaltest.llb ‏46 KB
    Simulating_Radio_Buttons.llb ‏47 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.

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

  • Parallel Port Reading

    Hi there,
    Well I'm making a school project. It consist of a temperature sensor connected to the parallel port of the PC. Well obiously the problem isn't the electronics, the problem, is that I want to make an GUI for that circuit using Java. Could you please give me some web pages with information or maybe some guidence to begin the search in the web. Thanks.

    Access to serial and parallel ports in java is handled by javax.comm, an additional library you will have to download. Unfortunately, it is not available for all platforms, so you might want to check out the open source alternative rxtx as well.

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

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

  • Aquerir from parallel port with labview

    I want to aquerir digital data from parallel port of the PC then representing them on a graph with labview.
    How can i do that ?
       finaly thnx.

    You can use the port in and port out VIs found in the Advanced>Port I/O palette.  For an example check out 'Parallel Port Read and Write Loop.vi'.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • IEEE 1284 compliant parallel port for HP dv6 with W7 Pro 64bit

    I am considering buying an HP dv6 laptop, but I also need an IEEE1284 compliant parallel port to program chips through. Do you know of an Express card to provide this feature, or a docking station which has such a parallel port?

    Given the bad reviews associated with that link, I don't think so.  I have tried a Sychrotech C-270 PC CardBus to IEEE 1284 Parallel Host Adapter on my Toshiba laptop with Vista Home Premium 32-bit.  It would work for an old printer, but does not support the 2-way interchange that the Altera ByteBlasterMV programming unit requires.
    Any other ideas?  Otherwise, I guess I'm stuck using an older desktop with a fully functional parallel port.

  • Push button signal to parallel port to trigger a process

    I just need to connect a push button to the parallel port to set it as a trigger signal for a process.
    When push button is pressed, labview executes a process.
    Kindly help me how to do this, the wiring please
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.

    Data Lines to be used as inputsSome parallel ports can be configured to use the data lines as inputs. It depends a great deal on the way the manufacturer designed the parallel port. With some models the data lines can be read the same way we read the control lines, by driving them to high logic so they will take on the value of an external signal. However, most parallel ports require that you set the direction bit for input. This is bit 5 in the Control register (base+2). If the port is capable of it, setting the direction bit high has the effect of making the lines tri-state so it can be driven externally. Sometimes it is also necessary to toggle bit 6 high or low. However, it should be noted that some manufacturers actually lock these bits so that software cannot change them. An example is shown below in Figure 7.
    To test whether your data lines can be used for input, try the following:
    Set bit 5 of the control register high (at base address+2).
    With nothing connected to the port, write a couple of values to the data port, and read each back after you write it.
    If the reads DON'T match the writes, your port is probably bidirectional. Setting C5 disabled the data outputs and you're reading the open inputs of the data-port buffer. If the reads DO match the writes, your port isn't bidirectional. The data outputs are still enabled, you're reading back what you wrote, and you won't be able to read external signals. If it is possible to use your data lines for input, then you just need to set control register bit 5 high and read from the value of the data lines at the base address.

  • Parallel Port

    I have an application that uses the parallel port. It works fine on Win2K using the AccessHW stuff. However, the piece of hardware I have hanging off the parallel port requires the parallel port to be put in SPP or AT mode. I change the mode in the computers BIOS. However, I have a computer that does not have that option in the BIOS. Is there a way of programatically changing the mode through LabVIEW or through Win2K?

    I would think that if there is no BIOS support, there's no hardware support on the motherboard. You might want to check with the manufacturer of the motherboard. I suppose it's possible that the motherboard was newer than the BIOS that they used. If that's the case, a BIOS upgrade would be the solution to using the port on the motherboard. You could also look for an add-on board with a newer parallel port.

  • Parallel port under linux

    could anybody help a linux-labview beginner?
    i'm trying to write to my parallel port. but labview is obviousely not set
    up for this. does anywone happen to have a vi which can do that?
    best of regards
    michael h. fischer
    ============================================
    cell: +43 664 1254415
    fax: +34 664 1265930
    icq: #61578912
    vienna university
    institute of geology
    geochronology laboratories
    althanstrasse 14 / 2a482
    a - 1090 vienna (austria)
    web: www.univie.ac.at/geologie/fischer/
    wap: www.univie.ac.at/geochron/wap/
    ============================================

    "michael h. fischer" writes:
    > maybe i didn't comunicate here.
    > i don't intend to print anything out but i want to set each pin of the port
    > hi or low. i'm trying to turn some electrical relay-switches on and off.
    >
    > thanks anyway, all these hints are useful to me
    Michael,
    So using an true ASCII printer or dircetly /dev/lpx is the easiest
    solution. Just "print" the ASCII charakter representing the bits to
    set.
    Johannes Nieß
    >
    > "Johannes Niess" wrote in message
    > news:[email protected]..
    > > "michael h. fischer" writes:
    > >
    > > > could anybody help a linux-labview beginner?
    > > > i'm trying to write to my parallel port. bu
    t labview is obviousely not
    > set
    > > > up for this. does anywone happen to have a vi which can do that?
    > >
    > > Michael,
    > >
    > > I'm not sure how you adress the parallel port.
    > >
    > > Writing directly to an I/O port is not allowed for security
    > > reasons. There are VI's to do the required system calls.
    > >
    > > You might be able to use the (old) serial VI's with a high serial port
    > > number. You can look up the port number on a LV version for Windows.
    > >
    > > I'd use a completely different strategy: VISA can address parallel
    > > ports. With Windows you just use ASRL10. You might need some tweaking
    > > of the VISA preferences files to do it.
    > >
    > > Printing data to a parallel port should be done with the tools
    > > designed for it: System Exec: lpr file.txt
    > >
    > > Does someone have a summary of the options for reading the parallel
    > > port and setting control lines via the described methods?
    > >
    > > Johannes Nieß

  • Parallel port programming for a Sun Ultra 5 running Solaris 8

    Hi I'm trying to look for information about reading/writing to the parallel port of a Sun Ultra 5 running Solaris 8. I'd just like to see some basic programs written in C, nothing fancy, just reading and wrting to the port, getting the port address etc. toggling the lines.
    I've tried searching for this information and there is plenty of information about PC parallel port programming with windows or Linux. But there seems to be little for Sun's
    I've tried doing 'man ecpp' but that doesn't really give any clear example. What I need is an idiots guide.
    I've tried searching this Forum and I see that other people have asked the same question before but no one has replied to them. Why is this?
    Thanks if you can help.
    fishman.

    The key is gettting the port into diag mode. Here's a quickly little example that turns all the data pins on and then turns them off:
    #include <sys/types.h>
    #include <sys/conf.h>
    #include <sys/stat.h>
    #include <unistd.h>
    #include <stropts.h>
    #include <fcntl.h>
    #include <stdio.h>
    #include <sys/ecppio.h>
    int fd = 0;
    // ecpp structures
    ecpp_transfer_parms etp;
    ecpp_regs eregs;
    // returns -1 if error otherwise returns fd
    int openoutput()
    fd = open("/dev/ecpp0",O_RDWR);
    if (fd==-1) { return -1; }
    // default is 90
    etp.write_timeout = 10;
    // the big secret
    etp.mode = ECPP_DIAG_MODE;
    ioctl(fd,ECPPIOC_SETPARMS,&etp);
    return fd;
    unsigned char in()
    unsigned char data;
    // from the man pages
    ioctl(fd,ECPPIOC_GETREGS,&eregs);
    data = eregs.dsr;
    return data;
    void out( unsigned char data )
    write(fd,&data,1);
    int main( void )
    int dummy;
    openoutput();
    //all data pins on
    out( 255 );
    scanf("%d", &dummy);
    //all data pins off
    out( 0 );
    scanf("%d", &dummy);
    close( fd );
    return 0;
    }

  • Parallel Port Interfacin​g

    Hi,
    I'm working on an RF Design project. I'm working on LabVIEW to communicate with one of the evaluation boards used in the project. Parallel port interfacing is used and I would like to know the processes involved in parallel port interfacing.
    I'm looking forward to a reply at the earliest.
    Yours faithfully,
    Vishnu.

    Look at the VISA routines.  It has supportfor the parallel port.  Otherwise you will have to communicate with it at the register level using peek / poke memory.
    Search examples for, "Parallel".  This is one that is included: C:\Program Files\National Instruments\LabVIEW 8.2\examples\portaccess\parallel port examples.llb\Parallel Port Read and Write Loop.vi
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • Parallel port programming in java

    anyone please help me!!
    I have to send binary data(of numbers 1-255) to parallel port in 8 bit format.
    If you have code please send me or help me how to do so...

    One post is sufficient.
    Next time try "New to Java".
    Google ( [url http://www.google.com/search?q=java+rxtx+parallel+port]java rxtx parallel port )

Maybe you are looking for

  • Problem  in reading file from application server

    while reading the file from application server i am succesful in reading from dataset but the program gets terminated giving a runtime error "CONVT_CODEPAGE". the code written is as below : open dataset d1 for input in text mode encoding default. IF

  • Why doesn't Firefox display all photos posted on Facebook?

    Firefox will display some, but not all, photos posted by my friends on Facebook. IE8 displays them all. Do I need to reconfigure FireFox settings to see all photos posted on Facebook?

  • Jumpy mouse movements on Asus netbook

    Just installed FF 4.0 and using it on an Asus netbook 1101HA. Whenever I use the mouse on a website, the mouse moves erratically, noticeably erratic. This problem is not apparent in any other app. (I'm using the mouse pad and not an external mouse.)

  • Export to SVG: Textpath start offset issues...

    Simple example: I draw a 1000px horizontal line in illustrator CS5, put a text on the path and drag the starting point to 250px. Illustrator translates the "startOffset"-Attribute of the text-node to something around 32% rather than the expected 25%.

  • X220 and ThinkPad USB 3.0 Dock - any success?

    I've just bought a ThinkPad USB 3.0 Dock for my i7 X220 having been at a site last year which had Fujitsu PR08 USB 3.0 replicators - those, once I had installed the driver, worked perfectly with two 1920x1200 displays. Anyway I can't get my displays