Parallel Port under CVI

Hi,
is it possible to write to the parallel Port or to other
adress ports under Win95 or WinNT with CVI ?
Do you know a good book about that subject ?
thanx.

Yes, CVI has a kernel mode driver (cvintdrv.sys) which loads automatically when the CVI environment starts. It enables Port I/O under NT (95/98 aready allows it)
a good reference on the parallel port:
www.beyondlogic.org
a good book on the parallel port:
Parallel Port Complete
by Jan Axelson
www.lvr.com

Similar Messages

  • 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 cvi 9 XP

    Hello All,
    Has anyone had any luck with direct IO inp and outp access to the parallel port using CVI 9 under XP 32?
    I tried it using the parallel.zip example provided by NI and found it did not work.
    Thanks!

    lunchbreak,
    Just out of curiosity, what operating system are you using. The parallel.zip example was written using CVI 5.5 and the parmon.exe attached appears to only work in Windows 95 and 98. Also, I downloaded and ran the example in CVI 2009 and was able to run it fine. I was able to write a value to the port and read the value back correctly. Are you getting some sort of an error when you run this example?
    Raj
    National Instruments
    Applications Engineer

  • Parallel port / NT 4.0 / Labview 5.0

    How can I control the parallel port i/o pins with labview 5.0 and NT 4.0 ?
    The sub.vi "out.port" doesn't work.
    Thanks for any advice
    Andreas

    I use a DLL that was written in CVI to control the parallel port. CVI
    drivers for Inport and out port will work under windows NT. This is not a
    fast solution but it does work.
    Also a long time ago (In a galaxy far far away) there was a canned Import
    and outport DLL that worked with LabVIEW under Windows NT on Nationals
    Instruments web site. If you cannot find it, I could email you the dll I
    wrote but it is designed to work with EPP printer ports.
    From John Harmon
    Web Page: www.bright.net\~harmonj
    Email: [email protected]
    Land Line: 330-848-0460
    Pager: 330-490-0091
    ==========================================
    Andreas Balzer wrote in message
    news:[email protected]..
    > How can I control the parallel port i/o pins with labview 5.0 a
    nd NT 4.0 ?
    > The sub.vi "out.port" doesn't work.
    >
    > Thanks for any advice
    > Andreas
    >
    >
    >

  • Is it possible to get direct access to parallel port pins under Windows NT? What can I do

    to get such an access under NT? I found Write to Parallel Port.vi but I can`t open it. The error that occurs is:
    resource not found, error occured while loading the vi, labview load error code 8: could not load vi ressources.
    This vi is from 1994. Maybe the source of trouble is that I`m using version 5.1.1 or it is a problem with NT. What do you think?

    Parallel Port.vi can only be used in DOS-Systems (like Win9x, WinME ;-). NT does not allow writing to parallel port with low level routines. It is more useful to use the digital port that is on most of the DAQ cards.
    Some more informations on parallel ports: http://www.lvr.com/parport.htm
    In general it seems to be possible. Somebody told me just to use the write port command with the address of the parallel port. Another way seems to be to tell NT to allow direct port access - but I don't know how.
    Andreas

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

    Hello,
    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

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

  • Signal detection on pins of parallel port

    hello,
    i am using the outport.vi in order to write to the parallel port of my windows 98 pc. I am writing a value to the port register. To detect that, i am trying to detect a signal change directly on the pin of the parallel port using an oscilloscope. I don´t detect anyhting although the vi ran without complaining. What am i doing wrong ?
    saludos
    miriam

    Hi miriam,
    I never used the access to parallel port from LV but from C based programs. As I know outport should do under Win 98.
    Are you aware that the port nubmer is in Hex? The address can change if you have one or two parallel ports in your machine.
    If you have one port it is 0x378 for LPT1.
    If you have two ports it is 0x278 for LPT1 and 0x378 for LPT2.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Reading/writing to parallel port LabVIEW 7.0 Win2000

    I'm using LabVIEW 7.0 on a Windows 2000 machine which also has the CVI runtime engine version 6.0.4.105.
    I wish to write to the parallel port, simply on/off signal to eight lines. I have previously done this with LabVIEW 5+Win98. I have downloaded the accessHW libraries and installed them but have discovered that I also need the CVI rte version 5.0 . When IT personnel try to install this run time engine "A newer version of this run time engine is currently installed"
    appears and won't install version 5 over version 6. Has anyone else come up against this and is there a way around this (without having to install an older version of LabVIEW)?

    Leeser wrote:
    > I'm using LabVIEW 7.0 on a Windows 2000 machine which also has the CVI
    > runtime engine version 6.0.4.105.
    > I wish to write to the parallel port, simply on/off signal to eight
    > lines. I have previously done this with LabVIEW 5+Win98. I have
    > downloaded the accessHW libraries and installed them but have
    > discovered that I also need the CVI rte version 5.0 . When IT
    > personnel try to install this run time engine "A newer version of this
    > run time engine is currently installed"
    > appears and won't install version 5 over version 6. Has anyone else
    > come up against this and is there a way around this (without having to
    > install an older version of LabVIEW)?
    You could also use the PortIO library from the OpenG project
    http://www.openg.org.
    It is currently only in the CVS source code
    repository on that site and not yet part of the OpenG Toolkit. Because
    it is not everybodys thing to use CVS I include that library as
    attachement here.
    I tested it myself on Win95, NT4, 2000 and XP and had no problems at all
    with it. But please consider it beta software and if you have problems
    let me know with as much details as possible.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions
    Attachments:
    portio.zip ‏195 KB

  • 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

  • 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

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

  • Simple parallel port question

    Dear everyone,
    I want to control some pins of the parallel port to be high voltage. So I read this NI webpage
    http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596?opendocument&node=DZ52058_US
    I follow the instruction to connect pin 11 & 12 to ground and checked my LPT1 address is 378, but error message comes out when I run the program. Could you please help me to solve the problem
    thanks
    Attachments:
    2.JPG ‏73 KB

    It seems you are running windows XP.
    The old inPort and outPort VIs are not supported under Windows NT/2000/XP.
    You should upgrade to LabVIEW 7 (or higher) or follow the instructions HERE to install the accessHW utilities.
    LabVIEW Champion . Do more with less code and in less time .

  • Setting Pins on Parallel Ports

    Ok - going crazy - am trying to run a motor via parallel port - have a basic c app that does this but need to translate it into java. The code runs fine but no data is getting to the motor. Have tried with both a PrintStream and BufferedOutputStream but neither work (if they are in fact the prob)- this is what i have for the write methods.
    public void getOutStream(){
    bos = null;
    try {
    //bos = new BufferedOutputStream(port.getOutputStream());
    pos = new PrintStream(port.getOutputStream());
    System.out.println("_GET_OUTPUT_STREAM_");
    } catch (IOException e) {
    e.printStackTrace();
    public void write(){
    int [] b = {0x19, 0x39, 0x13, 0x33, 0x16, 0x36, 0x1c, 0x3c};
    for(int i=0; i<b.length; i++){
    pos.write(b);
    //bos.write(b[i]);
    delay(500);
    Have checked out the forums and a couple of people have mentioned setting the pins on the port to set values - how and where can i do this? and will it do the trick? Maybe someone can see something wrong with the code that i've missed?
    Any help will be HUGELY appreciated - cheers

    You must to forces the buffered output bytes to be written out to the underlying output stream.
    To do this use the flush method.
    public void write(){
    int [] b = {0x19, 0x39, 0x13, 0x33, 0x16, 0x36, 0x1c, 0x3c};
    for(int i=0; i<b.length; i++){
    pos.write(b);
    //bos.write(b);
    // put here if you want to flush after write one byte.
    bos.flush();
    delay(500);
    // or here if you want to flush only after write all bytes.
    bos.flush();
    }

  • Accessing Parallel Port Control and Status Registers with VISA and Win7x64

    Hello all,
    I've posted this in the I/O forum for VISA, but this main forum seems to get a lot more traffic so I'm posting here too.
    Wondering if anyone has a solution for accessing the Control and Status registers on a parallel port with VISA, now that Win7 has locked down the I/O ports and In Port.vi and Out Port.vi don't work anymore.  I've been looking all over for a solution and haven't found anything that will help; either the VISA solution is shown but doesn't mention if the Status and Control registers are accessible, or the solution is for a 32 bit system.
    The one thing I found was under Instrument I/O>VISA>VISA Advanced, there is a group of functions called Register Access; but, when I investigate that, it seems to need an address that the detailed help describes as "VXI, VME, and GPIB-VXI" or "PXI" with no mention of Parallel Port usage, so I'm pretty much at the end of what I can figure out.
    Basically what I need to do is use the data lines to send info, and watch the status lines for incoming discrete signals.  Since parallel ports are half duplex, I can't have the data lines be both inputs and outputs simultaneously, which is what I need.  A cheap D I/O card would be the easiest solution, but to make a long story short I'm dealing with a legacy system and that's something my higher-ups want to avoid.
    Any help is greatly appreciated!

    Hello,
    I was able to solve this problem using software from Entech Taiwan; it's called TVicPort and it's available for free for personal use, and very cheaply for commercial license.  If you have questions let me know, I'll do my best to answer them but investigate Entech's solution and see if it'll work for you:
    http://www.entechtaiwan.com/
    http://www.entechtaiwan.com/dev/port/index.shtm

Maybe you are looking for

  • Full screen widget cut my images

    Hi, i´m using a full screen widget to show various images of my portfolio, but that widget cuts my images at bottom: Original Image: In Full Screen widget: It´s annoying because i need to show too many images, can someone help me? Thanks!

  • How to make a .exe without errors about the costum scaling

    Hello everybody, i'm new with Ni-Labview, i'm trying to make a .exe file of my application, this is working perfect, but if i make costum scales in my Daq Assist options and i make the vi in a .Exe then there are always errors if i open it on another

  • Variable preceded with exclamation mark

    A colleague of mine just noticed something that I have never seen before and can't see the purpose of - preceding a variable with !. DATA:   mydate TYPE d. mydate = sy-datum. ADD 1 TO !mydate. WRITE: mydate, !mydate. The memory reference is identical

  • Apps will not download on to my iphone (both from itunes on my imac or my iPhone) and app saying waiting. HELP!!!

    I got my 4s phone on christmas with apps already on it( from my dad ) and i was able to get a few apps(2 or 3) on it but the next day I got an app and it said waiting. Ignoring it, I simply went on with life but then a couple hours later it still sai

  • How to use pdk-struts-html:link

    i have a portlet,      <pdk-html:link href="/StartEhrpHrj.do?targetGroup=Hrj1030MInfDtlGroup">                xyz </pdk-html:link> </td> but no link,why