I'd like to Pilot Parallel Port an its seperate bits

Hi...
I'd like to pilot 8 relays with the normal parallel-port of a PC using LabView. In this case I have to pilot 9 bits of the parallel port. How can I realise to pilot the parallel port and the seperate bits and which VI should be used?
Message Edited by Sushi on 05-16-2006 11:05 AM
Message Edited by Sushi on 05-16-2006 11:05 AM

Hi Sushi,
The first thing to investigate is whether the PC's parallel port can actually drive that many relays due to loading conditions.  Check out the specs of your PC's bus versus the loading requirements (typically mA) for a given relay. 
As for controlling the relay using the parallel port, you can have a look at the example provided by Labview by searching within the Help menu, under "Find Examples", then search "parallel port".  Although reading & writing to the parallel port is relatively easy, the nice thing with the examples is that it provides information on each line of the port (data vs control, etc).  I also posted an attachment a few years ago on how to set up the port.  This was used to open / close relays..  I will look for the thread.
Regards,
JLV

Similar Messages

  • 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

  • Problem with JNI and Parallel Port dll

    Hi. I'm doing some testes with JNI. Firs i followed the netbeans tutorial for doing a C programa that prints somthing for java.. like.. "Hello java from C".
    So i tried to load a dll from my dll. Like, I have this dll to use the parallel port on windows Xp. So i created a dll to access it an comunicates eoth java.
    I did everything just fine.
    When I start my Java app, the first thing it does is to load this parallel port dll and configure the functions of it.
    After that .. I get this error
    EXCEPTION_FLT_STACK_CHECK (0xc0000092) at pc=0x0093d269, pid=2284, tid=3000
    Can someone explain why ?
    (Sorry if i wasn't clear enough, english is not my native language, so ask if you don't understand something.. )

    hi ,
    I met the same problem this morning, and searched the www.google.com in order to solve it, as a result, your article was shown on my screen. :)
    Till now I have read some technical information and solved my problems. Maybe the solution be useful to you:
    ==============================
    error message : (Environment : Tomcat 5, Windows 2003, Mysql5)
    2006-3-29 11:53:48 org.apache.catalina.core.StandardWrapper unload
    message: Waiting for 2 instance(s) to be deallocated
    ==============================
    cause: the number of connection to database exceeded.another word,too many connections.
    ==============================
    solution: close the connection when it becomes useless for your program. :)
    ==============================
    ps. Sorry for my weak English . hehe ....

  • Connecting a HP LaserJet 4000 parallel port to Windows 7 USB port

    I have been using a HP LaserJet 4000 via a parallel port for years on a variety of machines / Operating systems without issue. However, having purchased a new Laptop (Windows 7  64bit), there is no parallel port (unsurprisingly). So the question is 'How do I connect my legacy parallel printer to the USB port ?
    Regards
    John Bennett

    Hi,
    You need something like this:
      http://www.shopbot.com.au/pp-belkin-usb-parallel-printer-adapter-f5u002-price-106075.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to Install a parallel port printer to usb port of Pavilion dv5 Notebook

    In trying to install my HP DeskJet 610C Parallel Port printer to my HP Pavilion dv5-1235dx Notebook PC with Windows Vista Home Premium 64-bit, I followed instructions given by HP Support some two years back.
    I connected up the two units through a Parallel-to-USB ports cable. The PC loaded and confirmed suitable driver. (Following advice from sites on the Internet, I have made repeated attempts to carefully install the printer, but to no avail).
    Upon my issuing the Print instruction, the printer invariably prints two copies of what appears to be 'gibberish' in two lines at the start of the sheet. Thereafter it picks up and then ejects 6-8 sheets of blank paper.
    Any help in resolving this anomalous situation will be be most welcome and much appreciated.
    I might add that the printer works normally when connected in parallel to an older, Compaq Armada 1750 Notebook (XP OS). In this instance too, the Parrallel/USB worked as in the Pavilion PC, above.  
    This question was solved.
    View Solution.

    Hi khalidem, 
    Sounds like you have a communication problem with the printer cables. Have you tried a new parallel to USB cable or adapter?
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • How can i us the parallel port of the printer to control a frequenz-generator?

    Hello all !
    I like to  control with LabVIEW 8 student-version, the Frequenz-generator gadget . For this challenge i like to us the parallel port of the printer. I need for data flow only 2 cable. The frequenz-generator gadget need two signal : Low and High.How  can i  us the parallel port of the printer to control a frequenz-generator gadget? I have us  the VIs-Visa  (Visa-Serial, write, Close ), but i dont no what command i have to write on the Visa-Write so that the Signal can be in the low or high position.
    Thanks

    Hi Jeanjac,
    first, look here:
    http://en.wikipedia.org/wiki/Parallel_port
    to get the port numbering. also, be sure not to leave pin unconected, sometimes you might get an error message otherwise (i remember pin11 has to be always connected or so for windows...)
    second, just run the test panel in MAX and write something to your device to check if it works.
    then in LV, you have to decide to which pin is connected your instrument. in any case you have to address all 8 output pins together! this is a parallel...
    if you prefere to use only one pin, then you can use the serial port, with just pin 2 and 3 connected. it would work easier for you, since you address only one bit.
    Gabriel
    ... And here's where I keep assorted lengths of wires...

  • Satellite A200: How connect a parallel port printer?

    Probably a very silly question, but would like to connect A200 series laptop to a parallel port printer that does not have a USB port... what is the best option?

    Hi
    You ask for the best way?
    Well, you have got only one way?
    You need an USB to parallel adapter. Check in the google for some offers.
    I searched in the google and found some good options.
    Maybe this could be a good choice;
    http://www.ramelectronics.net/html/usb_printer_cable.htm#UP6C
    Best regards

  • Parallel Port & Printing

    Hi,
    I am new to ArchLinux and have been using Gentoo since qutie a while. After installing nearly everything I need I am now struggling with the printer setup. I guess this is due to a problem with my parallel port, cause it does not show up in the selection box of cups. I can choose serial and usb ports, but no parallel ports. I have installed some modules like
    lp & parport
    I also have cups running of course and it connects. My question is the kernel (2.6.4) must be compiled with support for the parallel port by default, right? At least after loading these modules it should work. What am I missing?
    Thanks already!!!

    Good advice!  Haven't solved it yet, but FWIW I can read the cups documentation.  So I set the log to debug mode and here it is: 
    This log content follows
        lp fstab
    18/Mar/2004:18:13:15 +0000] AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=1
    CloseClient() 5
    AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=1
    CloseClient() 5
    AcceptClient() 5 from localhost:631.
    ReadClient() 5 POST / HTTP/1.1
    ProcessIPPRequest: 5 status_code=0
    ReadClient() 5 POST /printers/lpr HTTP/1.1
    print_job: auto-typing file...
    print_job: request file type is text/plain.
    check_quotas: requesting-user-name = 'root'
    print_job: requesting-user-name = 'root'
    Adding start banner page "none" to job 16.
    Adding end banner page "none" to job 16.
    Job 16 queued on 'lpr' by 'root'.
    Job 16 hold_until = 0
    StartJob(16, 0x8093b70)
    StartJob() id = 16, file = 0/1
    job-sheets=none,none
    banner_page = 0
    StartJob: argv = "lpr","16","root","fstab","1","","/var/spool/cups/d00016-001"
    StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
    StartJob: envp[1]="SOFTWARE=CUPS/1.1"
    StartJob: envp[2]="USER=root"
    StartJob: envp[3]="CHARSET=iso-8859-1"
    StartJob: envp[4]="LANG=en"
    StartJob: envp[5]="PPD=/etc/cups/ppd/lpr.ppd"
    StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
    StartJob: envp[7]="RIP_MAX_CACHE=8m"
    StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
    StartJob: envp[9]="CONTENT_TYPE=text/plain"
    StartJob: envp[10]="DEVICE_URI=parallel:/dev/lp0"
    StartJob: envp[11]="PRINTER=lpr"
    StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
    StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
    StartJob: envp[14]="CUPS_SERVER=localhost"
    StartJob: envp[15]="IPP_PORT=631"
    StartJob: statusfds = [ 7 8 ]
    StartJob: filterfds[1] = [ 9 -1 ]
    StartJob: filter = "/usr/lib/cups/filter/texttops"
    StartJob: filterfds[0] = [ 10 11 ]
    start_process("/usr/lib/cups/filter/texttops", 0xbffeff30, 0xbffef2a0, 9, 11, 8)
    Started filter /usr/lib/cups/filter/texttops (PID 2486) for job 16.
    StartJob: filter = "/usr/lib/cups/filter/pstops"
    StartJob: filterfds[1] = [ 9 12 ]
    start_process("/usr/lib/cups/filter/pstops", 0xbffeff30, 0xbffef2a0, 10, 12, 8)
    I [18/Mar/2004:18:13:15 +0000] Started filter /usr/lib/cups/filter/pstops (PID 2487) for job 16.
    StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
    StartJob: filterfds[0] = [ 10 11 ]
    start_process("/usr/lib/cups/filter/foomatic-rip", 0xbffeff30, 0xbffef2a0, 9, 11, 8)
    Started filter /usr/lib/cups/filter/foomatic-rip (PID 2488) for job 16.
    StartJob: backend = "/usr/lib/cups/backend/parallel"
    StartJob: filterfds[1] = [ -1 9 ]
    start_process("/usr/lib/cups/backend/parallel", 0xbffeff30, 0xbffef2a0, 10, 9, 8)
    Started backend /usr/lib/cups/backend/parallel (PID 2489) for job 16.
    ProcessIPPRequest: 5 status_code=0
    This looks like the problem?  Can't find status 22 explanation but must be the next line.
    PID 2488 stopped with status 22!
    [Job 16] /usr/lib/cups/filter/foomatic-rip: No such file or directory
    [Job 16] Page = 612x792; 0,0 to 612,792
    [Job 16] ppd->num_fonts = 35
    [snip]
    [Job 16] ppd->fonts[8] = Courier
    [Job 16] Page = 612x792; 0,0 to 612,792
    [Job 16] slowcollate=0, slowduplex=0, sloworder=0
    [Job 16] 0 %%BoundingBox: 0 0 612 792
    [Job 16] 0 %%Creator: texttops/CUPS v1.1.20
    [Job 16] 0 %%CreationDate: Thu Mar 18 18:13:15 2004
    [Job 16] 0 %%Title: fstab
    [Job 16] 0 %%For: root
    [Job 16] 0 %%Pages: (atend)
    [Job 16] 0 %%DocumentNeededResources: font Courier-Bold
    [Job 16] 0 %%+ font Courier
    [Job 16] 0 %%DocumentSuppliedResources: procset texttops 1.1 0
    [Job 16] 0 %%+ font Courier-Bold
    [Job 16] 0 %%+ font Courier
    [Job 16] 0 %%EndComments
    [Job 16] 0 %%BeginProlog
    [Job 16] 0 %%BeginResource: font Courier-Bold
    [Job 16] 0 %%CreationDate: Wed Dec 22 1999
    [Job 16] 0 %%EndResource
    [Job 16] 0 %%BeginResource: font Courier
    [Job 16] 0 %%CreationDate: Wed Dec 22 1999
    [Job 16] 0 %%EndResource
    [Job 16] 0 %%BeginResource: procset texttops 1.1 0
    D [18/Mar/2004:18:13:15 +0000] [Job 16] 0 %%EndResource
    [Job 16] 0 %%EndProlog
    [Job 16] 0 %%Page: 1 1
    [Job 16] 0 %%Page: 1 1
    [Job 16] pw = 612.0, pl = 792.0
    [Job 16] PageLeft = 0.0, PageRight = 612.0
    [Job 16] PageTop = 792.0, PageBottom = 0.0
    [Job 16] PageWidth = 612.0, PageLength = 792.0
    [Job 16] 0 %%Trailer
    [Job 16] Saw Trailer!
    [Job 16] Saw EOF!
    UpdateJob: job 16, file 0 is complete.
    CancelJob: id = 16
    StopJob: id = 16, force = 0
    StopJob: printer state is 3
    CloseClient() 5
    Bill Barnes

  • Parallel port in network computer

    Is it possible to access the parallel port in network computer using labview?
    because i am having laptop i dont have parallel port in it.  If i connect my computer to network is it posible to access the parallel port in network computer.
    If not possible is it possible to use usb to parallel port adaptor.

    ramkis wrote:
    Is it possible to access the parallel port in network computer using labview?
    because i am having laptop i dont have parallel port in it.  If i connect my computer to network is it posible to access the parallel port in network computer.
    Define "possible". Lots of people ask if something is possible. What you really want to ask is "how difficult is it"? The answer is "yes, it's possible". How difficult? VERY. You cannot directly access it. You have to set up a messaging system between the two computers. Feel like doing that?
    If not possible is it possible to use usb to parallel port adaptor.
    Probably.

  • 8200 elite Parallel port not run

    Hi to all,
    On my elite8200 I can not run the LPT port on my windows7 64bit port with the address but F0E0 wrong with the management software for a CNC machine.
    In the bios (updated) I can only edit the IRQ of the serial port (it looks like prunes A) For the parallel port can only choose between Standard ECC + ESP etc..
    Does anyone know help me?
    thank you very much

    Perhaps a more complete model number would help.  In looking with that  limited model number there are several listed, even an AIO unit.  In the models such as the small form factor model, there is no parallel port ( which is normally  LPT ) shown.  What actual output port is being addressed as the LPT?
    {---------- Please click the "Thumbs Up" to say thanks for helping.
    Please click "Accept As Solution" if my help has solved your problem. ----------}
    This is a user supported forum. I am a volunteer and I do not work for HP.

  • Parallel Port address out of range for output.vi

    Hi all,
    I know people have had this question before, but I don't seem to follow the responses.
    Basically, I have a Parallel Port connected through a PCI slot with the address BCC8, and I've been trying to talk to a stepper motor using output.vi, but as far as I can tell the address input is limited to I16 values.  Is there away to get around this?
    Hann

    Hi Hann,
    What forum postings have you been researching before posting? We need more information about your application, perhaps posting your code would be helping in resolving your issue. Are you using a particular LabVIEW toolkit like the LabVIEW Motion Control Tools or are you using VISA Read and Write functions?Where are you getting the output.vi? What version of LabVIEW are you using.
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • Usb to parallel port converter

    Hello all
    I am having usb to 36 pin parallel port converter and i try to communicate with that to run a stepper motor.
    how can i communicate with that.?  I plan to use visa function for that, what are all the pins i have to be grounded. (Can i use visa write funtion for that?)
    i have read in forums for IEEE1284 standard i have to ground pin 11 and pin 12.
    And i dont know one more thing, in max i can see only COM ports without any problem and i cannot see any usb port in that.
    Is COM port and usb port are same.?

    This may make things more difficult. You can try if outport to the port addresses hex378 or hex278 works, but probably it doesn't. You may try to find out if your device has a different port address.
    A PCMCIA parallel port normally works like a standard one. with the 378 or 278 port address.
    Cheers
    Edgar

  • [WinXP/Lab​View7.0]Re​ading parallel port is too slow...

    Hi,
    First I would like to apologize for my English. I'm from Switzerland....
    I'm trying to read out a 16Bit A/D in 1us steps. Serial Communication over a PIC is too slow, so I was looking for a faster option. I found out there is possibility to read from the parallel port:
    I downloaded and installed the AccessHW drivers. I found 2 Vi's (see attached files) to read and write to the port. But this works only very slow. (100Hz read frequency).
    By the way I need some advice how to use 16 bits in minimum as inputs. When I set the bit 5 in Baseregister+2 I can read the Baseregister. I can read the whole byte except bit 3. This bit stays always high (3.4 VDC).
    The 5 status bits from Baseregister+1 I can
    read with no problems but the read frequency is around 100Hz too...
    The 4 control bits from Baseregister+2 I can't access. I followed the instructions in this link: http://zone.ni.com/devzone/conceptd.nsf/webmain/72​C6FC6CE4AD4D1386256B1800794596?opendocument#4 to make this 4 bits inputs, but it doesn't work. I set the Baseregister+2 00100100 (all of the 4 bits are high) and then I start to read out the Baseregister+2, but there are no changes, when I connect one of the 4 pins to ground.
    Hope there is anyone who can help me..!
    Greets
    Attachments:
    Input_Byte_From_Port.vi ‏20 KB
    Output_Byte_To_Port.vi ‏12 KB

    If you're trying to acquire a 16-bit sample at 1MS/s, using the parallel port, it will not work. In fact, many full-fledged DAQ cards do not support this high sampling-rate/resolution combination. Look at what NI has available here, in the S and E series DAQ boards--this should give you a feel for what's out there and what a professionally manufactured piece of equipment is capable of:
    http://sine.ni.com/apps/we/nioc.vp?cid=10955〈=US
    http://sine.ni.com/apps/we/nioc.vp?cid=1038〈=US
    As you noted already, a parellel port is going to be extremely slow for your needs, and likely not only be slow, but also have a pretty fair amount of timing jitter, since the timing of your read calls will be indeterminate. I would definitely recommend you look into som
    e other hardware acquisition option besides your parallel port... it won't get you very far unfortunately, because that isn't what it's really designed for.

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

  • 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

