Is it possible to use the parallel port to control a stepper motor (compumotor s6-drive)?

I'm using a compumotor S6 drive and I was wondering if I could somehow use Labview to program the parallel port to send the required step and forward backward signal to the controller and motor. All I need it to do is go back and forth at a user defined rate. Considering I know very little about Labview this is a daunting task indeed.

Hello Tiano!
I found an example on the www.ni.com website named "Reading from the Bi-directional Parallel Port."
Here is the link: http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CBA4C111EE034080020E74861&p_node=DZ52058&p_submitted=N&p_rank=&p_answer=&p_source=External
Hope this and the other documents help you along your way!
BB_Phil

Similar Messages

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

  • How can I use the parallel port as an input channel to communicate with a SPECTROMETER?

    Hello,
    The sensing system we use is called: FieldSpec Pro from www.asdi.com.
    The spectrometer has a LPT terminal. I'd like to use LabVIEW to acquire signals from the spectrometer for further analysis.
    Thank you!

    Dennis,
    I appreciate your time.
    I have asked the copmany for such infos, but it seems to be confidential.
    Do I need an I/O DAQ-Card?
    Dennis Knutson wrote:
    About all that tells me is
    that I'm located in the same town as the manufacturer. You'll need to
    find some specification that describes the parallel port protocol.
    Without that, you're just wasting your time. Even if the instrument is
    constantly sending data, you'll need to know how to interpret the data
    and there's nothing that says it has to be sending constantly. Maybe
    you first have to write something to the port first. Talk to them and
    tell them you want to replace their software with software of your own
    and need to be able to read the data.

  • My opatical equipment measures the brightness with using the parallel port.

    How can I receive that data ? Plz...send me ur advices through e-mail.
    My address : [email protected]

    Hello,
    You should probably be a bit more specific in your problem description. Please post your question in the software category that pertains to your application. For instance, if you are using LabVIEW to communicate with your parallel port, you may want to post your question in one of the LabVIEW categories.
    Good luck with your application.
    Sincerely,
    Darren Nattinger
    Applications Engineer
    National Instruments
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Is it possible to use the UC-33e (surface control) with FCP ?

    If it's the case, how can you do it ?
    Thanks

    No, FCP has no MIDI implementation to support generic assignable fader boxes. It's pretty much stick to devices that support the Logic/Mackie Control protocol. Unless FCP gets the proper System Exclusive handshake, it will ignore continuous controller messages.

  • Using stand alone executables to send data to the parallel port

    I have a executable that uses the parallel port to activate an alarm. The program works well on the base machine which is running windows XP. However when I try to run the stand alone executable on a windows NT machine there is nothing sent to the parallel port. I have updated the Cvirt file on all machines. I don't get any error messages when running the stand alone executable.

    I have the same situation using parallel port to control a hot swap PCI extender card and no error showed.  I can turn on/off and read correct voltages from the card in base machine.  After creating executables, I can turn on/off the card, but got wrong voltages in target machine.
    I've installed AccessHW in both machines and copied AccessHW.dll and cvirte.dll to system32 folder and the folder same with executables.  I also tried installer with port support and serial support checked. 
    Windows XP is in both machines and LV 7 in base machine.  I use "Output Byte to Port.vi" and "Input Byte from Port.vi" in AccessHW lib.
    One thing I observe is initiation.  The card manufacturer provides a program with same functions.  After running their program, the voltage readings from the executables become correct.  The readings remain good after closing their program.  I close the executables and run the executables again and still see good results unless restarting the target machine.
    Any solution for the problem? Thanks in advance!

  • What is the data throughput in labview. I want to use the parallel as acheap digital i/o to drive a stepper motor.

    I am trying to use the parallel port on a win xp machine to send data a@ up to a 3k rate. This is for the the purpose of driving a stepper motor. I have tried the port.out vi and placed this vi in a loop and it on a scope it looks like I am limited to a a 200hz rate. What am I doing wrong??? Can labview do this or is it too slow ???
    Thanks

    snook wrote:
    > what is the data throughput in labview. I want to use the parallel as
    > acheap digital i/o to drive a stepper motor.
    >
    > I am trying to use the parallel port on a win xp machine to send data
    > a@ up to a 3k rate. This is for the the purpose of driving a stepper
    > motor. I have tried the port.out vi and placed this vi in a loop and
    > it on a scope it looks like I am limited to a a 200hz rate. What am I
    > doing wrong??? Can labview do this or is it too slow ???
    Basically the way the Port I/O VIs are implemented they call through a
    device driver for each port access. This slows down the maximum port
    accesses to something like 1000 times per second depending on the speed
    of your CPU.
    There is a way to do it faster but that is a little more trick
    y. The
    idea is to use a device driver to enable particular port addresses to be
    accessed directly from the application level instead of always going
    through the kernel.
    I have written such a VI library and accompagning DLL and device driver
    and made it available on OpenG. It is not yet part of the standard
    binary distribution packets so you will have to get it from the CVS
    repository.
    Go to:
    http://cvs.sourceforge.net/viewcvs.py/opengtoolkit/portIO/built/portio/
    and download all the files in there including the ones in the
    subdirectory "ogportio.llb" and if you like "docs"
    If you want the nitty gritty technical details you can also look at
    http://cvs.sourceforge.net/viewcvs.py/*checkout*/opengtoolkit/portIO/c_source/Description.htm?rev=1.5
    On my 866 MHz Pentium mobile I can increase the number of port accesses
    in this way from 440 ms for 4000 read byte port accesses (100us ms per
    access) to 20 ms for the same number of read accesses (5 us per access).
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Writing a String to the Parallel Port

    I am a new user of Labview and have very little experience. I am trying
    to write an arbitrary string (that I can input) to the parallel port.
    Basically, I need to communicate with a device that connects to it and
    will accept commands as plain strings. I have read the article "using
    the parallel port with labview" but it hasn't helped me as I am so
    inexperienced. I was hoping that someone could help to learn how to do
    this and if there's a vi that already does this. It seems like a simple
    enough task. Thanks.

    Rather than simply present an answer from which you will learn little, I will try and out line what it is that you should investigate......
    First have a look at a string control
    You might want a button and a case structure to tell the code when to start decoding the string
    Put the following code inside the case structure say on the true state
    Then, taking data from this string control get the strings length
    Then using this and a loop index through the string using the string subset VI on the string pallette, use the length of 1 and index the position in the loop
    Now figure out how to convert the character to an ASCII value
    Send this to the parallel port
    This should be a reasonable frame work to empower you to learn for yourself.
    "Give a man a fish and you feed him for a day, teach a man to fish and you feed him for life", enjoy the free meals!
    Message Edité par Conseils le 07-13-2006 09:17 PM

  • Controlling pins on the parallel port

    Hey
    I'm writing a program in  labview to controll a matrix card with labview. For that I'll use the parallel port. On  the datasheet it says  that only one off the pins shall send data serial into the card, and others are pins for update. clk etc.
    So I need help on how to configure the parallel port to  send different  things to the dedicated pins.
    jonas

    Hi Jonas,
    your task is a typical  SPI - communication ( like it is used for many chips - A/D  or D/A- converters; µC's etc. )
    Find attached a SPI-example-program (LV7.1.1), ( 16 Bit in this case )  - there you will see the mechanism, how to
    serialize Data @ LPT - Port and how a clock and /CS signals are added.
    I think with all my comments inside the Diagram you should understand, how it works.
    Switch the yellow light bulb "ON" and step through the program in Debug mode - every single clock and
    Data change can be observed  .............. or use a scope in "loop mode".
    If there are still open questions - let me know.
    Regards
    Werner
    P.S. Next time you should first simply type "parallel port" or "SPI"  in search line.... on this forum you will
    find a lot of threads about this issue........
    Attachments:
    project xx SPI.zip ‏92 KB

  • Can I use the IR port to receive other data

    HI I wonder if it is possible to use the IR port on my 2.4Ghz Core Duo Imac to import data from the IR transmitter on my Aviva Accu Chek blood glucose Monitor? Any suggestions would be much appreciated. I have very few tech. details about the Accuchek, some ideas of how to access the IR port would be great as a starting point
    Thanks for the help Peter T

    I doubt it can or there would be other hardware which may use it.
    I think the problem you will have is if it can transmit the data and has been sent to your mac how would you open the data?
    You need an app to access it.
    But it maybe worth seeing if the diabetic app you get on the mac can understand the data it sends.

  • 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

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

  • I would like to extend the screen from my circa 2013 27in iMAC with thunderbolt onto my circa late 2006 imac using the DVI port on that iMAC. Is this possible? If not is there another approach I can use?

    I would like to extend the screen from my circa 2013 27in iMAC with thunderbolt onto my circa late 2006 imac using the DVI port on that iMAC. Is this possible? If not is there another approach I can use? My 2006 iMAC is showing it's age but I figure I can use it as just a monitor just fine. Assuming I can connect the two together.

    That older iMac isn't designed to receive video input through the mini-DVI connection. Only certain newer iMacs are able to be used as displays.
    Your only options are to use something like ScreenRecycler mentioned above.
    ~Lyssa

  • Why does this loop used to write values to the parallel port keep going forever?

    Have a look at this VI guys. I'm trying to send a sequence of bits (used to trigger an IC). I'm interested in the last bit of the data port (D0). so I'm sending either 0 or 1 to that pin to trigger the IC. it works, but the problem is that the loop keeps going forever and i cant control it. if i send 3 to the loop count, I'm expecting to get: 1 0 1 0 1 0, but it doesnt stop and keeps going forever.
    It seems that the problem is not with the loop. because i deleted the loop and just left the flat sequence so that it executes only once, but still it keeps repeating. How can i make the flat sequence execute only once?
    I'm using a parallel port monitor (parmon.exe) and a LED connected to D0 of the parallel port to check.
    If anybody has an alternative or better method to send the bits to the parallel port, I'd be very thankful.Message Edited by krayzie on 05-14-2005 04:33 PM
    Attachments:
    pport.vi ‏24 KB

    It works just fine here. Place an indicator to the iteration terminal [i] to watch how things progress. Do the number ever increase above N-1 to what you wire to N? I don't think so!
    Also make sure you don't run the VI with the "Continuous run" button. In this case the VI would immediately restart whenever it is finished. use the "Run" button.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for