Control parallel port (data and control lines)

I need to control the output on the parallel port (LPT1) - Both data and control lines.  Once the data is written (Pins2-9), I then need to toggle the Sprocket signal (PIN1) - on the parallel port. The sprocket signal is also referred to as the Data Strobe Output.
The required method is as follows:
1. Lower the sprocket signal on PIN1
2. Send the data (Pins2-9) and wait
3. Raise the sprocket signal and wait.
4. Repeat.
I am looking for a method to control the data on LPT1 pins 2-9 and then be able to toggle PIN1 - Strobe signal - without the data falling from the other pins. What I have found is that whenever the state is changed on the strobe - the data that was written to Pin2-9 falls to zero. This will not work for my application - the strobe tells the hardware device that the data is ready. If it falls to zero when I toggle the strobe - that will not work.
Regards,
Guy

Hello Adam,
I am familiar with both references.  If you look more closely at the library reference - it allows me to communicate using VISA across the parallel port pins 2-9.  It does not permit direct communication to pin1 (the strobe signal) - property nodes don't allow the strobe to be refereced either (similar to control lines/signals for COM ports).
Worse, I have also located examples using OUT PORT that does enable pin1 to be toggled.  The problem is, when those VIs are used, the data falls from the data pins when the strobe signal is written, even if its value is not changed.  For example, if the strobe is already high, if another high value is passed, the data falls from the data lines.  The other issue, when using VISA, as soon as the data is writen, the strobe signal automatically goes high even though I need a wait before setting the strobe high.  This is in complete contradiction to the second article you referenced which clearly discusses writing data to pins2-9 then taking the strobe high to indicate to the printer that new data is available.  It must be possible since this is the typical handshake.
I am still looking for a more complete answer/solution.
Regards,
Guy