Maybe you are looking for

  • Visualhub start conversion in applescript

    Hi, I have set up an applescript but Im stuck at this point. I have set up a folder action so that when a new file (video) is added to a particular folder it runs this script which opens Visualhub, selects the new item and runs a standard conversion.

  • Question: How to display rating in SURVEY VIEW

    Hi, I've been using Lightroom for years. I love to use the SURVEY mode.  But today, I couldn't see the rating stars under each photo in Survey mode; I only see the flag status.  Now, it's probably something I did, like hitting a shortkey or something

  • Aperture 3 Not Working at all

    I have briefly scanned these post but don't see anyone saying ***. I have just updated to Aperture 3 and my system has crashed several times already and when its not crashing it is virtually unusable. I am on a MacBookPro 2.16 running 10.5.8. I had n

  • Authentication on web directory

    Good day. I must to write a file in a web directory from servlet. I should want to restrict to a specific user the read/write/execute permission. In this mode my servlet not write a file from a servlet (permission denied). FileOutputStream fos = new

  • Can I read the SYS_CONTEXT in REPORTS from Forms ?

    Hi, in a Forms module I set with a stored procedure a SYS_CONTEXT. This module calls a Report included a 'get' SYS_CONTEXT function but without getting this context. I hoped to transfer a where clause from Forms to Reports in the SYS_CONTEXT and cann