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

Similar Messages

  • How to control a parallel port with labview

    Hi. I'm trying to control a dc motor with a parallel port using labview. the program has to be able to vary the out put voltage of the computer (0 - 5V) through the parallel port into a circuit which will step up the voltage for the motor. Any help would be greatly appreicated. garreth

    Do you want to output and varying signal from the parallel port pins? If so you can't do it, the port pins are digital and can only be high or low, not inbetween. You can control the individual lines high or low using the In/Out Port vis in Advanced>>Port I/O. For more help on doing this search the message archives (I know I've answered a few) and NI's site, there is some good info on it out there. Try some of these for starters:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/0989d3d9dafae64e8625680400679736?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/f4146c66990c46388625695f00726581?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/f3c4ee6ee2c23ef386
    25646b007882c8?OpenDocument
    http://www.advmeas.com/goodies/parallelport.html
    I hope this helps get you started
    Brian

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

  • How can I do to communicate to parallel port using labview 5.0 and NT ?

    I am trying to write and read from parallel port using Labview 5.0. It does not work with NT.
    How can I do to communicate to parallel port using labview 5.0 and NT ?
    Thank you in advance.
    Regards,

    If you are trying to use In/Out port functions that come with LabVIEW they will not work with NT. I think the AccessHW file at the following link will fix that problem:
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/49664743ded6f1da862564bc004e3a7f?OpenDocument
    Try also this link:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/0989d3d9dafae64e8625680400679736?OpenDocument
    and do some searchs at NI.com for parallel port, you should find some more usefull info.
    Good luck
    Brian

  • I want to write data into eeprom(93LC86) in parallel port using labview?

    I want to write data into eeprom(93LC86) in parallel port using labview? Also I want to read data from EEprom.

    Hi Mr. Mz,
    after having a look to 93LC86-Datasheet I do not see a problem. The self-timing programming cycle of this Chip avoids timing problems; the rest is only logical stuff.
    If you need more general info, how to use the parallel port, I recommend: http://[email protected]/ or
    in case you need an example of SPI-Interface in LabVIEW with paraport - then write to: [email protected]
    You are welcome
    regards
    wha

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

  • Controlling XY stage connected to parallel port using labview

    Hi,
    I have a XY stage which I can control using mach3 software. I want to control a signal generator, VNA and the XY stage at the same time. I have programmed SG and VNA using Labview but I am having difficulties controlling XY stage using Labview. I have never controlled an instrument connected through parallel port using labview.
    Can anybody give me some ideas to start with? How do I use VISA to control the parallel port? I really appreciate your help. Thank you in advance.

    Hi srms,
    Since your question is related to using VISA, I would try posting your question on the Instrument Control Board. You're likely to have better luck there.

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

  • How to get string (specified by line and column) from txt file with labview

    Hi everyone
    How to get string (specified by line and column) from txt file with labview
    thx 
    Solved!
    Go to Solution.

    As far as I know, a text file has no columns.  Please be more specific.  Do you mean something like the 5th word on line 4, where words are separated by a space, and lines are separated by a newline character?  You could the Read from Spreadsheet String function and set the delimiter to a space.  This will produce a 2D array of strings.  Then use index array and give the line number and column number.
    - tbob
    Inventor of the WORM Global

  • Reading Ascii charactors from Parallel port???

    Greetings:
    I have a question about instructing a third party vender who is writing code in VB6.0. (windows XP sp2) 
    They will be sending cycle counts thru the parallel port to my computer that i will be capturing using Labview 7.1.1 (windows XP sp2)
    The format of the streaming will be Ex.   *000000324*000000325*000000326*... etc. Continuously
    I can tell him to get rid of leading zeros if need be.
     I think i can capture this using VISA serial read.
    a) But what should i tell the third party vender for him to write to the parallel port?  Also should set the printer port to RAW
        and/or bi-directional printing .
    b) What is the pinout of the parallel cable between the two computers , is there a Null modem type of cable available, or is it pin to pin?
    c) What about handshaking , such as printer not ready, buffer full, etc.etc.
    Any help would be apreciated.
     Thanks
     Forrest 
    [email protected]
    to modify thier software to a
    Parallel port. so that i could capture.
    I have a third party group that is running a process sending and receiving
     data
    > thru a USB port for control of a frequency test. They are keeping track of
    > cycle counts that
    > are important in there test. They are using Visual Basic 6.0.
    >
    > What I want to do is to send the cycle counts ( which could be up to
    > 999,999,999 cycles)
    > (on an older system I would capture the cycle counts from a RS232 port
    that
    > they were send to me on another computer[Running Labview 7.1.1])
    >
    > I need ( since RS232 ports are sort of going away on new computer system
    > nowadays) to capture a streaming cycle count from the third Party system.
    > etc which will be continuous. They can modify there Visual Basic 6.0 to
    > incorporate USB drivers for your chips. I will be capturing the Data
    either
    > RS232 or USB into Labview 7.1.1 .
    >
    > I noticed you had drives on your web site with VB and Labview.
    >
    > Could you guys give me some suggestions if possible.
    > Thanks
    >
    >

    Hi Forrest,
    Okay... that makes more sense.  You are trying to communicate beetween 2 PC's.  Something like LapLink.. And yes, it would be okay to do this with the parallel port, it may have more speed than the serial port.  However for ease of implementation, you can use the serial port communication.  It is actually quite easy to implement. 
    The first step (if you are using Windows), is to establish the communication between the PC's using Hyperterminal.  You should be able to "chat" between the 2 PC's.  Maybe I shouldn't use the word chat..  You can communicate (Tx/Rx - ASCII) between the 2 PC's.  Once you verify that this works (at the desired speed - and configuration), you can implement it in Labview. 
    RayR

  • 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

  • Parallel port and labview

    I am trying to control a OMHT23-400 stepper motor through a 3540M motor drive using a Moschip PCI Parallel Port. I created a program to send alternatilng pulses to the motor and rotate it a desired amount of degrees. The address of the stepper motor in my computer is I/O Range BD00-BD07. The same program worked in another computer who's parallel port address was I/O Range 0378-037F. I dont know why the program is working in the first computer and the same program wont work in this one. Thank you for your help.
    PS: the program that i wrote is attached below.
    Guillermo Naranjo
    Physics/Space Science
    Florida Institute of Technology
    Phone: 768 537 6392
    e-mail: [email protected]
    Solved!
    Go to Solution.
    Attachments:
    Rotation of Camera2.vi ‏17 KB

    Dear Gant88,
     first download and unpack accesshw.zip as instructed  (you can also unpack it to the directory where your .vi files for this projet are, thugh this is not good practice).
    I attached my write_port and my read_from_port. (LV 7.1)
    In my case I wanted to write (or read) 32 bit integer from the port, for this purpose I am writing (or reading) three (data, status, control) bytes at different locations. You will figure out.
    Take care not to have any printer installed (in win xp) on parallel port, because windows will do some check-ups on printer from time to time. This will interfere with your program. 
    Try and let me know.
    regards.
    Bojan
    Attachments:
    write_to_port.vi ‏28 KB
    read_from_port.vi ‏32 KB

  • 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

  • Low frequency measuremen​t from Parallel Port

    Hi there...
    I need to calculate the "on" and "off" time and duty cycle in pulse form from a parallel port. By making the circuit in 5 or 0 V, I just simply put it in my parallel port. The problem comes when I need to measure a very very low frequency. In this case, I want to measure the duty cycle from my operated refrigerator. I need to know when the thermostat goes "on" and when it comes to "off". In my experience, the thermostat will be "on" in about 5-10 minutes and "off" in about 20-30 minutes. So, the pulse might be take for a long periode each.
    I've tried with Timing and Transition Measurement wizard or even by using Pulse Measurement.vi which is included in Waveform Measurement category. It only works for 2 Hz and . If I try to set it with 1 Hz or below, it comes the message :
    "Error -20308 occurred at Timing and Transition Measurements -> Untitled 1
    :4"  (waveform index 0 of 1)
    Possible reason(s):
    Analysis:  The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units."
    Could someone help me please ?
    Regards,
    Ricki

    here is a quick shot to give you an idea
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    port logger.vi ‏22 KB

  • Voltage out from parallel port

    Hi there,
    I want to use the parallel port to run a relay.
    I do not understand the example given by labview. I also read the forum but I did not see what I am looking for.
    I am kindly asking if some one can write a small program ( I use labview 8.5) so I can give a 5v out say to pin #2.
    Thank you in advance

    vlonjati wrote:
    I do not understand the example given by labview. I also read the forum but I did not see what I am looking for.
    I am kindly asking if some one can write a small program ( I use labview 8.5) so I can give a 5v out say to pin #2.
    Please tell us more why you struggle, this is not good enough
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

