LPT Port read

Hi,
I am using  the "in port.vi" in labview to check if a printer is hooked to any of  my lpt ports before I send a print command to them. it is working but it freezes every now and then. my lpt port addresses are 0378 (local on mother board), AC00, and B400 ( located on a pci card). I noticed that the data type on the base address inoput of the vi  is u16 wich i need u32 for the base addresses for the lpts on the pci board. does any one know a fix for this.??
thank you
windows XP
labview 8.0

" is there a way i can activate an application every 15ms or so without slowing the whole loop??"
To specifically answer this question, I've attached an image of something
you can try. It's not the best solution, but it's quick and dirty, and
might help 'solve' the problem in the short run.
Message Edited by Novatron on 06-06-2006 03:00 PM
Attachments:
15ms.jpg ‏11 KB

Similar Messages

  • Send 102 bit data through the LPT port??I have to send 102 bit to my interface board using the LPT port, through one of the data line and be able to read data from the input line, I don't know how to realize such a task.Thanks

    Let me describe you the program I have to write:
    I have to send 102 bit serialy using one of the data line of the LPT port to a device and be able to read back data sent from a device register throug one one of the input port pin for instance pin 10 of a DB25, and synchronize the transmission by the PC clock(for write and read). If fact I am using 5 output control(D0...D4) signal from the LPT port, RST, TXD, CLK, CE,TEST, one input data RXD (pin10)
    So the program should work in normal mode (write data, read data), and test mode (use the write p
    rocedure). Since I am quite new in Labview I am little lost and I need some support or exemple that use a way to send more than 32 bit via one data line(in my case 102bit= 8 bit COMMAD(MSB)+88 bit SPI DATA+6 bits CRC(LSB)) and be able to read them back, place them in the register and be able either to monitor or modify them.
    I know that there are plenty of exemple but if I can gain time by being helped it would be great.
    Can you please advise?

    Hi Beni,
    find attached a SPI.vi - minor changed from one of
    my typical SPI's (LabVIEW 7.1). With some simple changes it will fit to your application.
    The only thing you need to do - prepare
    the bits for the input-array.
    If you need some more comments - find one of my email
    adresses in documentation of this vi.
    Regards
    Werner
    Attachments:
    102bit_SPI.zip ‏90 KB

  • LPT port control via a servlet

    I'm not to sure if I am on the right track, but so far I have a device wired into my lpt port (running winXP) and want to basically be able to send power to specific pins (I belive it is capable of 5V). I have looked online and through manuals and have found little information (most deals with reading and writing bits, or getting printer status, etc). I was wondering if anyone could point me in the right direction, I have very little experience writing software that interacts with hardware, I don't even know if windows will let java control the ports at that level or not. Any help would be appreciated. Thanks.

    You can't do it directly from java.
    If you were really desperate to do it you would probably have to look at using JNI and writing some C code.

  • Tecra S3: LPT port - EPP mode not available

    How Can I change LPT port mode to EPP in Toshiba TECRA S3 ?
    In the BIOS settings only ECP and SPP are available, but I have memory programmer that needs to be connected to LPT port working as EPP.
    It doesn't work in ECP or SPP.

    Maybe it's not so simple fact when this facility was implemented in chipset. BIOS is the only limitation.
    There are another tools available for another copmuters (it usually means for another chipset) allowing lpt port mode to be temporarily changed to value not available in BIOS.
    Does anybody have any information about this type of tools for Toshiba ?

  • Problem --serial port reading one character at a time

    Hi Friend,
    I reading the serial port  one character at a time ,  i specified it in the "serial bytes to read" option in serial port read examples.
    The problem is ----------i can able to read  the data.
    but only the first character is reading again and again...and "reading string indicator" in the serial port example shows only the first character sent ..only for a single time.since i am reading continously ----aleast the first character should display as many times i running the program
    (i am running the vi by run continous option..........)..
    please help me ....how to read the character one by one.....
    regards
    rajasekar

    Hi jason...
    I can able to read the serial port by 1 byte or 2 byte or 4 byte as i can specify it in the serial port read bytes option..(in visa serial read)..
    I need to acquire 4 bytes of data and pass it to the Math-script node..and save these 4bytes of data in array (1 row and 4 column)..
    And split this array(just like array-indexing.vi) and processing it each each column separately....
    or suggest some method to achieve my task.....please.
    one more thing the math-script node is placed in a while loop.....in order to read sequence of bytes continously.......
    regards
    rajasekar

  • Windows 7 redirecting LPT ports to Terminal Services is broken compaired to Vista and XP

    Hello forum
    We have encountered an issue with mapping LPT1 ports from any terminal server be it 2003 or 2008, the problem is the same.
    Our XP clients and Vista clients works fine. Seems this issue is only present on Windows 7.
    We have a program that requires printing to be done on the LPT1 port. The Printer connected to the client is driver less, it uses the raw output from the LPT port. So try not to think of it as a normal printer. We do not require drivers to be installed on
    the server or client.
    Our XP and Vista clients works perfectly by using: net use LPT1:
    \\tsclient\lpt1:
    And then printing to the LPT1 port.
    When using Windows 7 clients to print, only 512 bytes are forwarded to the printer and the rest of the job is missing. If we print directly to
    \\tsclient\lpt1: the print job is working and all is forwarded. But our program cannot print to UNC paths.
    So what has changed in between Vista/XP and Windows 7 on the LPT port forwarding subject?
    Our printer is a STAR TSP if you would like to know. The Win 7 Clients prints fine to the printer locally to the LPT port when not connected to the Terminal session.
    Thanks for your time.

    Hello Mobay,
    Here are the conclusion about this situation:
    Symptom:
    The Win7 client could not re-direct LPT port to a local printer when connecting through a terminal server/remote desktop session.
    Cause:
    This is an known product issue of Win7, no QFE available yet.
    Resolution:
    Possible workaround with Windows XP SP3, RDP 6.1 (and Hotfix 972828).
    Win7/Win2k8r2
    Vista/Win2k8
    WinXP/Win2k3
    RDC 5.2
    Succeed to redirect
    RDC 6.1
    Fail to redirect
    Succeed to redirect
    RDC 7.0
    Fail to redirect
    Fail to redirect
    Succeed to redirect
    So it's by design that you can't use LPT port through RDP on Win 7 client machine.
    Best Regards
    Darith Iv
    Core System Analyst
    Microsoft Product Services and Support

  • Problem in executing port reading concept.

    Hi,
    I tried to read a field, using the port reading concept in universal data reader. Even the graph is successful, but the data doesnt flow from the o/p. Help me to come over that.The configuration of the graph is
    <?xml version="1.0" encoding="UTF-8"?>
    <Graph author="123" created="Mon Oct 08 10:06:08 IST 2012" guiVersion="3.2.1" licenseCode="CloverETL Designer single license" licenseType="CloverETL Designer single license" modified="Mon Oct 08 10:06:08 IST 2012" modifiedBy="123" name="Default graph name" revision="1.0" showComponentDetails="false">
    <Global>
    <Dictionary/>
    </Global>
    <Phase number="0">
    <Node enabled="enabled" fileURL="${DATAIN_DIR}/port.csv" guiHeight="80" guiName="UniversalDataReader" guiWidth="148" guiX="159" guiY="184" id="DATA_READER0" type="DATA_READER"/>
    <Node dataPolicy="controlled" enabled="enabled" fileURL="port:$0.field1:discrete" guiHeight="80" guiName="UniversalDataReader" guiWidth="148" guiX="400" guiY="169" id="DATA_READER1" trim="true" type="DATA_READER"/>
    <Node debugFilename="${DATAOUT_DIR}/Trash.csv" debugPrint="true" enabled="enabled" guiHeight="67" guiName="Trash" guiWidth="128" guiX="726" guiY="169" id="TRASH0" type="TRASH"/>
    <Node enabled="enabled" guiHeight="67" guiName="Trash" guiWidth="128" guiX="698" guiY="290" id="TRASH1" type="TRASH"/>
    <Edge debugMode="true" fromNode="DATA_READER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge0" inPort="Port 0 (input)" metadata="Metadata0" outPort="Port 0 (output)" toNode="DATA_READER1:0"/>
    <Edge debugMode="true" fromNode="DATA_READER1:0" guiBendpoints="" guiRouter="Manhattan" id="Edge1" inPort="Port 0 (in)" metadata="Metadata1" outPort="Port 0 (output)" toNode="TRASH0:0"/>
    <Edge debugMode="true" fromNode="DATA_READER1:1" guiBendpoints="" guiRouter="Manhattan" id="Edge2" inPort="Port 0 (in)" metadata="Metadata2" outPort="Port 1 (logs)" toNode="TRASH1:0"/>
    </Phase>
    </Graph>
    Thanks in advance.

    Dan,
    I have posted the graph file and data in this reply. kindly take it for reference.
    data file: porst.csv contains
    Name
    Laxmana
    Bhaskar
    saranya
    suganya
    graph file:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <Graph author="123" created="Fri Oct 05 09:39:11 IST 2012" guiVersion="3.2.1" id="1349422261786" licenseCode="CLP1DENDEC48373255BY" licenseType="CloverETL Designer single license" modified="Thu Oct 11 15:14:38 IST 2012" modifiedBy="123" name="lastport" revision="1.18" showComponentDetails="true">
    <Global>
    <Metadata id="Metadata2" previewAttachmentCharset="ISO-8859-1">
    <Record fieldDelimiter="|" name="error" previewAttachmentCharset="ISO-8859-1" recordDelimiter="\r\n" skipSourceRows="1" type="delimited">
    <Field name="recordID" type="integer"/>
    <Field name="fieldID" type="integer"/>
    <Field name="data" type="string"/>
    <Field name="error" type="string"/>
    </Record>
    </Metadata>
    <Metadata id="Metadata1" previewAttachmentCharset="ISO-8859-1">
    <Record fieldDelimiter="|" name="out" previewAttachmentCharset="ISO-8859-1" recordDelimiter="\r\n" skipSourceRows="0" type="delimited">
    <Field name="field1" type="string"/>
    </Record>
    </Metadata>
    <Metadata id="Metadata0" previewAttachmentCharset="ISO-8859-1">
    <Record fieldDelimiter="|" name="recordName1" previewAttachmentCharset="ISO-8859-1" recordDelimiter="\r\n" skipSourceRows="1" type="delimited">
    <Field name="field1" type="string"/>
    </Record>
    </Metadata>
    <Property id="GraphParameter0" name="CONN_DIR" value="${PROJECT}/conn"/>
    <Property id="GraphParameter1" name="SEQ_DIR" value="${PROJECT}/seq"/>
    <Property id="GraphParameter2" name="DATAOUT_DIR" value="${PROJECT}/data-out"/>
    <Property id="GraphParameter3" name="GRAPH_DIR" value="${PROJECT}/graph"/>
    <Property id="GraphParameter4" name="PROJECT" value="."/>
    <Property id="GraphParameter5" name="TRANS_DIR" value="${PROJECT}/trans"/>
    <Property id="GraphParameter6" name="DATATMP_DIR" value="${PROJECT}/data-tmp"/>
    <Property id="GraphParameter7" name="META_DIR" value="${PROJECT}/meta"/>
    <Property id="GraphParameter8" name="DATAIN_DIR" value="${PROJECT}/data-in"/>
    <Property id="GraphParameter9" name="LOOKUP_DIR" value="${PROJECT}/lookup"/>
    <Dictionary/>
    </Global>
    <Phase number="0">
    <Node enabled="enabled" fileURL="${DATAIN_DIR}/port.csv" guiHeight="80" guiName="UniversalDataReader" guiWidth="148" guiX="154" guiY="138" id="DATA_READER0" type="DATA_READER"/>
    <Node dataPolicy="controlled" enabled="enabled" fileURL="port:$0.field1:discrete" guiHeight="80" guiName="UniversalDataReader" guiWidth="148" guiX="403" guiY="156" id="DATA_READER1" skipSourceRows="0" trim="true" type="DATA_READER"/>
    <Node debugFilename="${DATAOUT_DIR}/Trash.csv" debugPrint="true" enabled="enabled" guiHeight="67" guiName="Trash" guiWidth="128" guiX="726" guiY="169" id="TRASH0" type="TRASH"/>
    <Node enabled="enabled" guiHeight="67" guiName="Trash" guiWidth="128" guiX="698" guiY="290" id="TRASH1" type="TRASH"/>
    <Edge debugMode="true" fromNode="DATA_READER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge0" inPort="Port 0 (input)" metadata="Metadata0" outPort="Port 0 (output)" toNode="DATA_READER1:0"/>
    <Edge debugMode="true" fromNode="DATA_READER1:0" guiBendpoints="" guiRouter="Manhattan" id="Edge1" inPort="Port 0 (in)" metadata="Metadata1" outPort="Port 0 (output)" toNode="TRASH0:0"/>
    <Edge debugMode="true" fromNode="DATA_READER1:1" guiBendpoints="" guiRouter="Manhattan" id="Edge2" inPort="Port 0 (in)" metadata="Metadata2" outPort="Port 1 (logs)" toNode="TRASH1:0"/>
    </Phase>
    </Graph>
    Thanks

  • Hot to install HP DeskJet 710C (LPT Port) on Solaris 10?

    Hi.
    I'm trying to install HP DeskJet 710C printer on LPT port.
    There is no such model in the list of Printer Administrator.
    I tryed few models on /dev/lp1 and /dev/ecpp0 but with all I get message "out of service".
    Printer is fully functional.
    Is there solution to make this printer working on Solaris 10?

    Hello Everyone,
    I know this is an old post, but this might be of some interest to folks trying to set up a local printer under Solaris 10 and the Developer edition. There is a bug that prevents the ecpp driver_alias from being created under /etc/driver_alias. The workaround to get the driver_alias created is as follows. As root (su -) in terminal
    update_drv -a -i "lp" ecpp
    reboot the machine and you'll have the driver alias for ecpp present in /etc/driver_alias along with an entry in the print manger under Printer Port for /dev/printers/0
    Here's a link describing the bug:
    http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6374608
    Message was edited by:
    mrmdls as I forgot the " along with adding the link

  • Port read access problems under WinNT

    I'm using LabWindows/CVI for accessing a self made ISA-bus interface card. Each port read access fails, though the correct data is visible at the ISA-bus. Each port read (using inp()) returns 0xFE.
    - operating system is WinNT 4.0
    - the low-level support driver is loaded at startup
    - write port access (using outp()) works
    Can somebody help me in this topic?
    Thanks,
    Markus

    Hi Markus,
    I collected some information on this problem. Please see if it works :
    1. Try running the example program in this link and see if it works fine.
    http://ae.natinst.com/devzone/explprog.nsf/41ee12ddba6c766a8625684700691463/4066173b8d98118a86256a79...
    http://ae.natinst.com/devzone/explprog.nsf/41ee12ddba6c766a8625684700691463/78e7f3ac0de597fd86256aa2...
    2. Please take a look at this discussions forum issue which might help you :
    ref = "http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000...

  • LPT port access

    I am in a project in which i try to send signal via LPT port and through which control the speed of a dc motor
    I want know...if it is possible to do with java..& how?????
    plz..reply. : )

    Take a look at
    https://msdn.microsoft.com/en-us/library/windows/hardware/ff543926(v=vs.85).aspx  Basically you are going to need a simple device driver to take control of the port from the system supplied driver. 
    Think carefully about your design, parallel ports are going away, I did a driver like the one above as part of a package for a client, the other half of the package was support for a USB parallel port, so they could support their device even if the legacy
    port was not present.
    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

  • LPT ports found ???

    Hi there!
    I just want to do a simple task: detect serial ports! That's the code I'm using:
              String driverName = "com.sun.comm.Win32Driver";
              try{
                   System.out.println("trying to load driver");
                   CommDriver commdriver =
                        (CommDriver)Class.forName(driverName).newInstance( );
                        commdriver.initialize();
              catch (Exception e2)
                   System.out.println("driver not loaded");
                   e2.printStackTrace();
              Enumeration ports = CommPortIdentifier.getPortIdentifiers();
              if (ports != null)
                while (ports.hasMoreElements())
                     CommPortIdentifier portID = (CommPortIdentifier) ports
                    .nextElement();
                     System.out.println("found "+portID.getName());
                }The problem is that this code only detects LPT ports but I don't have any LPT ports in my laptop. Isn't it interesting?
    Do anyone has any idea about what could be the problem?
    I would apreciate any comments :)
    Cheers
    Filipe

    You probably don't have the javax.comm.properties file in the right place.
    See Java Comm FAQ
    http://java.sun.com/products/javacomm/reference/faqs/index.html
    And you either
    a) do have an LPT port under some hidden panel of your laptop or
    b) it's some form of virtual parallel port, maybe a bluetooth port in disguise.
    regards,
    Owen

  • How do I use serial port read and show text, but not have it scroll off screen?

    I am new-ish/returning amateur user of Labview and I am trying to edit the example VI "Advanced serial write and read VI" that is part of dev suite 2012.  I need to use the string box to show ALL text received from serial port, always appending and only rolls off screen when more real data arrives at serial port. 
    What is actually happening is as more bytes (or no bytes AT ALL!) arrive during read time, current text rolls off the string box.  Even when 0 bytes are received, screen is blanked out.  I am not very familiar with functions locations and even worse at understanding obscure references to functions, so please keep replies very basic so I can follow.
    Just to be clear, I need the string window to behave like hyperterm does-always shows data and it is not pushed out of window arbitrarily.
    Thanks,
    Steve  
    Solved!
    Go to Solution.

    OK- lets start back at the beginning.  I have a few questions...
    WHy does incoming txt get placed at top of txt box and then scroll up?  why would it make more sense to input at the bottom and scroll toward the top.  I have created this huge txt box that appears to be impossible to use.
    I have attached example of txt boxes I have tried, and pic of VI I have edited.  Bad marks for uglyness....
    Attachments:
    Capture_VI.JPG ‏117 KB
    Capture_VI2.JPG ‏133 KB

  • If you're having problems with USB ports, read on...

    i'm reading that alot of people on here are having problems with their front (or top) usb on their cases not working with their k7n2 boards.  i have come across the correct solution to this problem in one of the posts (after having solved the problem on my own), however noone has posted the solution by itself on this forum so everyone can easily see it.
    The trick is to make sure that pin 10 (at least on a K7n2 delta-L), the pin labeled USBOC (USB Open Connection), is wired to NOTHING.  If the connector to your front usb ports is fused into one giant connector and it HAS a wire that will connect to this pin (labeled GND2 or Shield or something), CUT THAT WIRE.  Pin 10 on JUSB2 (at least on a K7n2 delta-L) must be OPEN.  If this pin IS connected to something (even if it is only GND), the motherboard will think something is connected to this usb port and you will get many unknown devices listed in your windows device manager and the rest of your usb ports may or may not work.
    As a general rule of thumb, if a pin on a motherboard is labeled OC for "Open Connection" and you wire something to it, you're asking for trouble.
    If you cannot understand this you should not be attempting to wire a motherboard in the first place. 
    Here is a picture to go along with this discussion.  If you cannot see this picture, I am sorry for it has probably been removed from the place I posted it online as I cannot attach pictures physically to this post.  If someone here has a way to permanently host this picture and post it to this thread permanently, that would be wonderful.
    In summary: all usb ports/headers have only four pins associated with it (VCC, USB+, USB-, GND).  If the connector (whether it's one big connector or individual sockets) to your front/top usb port has 5 sockets, don't connect the 5th socket to anything.  That goes for any case/motherboard combination.  This is what i'm talking about above.  I have no idea why motherboard and case manufacturers have a 5th pin involved in any way on either the pin or socket side.  It is not used for usb.
    EDIT:  I just noticed this has already been discussed in the trouble shooting guide in the above sticky post.  oh well, now we have a pretty picture to go along with it (i hope).

    :-D)Hello guys,
    as promised I come back here to give the results of my tests... and I have to say that you saved my day (even if I had to open back 60 secured cases).
    So the solution was the right one, when I unplugged the "ground" end of the front USB connector cable from the USBOC pin, those connectors finally worked as expected with USB 2.0 compliant devices.
    So thank you really much for this very usefull information !
    And even if maybe it's not only MSI's fault, I still believe that more information on those connectors in the user's manual would be really usefull (who knows what USBOC means except a few people and who could imagine that pluggin on it a "ground" cable would make it unserviceable ??). And who ever saw a user's manual bundled with a case ?? it's pretty unusual  
    Hope that someone at MSI will read that and take it into consideration, not for me (because now I'm aware) but for the thousands other consumers that will feel a little bit "annoyed" with that issue. I don't think that adding one line about it in user's manuals would be so much expensive  
    But I'm quite lucky myself... being able to understand and write english (even if I still have some progress to do  ) gave me the possibility to find the solution... but a lot of my french fellows can't do that... and there's no french forum here... How can they do ? They rely on user's manual
    Best regards,
    Nicolas

  • Will 800 MHZ Quicksilver USB port read a 2.0 USB Lacie Hard Drive?

    Hello everyone
    I have an 800 MHZ Quicksilver, and was wondering if it can read (adequately), either a USB 2.0, or Fire Wire conected Lacie external Hard Drive?
    I'm going to install the 1.2 Upgrade Processor:
    http://eshop.macsales.com/item/Seagate/ST3400620AS/
    But I don't think this upgrade effects the speed of the USB Ports?
    I also installed a Multiport Fire Wire PCI card, but through this card, I get latency problems in regard to audio. It's not as fast as the built-in Fire Wire Port.
    Thanx
    Mike

    Hello Allan
    Thanx for the tip
    Do you have the same system that I have?
    Is this your card:
    http://www.sonnettech.com/product/allegro_usb2.html
    If so, it seems to actually make up for (adjust or boost), the system's USB speed capability
    And maybe I should pick up one of these too?
    http://store1.sonnettech.com/productinfo.php?cPath=51_53&productsid=54&osCsid=e31aa1712e517d38996a3bcd302d6186
    Thanx
    Mike

  • What do i do if air port reads self -assigned IP address

    I needed to re connect my router and air port express, when I did I can't get wi-fi any where.
    the system preferences reads self assigned IP
    How do I get this to work again?

    Reset the Express to factory and redo the setup.
    If you have issues please give some more details of how the express connects to the router.. ??
    What is the router?

Maybe you are looking for

  • How to move ALL musical content from old PC to new Mac

    Sorry if this has been asked a million times before, but since iTunes has been updated and processes get changed/revamped, etc., please let me know your opinion on this: I am getting my first-ever Mac. I want to move my approximately 2,600 songs from

  • How do I remove the Output Tray of my HP OfficeJet Pro 8620 e-All-in-One Printer

    I cannot remove the Output Tray.  I do some printing two-sided (one in color, the other b&w).  Removing the Main Input Tray to place the paper for Side 2 is time-consuming.  It would be much easier to take the just-printed Side 1 as it's completed, t

  • Sum array elements not working

    I am trying to output the average % standard deviation per point for a series of data sets.  To do this I want to use the sum array elements function.  The program I have written should work I am pretty sure, but when I watch data flow through it, 10

  • Fixing unstable performance on macbook pro

    Hi team, I have a macbook pro bought nov 2011 It has run fine but recently I have been using it constantly for my new job running Adobe software like Flash, premiere pro and after effects (mainly flash) cs5.5 intel i7 2.4ghtz quad core with 8Gb ram,

  • Image quality on @nywhere master

    1.How cand I improve the image quality on this tuner? It looks worse than my ex tuner (wayjet) on the same os(xp) and system(radeon7000,p41800,256ddr). Where is the Invincible video quality supported by Silicon Tuner? 2.What can I do to see both cabl