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

Similar Messages

  • My parallel port cannot work on win2000 and new pc

    I was troubled by the reading/writing from parallel port on win2000 for a long time. I had made my programs work on win2000/OLD PC, but i failed with the same programs on win2000/new PC. I tried with the method from the forum, that is, install accessHW and other method from my colleagues. Allways failed. I have to return to an old pc, it work! I think not only win2000/winxp will influence parallel port work, but also pc hardware. My new PC is Dell's GX260SMT with p4 2.4G. Dell's FAE told me that i can not install win98 on the pc due to some limitation of mainboard. Who met the smae issue as mine? How to fix it? Thanks for any help.

    I typically stay away from Dell PC's. I always have problems with them..
    I'm surprised to read that a new PC doesn't support Win-98. Have you / can you try Win-NT 4?
    I can't understand why Win2K would be different with a newer PC. The OS assigns the base address of the parallel port to a typical value of 0378h. This is for LPT1.
    My question would be: Are you having problems with LPT1 or do you have a PCI-based Parallel Port (to add ports)? If so, you cannot change the base address with Win-2K or Win-XP which assigns a PCI base address to the port.
    Can you provide more details as what exactly changes between the 2 PC's. Other than the motherboard and typical hardware (of course).
    How is the parallel port configured?
    What are you doing
    with it, etc?
    Any information that can help figure out a solution.
    Regards,
    JLV

  • Is VISA Write VI / Out Port (need AccessHW) better for writing to parallel port?

    We have experimented with 2 methods for writing to parallel port:
    1. Using NI VISA directly by calling VISA Write vi.
    2. Using the Out Port vi, for which we had to install AccessHW.
    Does the first method have any disadvantages. It seems to be a simpler solution.
    Operating system: Windows 2000
    Labview 8.2
    NI VISA 4.0

    Hey rashadi,
    There is nothing wrong with using the VISA write.vi to write to a parallel port.  Here is a great example program of how to use the VISA vi's to write to a parallel  port. 
    I hope this helps!
    Best regards,
    Jason W
    Applications Engineering
    National Instruments

  • Writing to parallel port

    i need to be able to write to the parallel port on a desktop computer
    to control a stepper motor.  I need to be able to write logic high and
    low
    at certain pins that go to a stepper motor driver.  The writing to the
    port needs to be done so many times, or so many steps that are entered
    into the interface. Pins7 is the clock that that starts the stepper
    motor control in the stepper motor driver.  Also, pins 9 and 10 need
    to be driven low or high to tell driver wether half or full step and counter clockwise or clockwise.
    Basically i need to know how to set up my parallel port on my labtop in labView 7.1?
    I want to be able to use the write to digital I/O.vi to send the proper
    binary or hex value of an index array  to the parallel port
    to drive the motor driver.

    Hi exavier,
    Look here maybe someone else hase asked.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Reading/writing to serial port w/ VISA in Labview

    I'm writing a Labview program to control and to read data from a Varian vacuum pump controller. It is connected to the serial port in my computer, and I have been trying to open a VISA session to communicate with the instrument. So far, however, the computer cannot see the instrument--I get the same error messages reading and writing to the instrument as I do to an empty serial port. Does anyone have any suggestions on what the problem might be? Thank you.

    There are a lot of possiblities. Is the cable correct? You probably need a crossover cable (TX and RX) swapped. You also need to check and make sure the serial ports on both ends are set the same (i.e. baud rate, handshaking, stop bits, etc.). Make sure that the port is enabled. I've seen people try to use a comm port only to find that a modem card installation caused the port to be disabled. You could also try using hyperterminal to talk to the instrument. If you can communicate there, you can eliminate any hardware problem.

  • Error while reading/writing to serial port

    Hello,
    I am trying to read/write to my serial port but
    this message shows every time i launch the
    program. Does anyone know some help ?
    Thanks
    FdB
    Attachments:
    error2.ppt ‏172 KB

    Frederico
    This VI (LV8)
    1. Open the serial port at 2400 baud
    2. Powers down the PT104 and wait 0.5 secs for this to settle
    3. Flushes the serial power buffer to remove any power down acknowledgements in the serial buffer
    4. Powers up the PT104 waits 1 sec for things to settle
    5. Reads any bytes in serial rx buffer.
    6. Power down the PT104
    7. Close the COM Port.
    This is a bit of a guess but this is how I would approach it. Can you try this and let us know how you get on?
    thanks
    David
    Message Edited by David Crawford on 07-20-2006 10:31 AM
    Attachments:
    PT104 - Get Version at Power Up.vi ‏56 KB
    PT104 - Get Version at Power Up.jpg ‏50 KB

  • "how to read parallel port using labview"

    "i am doing a bio medical project and need to read data from parallel port using labview. can anyone help me"

    Hi
    in most cases a simple example helps best.......see attachment. Find in addition in Word document a helpful picture of LPT - Pins.
    In case you work with WinNT, W2k, XP - you need to install accesshw.
    Regards
    Werner
    Attachments:
    printer_port_test.zip ‏41 KB
    dsub_25_parallel_port.doc ‏29 KB

  • Read from parallel port

    I know it's possible to write some data to the parallel port using
    LabVIEW, but I don'y know if it's possible to read from the parallel
    port.
    If someone knows, please advice.
    Thanx for reading.
    Paul
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    [email protected] wrote:
    >I know it's possible to write some data to the parallel port using LabVIEW,
    but I don't know if it's possible to read from the parallel port. If someone
    knows, please advice.
    Thanx for reading.
    Paul
    Yes, it is very easy to read from the parallel port. There have even been
    some VIs floating around allowing you to use the parallel port for digital
    I/O using the inport and outport VIs.
    To just use it to communicate, just use the VISA VIs with the proper resource
    name for the port you are using.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Start event immediately after reading parallel port status

    Hello,
    I have a spectrometer for acquiring triggered pulses spectra, it works fine with labview, but I need to make it start the acquisition immediately after an event read by the parallel port in order to distinguish odd and even pulses after this event (wich have different properties). I used a flat sequence: in the first frame I wait until the pin number 12 becomes 1, and in the other frame I start the acquisition of N triggered spectra (nothing else, all the initialization of the spectrometer is done before). 
    What I saw is that it doesn't work: sometimes is takes 1 ms to jump to the second frame and I miss a pulse (pulses @ 1 kHz).
    Is there a way to make it more efficient? To launch the triggered acquisition process immediately after the pin status switch?
    Thank you very much,
    Daniele

    Hi daniele,
          While it's not clear what is connected to the parallel port or what the trigger-options are on the spectrometer, in general it would be best to physically wire a trigger signal from source to destination.  Can the spectrometer be configured to acquire based on an external trigger?  Can pin 12 of the parallel port (via break-out board) be wired to spectrometer trigger-in?
    Considering the 1KHz trigger rate, I wouldn't rely on a multi-tasking OS to implement a software trigger "Immediately". 
    If aquisition must be triggered via software, event-based logic is desireable - I'm not sure whether that's possible here.  By Event-based, I mean use of LabVIEW Event functions.  There are some serial-port-pin (CTS,DSR,etc) event options available via "VISA Enable Event".  The logic would configure the event then wait on the event before invoking the data-aquisition, that is, IF it's even possible to get pin 12 to trigger an Event.
    Luck/Cheers!

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

  • Parallel port communication error with new addresses

    MD2 motors controlled by LabVIEW. I am trying to communicate with the motors through a parallel port. I plug in a PCI card which can provide another two parallel ports. I check their addresses which are 1110-1117 and 1120-1127. Then I replaced the old addresses (378), but could not communicate any more, neither writing nor reading. The parallel port setting in BIOS is bi-directional, since both writing and reading are necessary. Does this matter?
    I really have no clue why or how this could happen. Any help appreciated.

    Hai,
    I have installed a additional parallel port card (in pci slot) in my pc.  Then i installed the device driver that came along with the parallel port card.  I
    checked out the base address it was 278H (but i dint look the address before installing the device driver).   In general centronics interface ( parallel port) are placed at their respective addresses strictly.  Try reinstalling the device driver that came along with the external parallel port card or try latest updates from the manufacturer if available.
    of the card.
    With best regards,
    JK1
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • Using Parallel Port with Outport.vi Problem

    Hello,
    I am trying to use my parallel port to control a relay network and have run into a problem. I am using the outport instead of visa because for some reason I get an error with visa and outport seems more simple. The problem I am having is that my program doesn't seem to be able to initially take control of the port. What I mean by this is that if I restart the computer and open/run my program, I get an incorrect output on the parallel port. However, if I run one of the example programs for controlling the paralle port using outport (attached) (I believe the one I use is called Reading and writing to parallel port using loops) I am able to control the output to the parallel port. Also, after the example has run, my program works correctly. However, if I restart my computer again and run my program first it can no longer control the port correctly. So the problem seems to be that my program isn't initializing the port correctly or assessing it right at the beginning of the program. However, looking at the example program I don't really see what they are doing that I am not. I have the correct port address. 
    My program takes values from a text file and displays them on the port and that works correctly. 
    Attachments:
    CircuitTopModule.vi ‏26 KB
    parallel port examples.llb ‏72 KB

    Hi Jag213, I'm glad you were able to resolve the issues you discussed on the other forum related to this issue.
    Now that you have it working, I would recommend a few things:
    1. Just try modifying one of the existing examples and see what you can get away with removing in order to keep it working the first time.
    2. Try modifying the timing on your example - 10 seconds is a long time to wait between each week, I wonder if you are getting a time out? Do the examples work when you insert that kind of timing delay?
    3. Add the In Port.vi into your code - this may be related to getting your Out Port.vi to work correctly.
    4. Your code controls 8-bits on the parallel port, while the examples control 32-bits. Do all 32 bits need to be initalized? Looking at the Parellel Port Read and Write Loop.vi Example, in the IO Connector Status, the 31st bit controls whether the target is initialized.
    Play with these settings and see if you can get yours to work the first. If all else fails, build your program to run off of one of the examples. For example, have the while loop run once, and then call yours as a SubVI.
    Good luck!
    Joey S.
    Software Product Manager
    National Instruments

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

  • Control Parallel Port using Python!

    Hello, I've coded a new library for python which only purporse is to control the parallel port natively. It uses a C lib ported to python by me(although the C functions to handle this are really simple, all credits go to its original author Juan Gabriel del Cid Portillo) and what I like more about it in python is the interactive mode it offers! check sample code and more information at http://devpower.blogsite.org (in spanish).
    By the way, this is for linux only by now, windows is supported too but I don't have a windows system to compile it, if you want to you can compile it your self since the code for the C lib is included. I hope anyone can find this useful (say goodbye to pyparallel! no more Java deps!). Direct Download Link: http://devpower.blogsite.org/data/files … arport.zip
    Edgar Merino

    This is a frequently asked question. I'd dare say it probably gets asked once each month. You should look at this article:
    Using VISA to Access the Parallel Port in LabVIEW
    In a nutshell: You have to write/read by port. You cannot read/write by bit. This means that if you want to change the value of a single line you have to read the current value of the port, mask it to get the new value that has the line you want changed, and then write out the new value of the port.
    If you also do a search in this board, or on the NI site for "parallel port labview" you will find lots of hits.
    Message Edited by smercurio_fc on 04-09-2007 04:18 PM

  • 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

Maybe you are looking for

  • Change output format of  MC45,key usage value report to ALV format?

    Can someone please help me to change the change the Output of MC45 report to ALV format? Please help!!! Thanks!!! Owais

  • Material ledger production start up

    Dear expert, we are working on a project that has two main objectives: 1) now the customer is using the mtv 103/105 and we want to move to the 101 2) now the customer is using a custom 'medium price calculation' and we have to activate the material l

  • Exporting widescreen anamorphic video for the web

    I have a project in fce which is filmed in widescreen anamorphic at 720, 576 the setup in fce is dv-pal anamorphic and anamorphic is checked in item properties. When I export using quicktime using h.264 encoder it shows at as widescreen in the previe

  • Multiple TVs

    Will one AppleTV work with multiple televisions in a household? For example, could someone in another room watch a different movie than what I am watching using the same AppleTV? Or will I need to purchase an additional AppleTV for my other TV set?

  • How to show the TOC pane in Webhelp

    I'm using RoboHelp 7 for HTML to produce Webhelp projects. I find that whenever I compile the project, once it is embedded in the software application it is intended for, the TOC, Index and Search pane does not display automatically. Instead, there i