Maybe you are looking for

  • Help needed in SRM upgrade to SRM server 5.0

    Experts, My client is on EBP 2.0 and going for an upgrade to SRM Server 5.0 and working on classic scenario and keeping the backend as 4.6C for this phase of the project. Please share any experiences on how to go about the upgrade, any questionaries,

  • How to execute a procedure or function from Java Stored procedure

    Hi, I am new to Java Stored Procedures. I am working on Oracle 8i and JVM 1.3.1. I want to call a PL/SQL procedure from within Java. I have tried looking at severa; cources but they are quite high level for me. Can someone provide a simple example in

  • Using a frame to call a frame

    Hi, I am currently writing a program where, at one point, the main program (an applet) calls another window with a popup question. The user is to answer a question (it's multiple choice, so checkboxes are used) and I would like a score value to be re

  • Difference between WRT54G and WRT54GC

    I have a WRT54GC with the latest BIOS that I have used for more than 2 years to provide Internet access to five computers at home.  It has an HGA7S antenna and I use a WRE54G Range Expander to get to the front of the house.  The wireless adapters are

  • Workflow and released purchase requisition

    Hi, when user relesead a position of purchase requisition I start a workflow from exit. It's possible stop the user to reset release when workflow is active? In other words I want that the user don't change the purchase requisition and don't reset th