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

Similar Messages

  • 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

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

  • PICO DrDAQ USB Parallel Port setting for labview 8.2

    Hi,
    I have a PICO DrDAQ card (parallel port) and by using USB Parallel Port  (USB)connect to the laptop, and i already install this software. I can run DrDAQ with PicoScope(DrDAQ software) and can produce a result, but when i try to run it in LabVIEW 8.2 there's no result generated from it. Furthermore, i had check through the device manager (in My Computer=>System Properties) and prompt to see the Pico parallel port within the USB controllers. Therefore, i would like to know is there any setting i need to perform so that the problem can be solve.
    Thanks.

    Hi,
    Thanks for your reply. Ya before the driver installed, i specify the USB port for this device to used on and after that i set it to port 101 (for USB) in the LabVIEW.
    and the programming is on the attach file.
    thanks.
    Attachments:
    DrDAQ.vi ‏32 KB

  • Parallel port adapter in labview

    I have usb to parallel port adapter . After plug it into my laptop some drivers installed automatically and it is detected in device manager as "parallel port printing support" under "universl serial bus controller".
    I know how to write data to serial port using visa write funtion but, i dont know how to access this adapter from labview 2010
    i am using windows 7.
    Can anyone help me in this regards.
    Thank you

    Please stick to the original post. Thanks.

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

  • How to use the Control lines of a parallel port as Input lines to be read using Labview ?

    The details are :
    NI Software : LabVIEW
    Version : 5.0
    OS : Windows 95
    NI Hardware : N/A
    Drivers : N/A
    CPU : Pentium
    RAM : 48
    Vendor : darcom
    Customer Information :
    SPEL TESTING
    SPEL, INDIA
    [email protected]
    Ph: (91) 4114 53818
    We do not have any DAQ cards within the PC. We have the parallel port which is EPP and ECP compatible having the address 278h on LPT2 and we are trying use this port for reading 8bit data from an external circuit. We developed a vi program in Labview 5.0 to control the parallel port.We tried with the Data lines to send signals from PC to external device through this parallel port with the addr
    ess 278h (which
    is Data lines) and it works fine. We also tried using reading 4bit data from external
    device to PC through this port with the address 279h (which is Status lines) and it
    is also working fine.
    But it was not possible for us to read through Control lines whose address is 27Ah. Whereas when line printer (dot matrix printer) was
    connected, it was possible for us to take print out. Thus printer was working. This
    informed us that the control lines are all OK!
    Can you please clarify, how to use both control lines and status lines to read 8 bit data through this parallel port using the Labview software.

    There are several Knowledge Base entries about this on the NI site, but probably the most detailed document is on the Advanced Measurements (www.advmeas.com) website. Try looking at this page, I think you will find it useful.
    http://www.advmeas.com/goodies/parallelport.html

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

  • Labview and parallel port

    I have installed Labview 2010 32 bit in windows xp, but i cannot find "deviceand interface"  in measurement and automation
    can anyone help in this regards.
    Do i need driver to access parallel port in labview?
    thank you

    It's right under Data Neighborhood in My System.  Click the + next to My System to open the choices under it.  It should be very easy to find unless your MAX has a big problem.
    No, you don't need drivers to communicate with the parallel port.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • 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 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 use Lookout

    Does anybody know how to read/write through the parallel port with Lookout 5.0? Is there any example code for this?

    Hi,
    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.
    Remzi A.
    National Instruments

  • Jsp And Parallel Port

    Dear All
    I need send data to parallel port using "JSP", But I have not managed to do, I tried to jkavax, javacomm, parport, CXR, etc..
    Anybody can help me? Do you have any examples?
    I'm using apache tomcat 6.0.16, jdk 6, Win XP SP3.
    Help me please...
    [email protected]

    It's right under Data Neighborhood in My System.  Click the + next to My System to open the choices under it.  It should be very easy to find unless your MAX has a big problem.
    No, you don't need drivers to communicate with the parallel port.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • 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;
    }

  • DAC managed by parallel port

    Hi to everyone,
    I've to manage the dac (dac714 TI datasheet attached), by parallel port and by labview.
    I've to control it managing four parallel's line (as indicated in the fig.8a for the only first dac pag.12)
    I've to send the digital input as indicated in the timing's diagram.
    How may I do it by Labview.
    Any advice or documentation about it will be appreciated.
    Thank you.
    Paolo
    Attachments:
    dac714.pdf ‏132 KB

    Hi Paolo,
    I don't have time to develop your application,
    but take the attached vi as a "starterkit".
    It is very easy to expand it to your needs.
    If you have further questions: have a look to vi properties/documentation. In addition find a scope-picture ( LPT was driven by WinNT /ATHLON XP1600)
    regards
    wha
    Attachments:
    DAC714_starter_kit.llb ‏38 KB
    DAC714.png ‏10 KB

Maybe you are looking for

  • DoPost() I lose the HTML 's

    The following code, when displayed tosses out all the HTML <'s that are on the incomming XML file. When I add the first < as %lt; in the XML string, the close > shows up... Not sure what is going on, but encoding seems to be the culprit... Any ideas.

  • Data source and attribute list transport

    Hello gurus! How can we transport data source and attribute list to another system? In IMG system writes "Transport is not required". Best regards, Artur Litvinov.

  • Working with HR replication after using local org. structure

    Hello SRM Gurus, My client have implemented the HR module in ECC 5 and want to use it for replicating it to SRM 4.0. We're in PROD (using the extended classic scenario) for over a year using a local SRM org. structure. Have any one encountered with t

  • Java EE End Of Support

    I've found information here [http://java.sun.com/products/archive/eol.policy.html] that indicates that support for Java SE 1.4 ends summer 2008, and Java SE 1.5 ends in October 2009. Does the same apply to Java EE 1.4 and 1.5? If not, what are the EO

  • WDPortalNavigation with portal not running on WD server

    Hello, I am trying to get my application to close itself and replace itself with a non-WebDynpro iView. I have been attempting to use: WDPortalNavigation.navigateAbsolute("ROLES://portal_content/contentlib/corporate/mss/iviews/test_iview",