Similar Messages

  • Problems Reading/Writing Parallel Port Data, Status & control Registers Using In Port.vi and Out port.vi

    Hi,
    Can anyone there help me Please with the problem. I am trying to
    communicate with the parallel port using my program which i have
    attached to the message. I am running LabVIEW 7.0 Professional with
    application builder. All the program does is reads and writes to the
    three parallel port registers. It runs FINE!!! in my computer. But when
    i built an executable (see attached) and tried running on a different
    computer (with LabVIEW Runtime engine 7.0 installed) the program does
    not read/write to the registers. The target PC had the parallel port in
    SPP mode just like mine. I can't seem to understand whats going wrong?
    Can anyone please help me if you know the right answer.
    Thanks
    Attachments:
    Programs.zip ‏119 KB

    Hi Guys,
    I too have a problem using "Out Port.vi", but of a diferent kind. I use this VI to control the  Parallel Port which in  turn controls a small circuit. I use only two data pins, DP-2 and DP-4 for this purpouse. I use LV 7.1 Professional Development version in a Windows 2000 operating system. Now, my main problem is that my code runs fine (both is development and .exe forms) in my development computer, but when I try to run the .exe version in  other computers (Windows XP operating system), it asks for a "protocol file" while starting (look at the attached picture).
    Now, I really have no idea what kind of a protocol file it asks for and just click "ok" and proceed to work, the most interesting part is that the code works well as I expected. So, my only problem is that it asks for a protocl file which I want to avoid. As with the application building, I do all that is  required like including the sub VIs (self developed), creating an installer, enabling the port access, and creating a proper .ini fine. I also use the Out Port.vi from the AccessHW library.
    I have my doubts on two fronts,
    1) With the version conflict, since my development computer runs with Windows 2000 and my target computers all run with Windows XP
    2) With the Out Port.vi which further contains a small VI "Output Word to Port.vi" in it and that further contains Call Library Function Node, which might call soem external files, like what my problem is.(look at the attached picture)
    I don't have answers to these questions and may be my problem is in different place, but I would like to hear from anyone who could give me a helping hand. I am in a situation where I could not disclose my code.
    Thanks in advance,
    mohan
    Attachments:
    protocol file.zip ‏153 KB

  • Anybody knows how to control parallel port to generate digital line ?

    All,
         I have found at some website, there are a software can generate corresponding signal (I suppose that is digital line) to driver a relay board, the relay board is 8 channels. which out put is pin 2, pin3, pin 4, pin5, pin 6, pin7, pin8 and pin 9 of parallel port to control it . it is well control, how can it do ?  and I want to simulate it at LV with parallel port too , how can it achieve ? which command, or a simple sample which you provide will be appreciated.
    thanks in advance.

    You forget to search through NI Web site. Here are some links.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CB9CB111EE034080020E74861
    Sergey

  • When printing from a website the date and website line on the printed page is in gibberish

    when i print from a website why are the date and website lines at the top and bottom of the page in gibberish?

    Adjust the print scale: File > Page Setup > "Format & Options": Scale (deselect: "Shrink to fit page width")
    * http://kb.mozillazine.org/Problems_printing_web_pages

  • 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

  • XI Sender file adapter - How to process data and control files.

    Hello all,
       I have the following requirement to fulfill: I am using an FTP client (XI Sender file adapter) to retrieve data from an FTP site. To make sure I am not picking up a data file that is currently being written to, 2 files are actually present on the FTP site (for each data file):
    1. abc.ctrl (control file with no data in it. Indicates that the data file has been completely written).
    2. abc.dat (actual data file).
      I want the file/ftp connector in XI to retrieve the data file (abc.dat) only if the control file (abc.ctrl) is present. After the processing of the data file is finished, both files (.dat and .ctrl) should be deleted.
      Is there an elegant and robust way to accomplish this?
    Thanks for your help.

    Hi Yves,
    in my opinion there's no problem with files currently being written in combination with a polling file adapter because the final file name should be available only when the file is transferred completely. I'm using different file sender adapters very often and never had any problems. After picking up the files I move them to the corresponding archive folders mentioned in the adapters so that a second processing cannot occur.
    Regards
    Ralph

  • Remove a meeting on specific time date and subject line

    Hi
    I have a situation where a meeting organizer is no longer able to update or cancel a meeting she booked. Some how she also became the participant of the meeting and now has lost control of the actual meeting. Not able to edit or send update. I've exhausted
    my efforts in trying to find a solution for this. Doesn't look like there is anyway to get back ownership or transfer it to someone else.
    So my next plan is to remove the meeting from everyone's calendar via a script. So my question is, is there a way to remove a meeting from all participants calendar where the date/time and subject line is known. This is to ensure only that meeting is removed
    from the calendar.
    or if anyone has some other ideas please do share. I need to somehow send notification of cancellation and remove the meeting from outlook and the organizer has no control anymore.
    Thanks

    Hi,
    Per my understanding, you might want to display all the specific documents in a page, they can be filtered by values of a Date and time column.
    A possible solution I will provide is that, we can create custom visual web part to display all these documents. In the code behind, run a query with CAML to retrieved all the
    documents with the specific date and time, then generate a view of hyperlinks that points to these documents.
    In this way, we can combine the filter component with the data display component into one web part, with the help of CAML query and Object Model, it would not be a tough job to
    implement such a solution.
    More information about CAML and Object Model:
    https://msdn.microsoft.com/en-us/library/office/ee536691%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to avoide the control recipe creation step and control recipe complete

    Hi
    in process order procedure has configured in our syayrm ...like
    orde creation,release,control recipe created at time orede release, then order conformation ,order inal conformation, control recipe comlete , order TECH., ...Like ths our order process configured..
    here we not useing any control recipe functions ... and control recipr complte ...so how to remove this step from order process...pls could any one guide inthis issue.
    Rgards
    HGVD

    Dear HGVD,
    Assuming there is only one order type(process order type) is used in both the manufacturing plants,then create plant specific
    production scheduling profile in CORY,for the plant 2000,assign the prod.schd.profile with the default order type and
    do not include the check box for generate control recipe and save the data,but in the same CORY,assign the same order
    type,with including the check box for generate control recipe.
    Check by this way and revert back.
    Regards
    Mangalraj.S

  • Invoice date and Base line date?

    Hi My Dear Friends,
    Pls explain me what is baseline date and Invoice date ?
    Warm Regards,
    Hari

    Invoice date is the date on which the invoice comes into being (ie legally valid). Baseline date is the date from which the due date is calculated.
    Payment terms is applied to the baseline date to calculate the net due date.
    Baseline date is a derived date and can be derived from invoice date or posting date etc
    Regds
    Pooja

  • I have a problem related to the position of the data and controls on the screen - they have moved up under the time bar at the top of the screen and the rotation is locked messed up.

    This problem has only just appeared. When I call up a page in Firefox Home, from either the Tabs or Bookmarks group, the page appears vertically shifted up under the iPod time bar and two overlapping copies of the control bar appear at the bottom. I tried signing out and completely re syncing the data but that didn't fox the problem. Also when I try to rotate the screen, a rotated image appears underneath th original. This doesn't happen with any other app.

    I still don't have any idea what caused the problem. It didn't go away when I re-synced. However, when I completely shut down the iPod (64GB Gen4) by pressing and holding the ON/OFF button until it gave me the red 'slide to turn off' control, and then rebooting it from scratch the problem went away.
    It looks like there was some conflict between the system and the app that is going to be quite difficult to find. If it happens again I'll try to be more observant of the conditions and report more information.

  • How to control parallel pins I/O thru USB converter

    Few years back I developed a 5.1 Labview program and a 3 axis stepper motor control system. It used the parallel port on the PC for communications. The last several laptop PCs I purchased have no parallel ports, at all. So I bought some Manhattan (336581) USB to parallel convert cables. I'm attempting to use NI-VISA 3.0 to control the USB converter therefore a parallel port. I'm having some trouble finding the correct VendorID, ProductId, ManufactName, and Model Name. I did manage to create a .inf and then .pnf files from info I received but Measurement&Automation Explorer doesn't find any Usb devices, much less the one I should have created. Once I do find the device, how do I control the IEEE-1284 pins at the 25 sub-d connector? I have the block diagram of USBTMC.vi but I'm confused as how to use output and input similar to the way I used to use "outport" and "inport"in 5.1 etc. Any suggestions how to control parallel I/O using a USB to Parallel converter. Thanks Robert

    hi steve, i also facing the problem when using the USB to parallel port  to control output. before this i direct use the parallel port (PC) to control, now im adding a usb to parallel port to control the output (LAPTOP). it is using the device that u recommeded can solve the problem ? what is the function node that used in labview ? thanks. sheng
    Attachments:
    usb to parellel port led testing.jpg ‏1619 KB

  • Problem loading variables and controls in Workshop 8.1 (Beta) Palettes

    Hi All,
    I am getting problem in loading variables and control in the Workshop Data and
    Control Palette at times when I open the application. The Workshop interface shows
    the variable at times and does not show up at all on another instance. Let me
    know if anybody else has faced a similar problem or not

    Akshay,
    Please post this question in the Workshop 8.1 Beta Newsgroup.
    weblogic.developer.interest.81beta.workshop
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Akshay Aggarwal" <[email protected]> wrote in message
    news:3e9107da$[email protected]..
    >
    Hi All,
    I am getting problem in loading variables and control in the Workshop Dataand
    Control Palette at times when I open the application. The Workshopinterface shows
    the variable at times and does not show up at all on another instance. Letme
    know if anybody else has faced a similar problem or not

  • Omron (CQM1-CPU4​5-EV1) PLC communicat​ion and control

    hi,
    we have an Omron(CQM1-CPU45-EV1) PLC with RS 232C communication  connected  to instuments for control and monitoring of an aplication.
    Unfortunately  our old pc broke down and now we have to set up thisPLC  with a new labview interface.
    I'm not an experieinced Labview user i would need you help (tutorial) how to communicate the Omron PLC with the labview and how to acquire data and control the application.The task is somehow urgent so i would appreciate advice at your earliest convenience.

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

  • Programming Parallel Port

    Hi all!
    I'm new with java and I would appreciate some help!
    What I'm trying to do is to control an external device, like 8 LEDs, to turn them on and off using parallel port, data lines( pins 1....9 );
    Maybe someone of you guys already had made this and you could give me some tips or some direction to follow.
    What I already know is that I have to set one of the parallel bits to +5V and some of them to 0V in order to simulate that the device(printer) is ok.
    I know that I have to use additional library "comm.jar" but in this package there are no useful methods in order to control data lines.
    Maybe I am missing something!
    Thanks

    Try this one: [http://rxtx.qbang.org]
    It's a library for communicating with the seriell and parallel port.
    Here [http://en.wikipedia.org/wiki/IEEE_1284] you will find some helpful links about how the parallel port works.
    And if you stick to the comm.jar, have a look at ParallelPort.getOutputStream()
    Edited by: yawah on 11.12.2009 00:11

Maybe you are looking for

  • Getting mail on iphone

    for the life of me i can't figure this stuff out. im trying to get my schools which is uta(university of texas in arlington) and i cant figure out how to do it. my email is [email protected] and i look at it through outlook web acess. i just need hel

  • LMS 3.2 on Solaris 10 - New devices and RME archive job

    Hi All, I've created a RME job that archive syncs our devices. When I add new devices to Common Services, which updates RME, will those new devices have their configurations archived by that same RME job, or do I need to create a new job? When the ex

  • WRT54G2 won't get an IP

    Recently my mom started complaining that she couldn't get online wirelessly. At first it was intermittent but in the last two weeks it has gone out completely. She was able to connect tot he router but no internet. When I checked it out I found the f

  • CF Form Textarea

    In my CF form, I use <cfinput name="field_name" size="20" required message="this field is required"> to make a field required. Now I have to have a text area for free form entry. How can I make the textarea required also in CF (use javascript ?) and

  • ESS Country Spesific (PersonData)

    Hello We are using EP 7.0 SP 10 with ESS 600 SP 8. Our problem is that the Personal Data (Adress & Persondata) is not Country Spesific. We have removed some fields for the country group 20. This works fine in the GUI. But when accessing the Portal, a