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

Similar Messages

  • 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

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

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

  • 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

  • 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

  • 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

  • Pulse generation on PC parallel port and its maximum frequency

    Can i generate pulse pattern on any one out of 8 lines of IEEE1284 using Labview? if yes what is minimum period and duty cycle?
    Yours sincerely

    I doubt you will get up to 2 MBps and whatever you get you will not have any real control about the timing. If you use VISA LabVIEW sends the data to the COMM port driver and that driver outputs it with whatever handshake speed the remote side answers. Also in order to use anything but the old unidirectional printer mode you need to have a device that is intelligent enough to startup in Nibble mode to negotiate the maximum mode it supports. Without any remote device that does the negotiation and handshaking there won't be any EPP, ECP or whatever other bidirectional mode.
    In unidirectional mode you can expect a few kBps at most and again the speed will be whatever the CPU is able to hammer through the parallel port. If you want to have any control of the speed you need to program the parallel port directly on register level. However that will maxout at 1 or 2 kBps at most and you should not expect any fine grained and steady speed control at that level. Windows is not realtime and trying to control anything reliably in software that is less than several 10ths of milliseconds is simply impossible without going into kernel mode and writing the timing critical parts in a kernel driver.
    Also direct access to the paralell port registers is out of question for 64 bit Windows.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Could you help me to control a DC motor with the parallel port and windows 2000?

    I have labview 5.1 and i want to control my application throught the internet

    I would recommend upgrading to LabVIEW 7.0 for a couple of reasons. First, LabVIEW 6.1 introduced remote front panels which allows you to control a VI through a web browser. Setting up remote front panels is very simple and that alone is worth the upgrade. As far a using the parallel port you can use VISA to send/receive commands via the parellel port if you are using a motor controller with a parellel interface. If you are talking about using the port on a bit level to control the motor, LabVIEW 7.0 ships which an example of how to do basic digital input output with the parallel port.
    Regards,
    JR A.
    Application Engineer
    National Instruments

  • 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

  • How to access parallel ports using LabVIEW?

    I want to send data to a device which is connected through LPT1.when Iam using serial port write.vi with port number 10(for LPT1) it is giving an error code 37 which means the device not found. whether those vis are only for accessing serial ports? Then how to access LPT1 using LabVIEW?

    Most likely you need to modify your labview ini file to let it know that LPT1 (or whichever) will be controled through the serial port control. See the following link for a knowledgebase answer to this question:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/a5abd9d76665217b86256333005ac9a5?OpenDocument
    Jared

  • 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

  • Can I use "accesshw.zip" to make the in port and out port VIs work (for NT) for Labview 6.0.2.

    I am trying to write to the parallel port using labview 6.0.2 (vi attatched). It does not seem to be working with NT though it does with Win 98.
    The information about the software (accesshw.zip)mentions versions 4.x and 5.x only.
    Please refer to the link given below:
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/49664743ded6f1da862564bc004e3a7f?OpenDocument
    thanks.
    Pari.

    Hi Rob,
    I cannot completely agree..... Please find attached a
    accesshw_lv6.llb. Originally it was made for LV5; now in LV6-version) This .llb contains accesshw-files for use under NT & W2k. These files work, if you store them (!! including the sub.vi's !!) into: C:\Program Files\National Instruments\LabVIEW 6\vi.lib\platform\system.llb (this should be the typical path). The "old" In Port and Out Port vi's have to be substituted. Find in addition a simple test-program for use with scope in order to test
    the execution speed / toggeling of bits.....see the scope-picture copied into diagram. In addition I strictly recommend the use of buffer-circuits in order not to destroy the mainboard-IC's by accident. If somebody needs schematics or programs rela
    ted to parallel port - example see jpeg-file please mail to: [email protected]
    regards
    wha
    Attachments:
    accesshw_lv6.llb ‏171 KB
    printer_port_test.llb ‏135 KB
    8255_diagram.jpg ‏186 KB

  • I want to communicate and acquire data using the PC Parallel Port.

    How do I to communicate and acquire data from the PC Parallel Port using Labview.
    Thank you in advance.

    One of the easiest ways is to use the INPORT and OUTPORT VIs. Find what port your parallel port is in and then send data to/receive data from that port. For more information on the port itself, try: http://www.lvr.com/parport.htm#Basics. If you are using NT (I heard some of the other new OS's have the same problem) then you need to download accessHW.zip from the NI site.
    Rob

  • 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

Maybe you are looking for

  • How do I find the password for the lock screen

    My phone is locked, and I need a way to find the password to unlock it

  • Get Exception Information from RFC Response Message

    Hi All, I want to make RFC call from ABAP system to XI RFC Adapter. I found that on the caller side, the RFC has the following interface for RFC exception. Exception __Name __Text __Message ____ID ____Number __Attributes ____V1 ____V2 ____V3 ____V4 C

  • Windows media workaround

    I would like to know if there's a workaround for DRM issues with windows media player? I get an error every time it try to play a media stream. The school i go to uses wmv files to stream content. Assistance really appreciated.

  • What is the default/factory setting for the brightness on the iPhone 4?

    I prefer to have default/factory settings for my iPhone 4. Someone moved the brightness slider and I would like to change it back. A screenshot would be rather preferred.

  • Question about streaming videos online

    Can I change a setting so my screen doesn't go dark while I'm streaming movies online. It gets a little annoying that I have to hit the keypad every 35 seconds while watching a movie. Thanks for the help!