PC parallel port access with XP

I recently got In Port and Out Port working on XP.
I searched the ni site for AccessHW. The CVI Run Time Engine has to be
version 5.510 or earlier. I checked the version number of one file, i.e.
cvirte.dll to verify.
I directed the installer to install accesshw to the directory where the new
In Port and Out Port and the rest of the new parallel port .vis were going
to be, i.e. Labview\Labview 6\vi.lib\platform.
I downloaded parallel.zip from ni.com and moved the parallelnt.llb file to
this same directory. Parallelnt.llb has a number of parallel port vis, not
just replacements for In Port and Out Port. I replaced the In Port.vi and
Out Port.vis in the diagrams I was trying to make work with the new .vis.
So, on this XP machine, with
a monitor program, parmon.exe, running to
display the bits on the parallel port, Labview can be seen to be using the
new parallel port .vis, and, bits on the port are changing.

I wonder if there's a reason why there's a javax.comm 3 series for *nix, but not for windows. Hmmm.                                                                                                                                                                                                       

Similar Messages

  • Parallel port read with a CIN

    I need to read the status of a pin of the parallel port from within a Labview CIN.
    I intend to use this as a trigger for multiple camera acquisitions, and going back to Labview to read this value would not be fast enough.
    I know that under windows XP I need to "unlock" access to this port. I used a set of functions called "winio" to do this. This works fine from a regular C program, but won't work from within a CIN. Does Labview lock the use of the parallel port in any way?
    Does anyone know what I should do ?
    Thanks.

    Tchill wrote:
    Does Labview lock the use of the parallel port in any way?
    Does anyone know what I should do ?
    Thanks.
    Hi Tchill,
    I can't remember Win-XP causing trouble with the parallel port. But I do know about the security feature which does not allow to change the parallel port IO addressing (that's another topic )
    If you are running LV7.0, you can do a search example on parallel port. There are a couple of very useful vi's that you can run right away and it should get you going.
    You can also check this thread.
    or more directly into the developer zone for a tutorial by clicking HERE.
    JLV

  • Parallel Port access using Java

    hello guys.. Please Solve my Problem..
    I have to access motor through pc using Parallel Port. I want to know how to program in java to access Parallel Port. So How can i code to access the any Port of Parallel Port. Please Guide me in this..
    I have tried using parport (code given below )---------------->but it gives error hs_err_pid2172.log (error explanation given at last ). Please tell me what is the problem or if u have any other alternative to access  Parallel Port
    //===============================================================================
    //code :
    package parport;
    public class ParallelPort
    private int portBase;
    public ParallelPort(int portBase)
    this.portBase = portBase;
    public int read()
    return ParallelPort.readOneByte(this.portBase+1);
    public void write(int oneByte)
    ParallelPort.writeOneByte(this.portBase, oneByte);
    public static native int readOneByte(int address);
    public static native void writeOneByte(int address, int oneByte);
    static
    System.loadLibrary("parport");
    import parport.ParallelPort;
    class SimpleIO {
    public static void main ( String []args )
    ParallelPort lpt1 = new ParallelPort(0x378);
    lpt1.write(240);
    ===================================================================================
    ERROR file : hs_err_pid2172.log
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_PRIV_INSTRUCTION (0xc0000096) at pc=0x1000107b, pid=2172, tid=2108
    # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C [parport.dll+0x107b]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    --------------- T H R E A D ---------------
    Current thread (0x02b5c000): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2108, stack(0x02fd0000,0x03020000)]
    siginfo: ExceptionCode=0xc0000096
    Registers:
    EAX=0x000000ff, EBX=0x26a28380, ECX=0x000000ff, EDX=0x00000378
    ESP=0x0301f2f4, EBP=0x0301f308, ESI=0x26a28380, EDI=0x02b5c000
    EIP=0x1000107b, EFLAGS=0x00010246
    Top of Stack: (sp=0x0301f2f4)
    0x0301f2f4: 10001041 10000378 000000ff 000000ff
    0x0301f304: 02b50378 0301f34c 00989c91 02b5c0f4
    0x0301f314: 0301f354 00000378 000000ff 02b5c6f4
    0x0301f324: 02b5c6f4 02b5c6e4 0301f32c 26a28380
    0x0301f334: 0301f360 26a28618 00000000 26a28380
    0x0301f344: 00000000 0301f35c 0301f384 00982cb1
    0x0301f354: 26a285b8 00988099 000000ff 00000378
    0x0301f364: 0301f364 26a28255 0301f390 26a28618
    Instructions: (pc=0x1000107b)
    0x1000106b: cc cc cc cc cc 33 c0 66 8b 54 24 04 8a 44 24 08
    0x1000107b: ee c3 66 8b 54 24 04 66 8b 44 24 08 66 ef c3 66
    Stack: [0x02fd0000,0x03020000], sp=0x0301f2f4, free space=316k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [parport.dll+0x107b]
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::StubRoutines (1)
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::StubRoutines (1)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x00295800 JavaThread "DestroyJavaVM" [_thread_blocked, id=2164, stack(0x00870000,0x008c0000)]
    =>0x02b5c000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2108, stack(0x02fd0000,0x03020000)]
    0x02b5ac00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3640, stack(0x02f30000,0x02f80000)]
    0x02b59c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=2204, stack(0x02ee0000,0x02f30000)]
    0x02b59000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3740, stack(0x02e90000,0x02ee0000)]
    0x02addc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=372, stack(0x02d90000,0x02de0000)]
    0x02adb400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=608, stack(0x02d40000,0x02d90000)]
    0x02ad6c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=3920, stack(0x02cf0000,0x02d40000)]
    0x02ad6000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=808, stack(0x02ca0000,0x02cf0000)]
    0x02ad1800 JavaThread "Finalizer" daemon [_thread_blocked, id=1736, stack(0x02c50000,0x02ca0000)]
    0x02acd000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2728, stack(0x02c00000,0x02c50000)]
    Other Threads:
    0x02acbc00 VMThread [stack: 0x02bb0000,0x02c00000] [id=624]
    0x02ae7800 WatcherThread [stack: 0x02de0000,0x02e30000] [id=580]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 960K, used 262K [0x229e0000, 0x22ae0000, 0x22ec0000)
    eden space 896K, 22% used [0x229e0000, 0x22a11830, 0x22ac0000)
    from space 64K, 100% used [0x22ad0000, 0x22ae0000, 0x22ae0000)
    to space 64K, 0% used [0x22ac0000, 0x22ac0000, 0x22ad0000)
    tenured generation total 4096K, used 344K [0x22ec0000, 0x232c0000, 0x269e0000)
    the space 4096K, 8% used [0x22ec0000, 0x22f161a8, 0x22f16200, 0x232c0000)
    compacting perm gen total 12288K, used 289K [0x269e0000, 0x275e0000, 0x2a9e0000)
    the space 12288K, 2% used [0x269e0000, 0x26a286b0, 0x26a28800, 0x275e0000)
    ro space 8192K, 66% used [0x2a9e0000, 0x2af30f10, 0x2af31000, 0x2b1e0000)
    rw space 12288K, 52% used [0x2b1e0000, 0x2b8306d0, 0x2b830800, 0x2bde0000)
    Dynamic libraries:
    0x00400000 - 0x00423000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\java.exe
    0x7c900000 - 0x7c9b0000 G:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000 G:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000 G:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000 G:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000 G:\WINDOWS\system32\Secur32.dll
    0x7c340000 - 0x7c396000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\msvcr71.dll
    0x6d870000 - 0x6dac0000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\client\jvm.dll
    0x7e410000 - 0x7e4a0000 G:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000 G:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000 G:\WINDOWS\system32\WINMM.dll
    0x76390000 - 0x763ad000 G:\WINDOWS\system32\IMM32.DLL
    0x6d710000 - 0x6d723000 G:\PROGRA~1\KASPER~1\KASPER~1\mzvkbd.dll
    0x76bf0000 - 0x76bfb000 G:\WINDOWS\system32\PSAPI.DLL
    0x6d730000 - 0x6d743000 G:\PROGRA~1\KASPER~1\KASPER~1\mzvkbd3.dll
    0x6d020000 - 0x6d035000 G:\PROGRA~1\KASPER~1\KASPER~1\adialhk.dll
    0x77f60000 - 0x77fd6000 G:\WINDOWS\system32\SHLWAPI.dll
    0x77c10000 - 0x77c68000 G:\WINDOWS\system32\msvcrt.dll
    0x6d4c0000 - 0x6d4c6000 G:\PROGRA~1\KASPER~1\KASPER~1\kloehk.dll
    0x6d320000 - 0x6d328000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\hpi.dll
    0x6d820000 - 0x6d82c000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\verify.dll
    0x6d3c0000 - 0x6d3df000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\java.dll
    0x6d860000 - 0x6d86f000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\zip.dll
    0x6d0b0000 - 0x6d1de000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\awt.dll
    0x73000000 - 0x73026000 G:\WINDOWS\system32\WINSPOOL.DRV
    0x774e0000 - 0x7761d000 G:\WINDOWS\system32\ole32.dll
    0x5ad70000 - 0x5ada8000 G:\WINDOWS\system32\uxtheme.dll
    0x73760000 - 0x737a9000 G:\WINDOWS\system32\ddraw.dll
    0x73bc0000 - 0x73bc6000 G:\WINDOWS\system32\DCIMAN32.dll
    0x74720000 - 0x7476b000 G:\WINDOWS\system32\MSCTF.dll
    0x755c0000 - 0x755ee000 G:\WINDOWS\system32\msctfime.ime
    0x6d2c0000 - 0x6d313000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\fontmanager.dll
    0x7c9c0000 - 0x7d1d6000 G:\WINDOWS\system32\shell32.dll
    0x773d0000 - 0x774d3000 G:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x5d090000 - 0x5d12a000 G:\WINDOWS\system32\comctl32.dll
    0x6d620000 - 0x6d633000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000 G:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000 G:\WINDOWS\system32\WS2HELP.dll
    0x6d640000 - 0x6d649000 G:\Program Files\Java\jdk1.6.0_07\jre\bin\nio.dll
    0x77120000 - 0x771ab000 G:\WINDOWS\system32\OLEAUT32.DLL
    0x10000000 - 0x1000b000 G:\Program Files\Java\jdk1.6.0_07\bin\parport.dll
    VM Arguments:
    java_command: parport.NewJFrame
    Launcher Type: SUN_STANDARD
    Environment Variables:
    CLASSPATH=G:\Program Files\Java\jdk1.6.0_07\bin;G:\java\classes
    PATH=G:\Program Files\PC Connectivity Solution\;G:\Program Files\Java\jdk1.5.0_07\bin;G:\WINDOWS\system32;G:\WINDOWS;G:\WINDOWS\System32\Wbem;G:\Program Files\K-Lite Codec Pack\QuickTime\QTSystem\;G:\Program Files\Java\jdk1.6.0_07\bin;G:\Program Files\Microsoft SQL Server\90\Tools\binn\;G:\Program Files\MATLAB\R2007b\bin;G:\Program Files\MATLAB\R2007b\bin\win32
    USERNAME=shankar
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 7, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (2 cores per cpu, 1 threads per core) family 15 model 4 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3
    Memory: 4k page, physical 457196k(30972k free), swap 1074312k(241668k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b23) for windows-x86 JRE (1.6.0_07-b06), built on Jun 10 2008 01:14:11 by "java_re" with MS VC++ 7.1
    time: Thu Oct 09 13:47:18 2008
    elapsed time: 7 seconds

    I have same problem...
    No one more have solve this?
    I alread have tried use RXTX library..
    but I have:
    java.io.IOException: The device is not connected.
    I think that pass-motor don't have correct response for pararell protocol (I need use it with direct write, no ack signal, no read, etc)

  • Parallel port access problem

    Hi all!
    I'm trying to communicate with parallel port using the commapi version 2. Unfortunately, the api doesn't accept any other mode than SPP mode that is read-only. When I try to change the parallel port mode, I got an UnsupportedCommOperationException. I'm working with windows xp.
    Does anybody have an idea?
    Thanks!
    Thiago

    I have same problem...
    No one more have solve this?
    I alread have tried use RXTX library..
    but I have:
    java.io.IOException: The device is not connected.
    I think that pass-motor don't have correct response for pararell protocol (I need use it with direct write, no ack signal, no read, etc)

  • Parallel port updating with labview

    I have a project to do that I will need to control using the parallel port. The problem is that I will need to use more than one pin at a time. An example is, when I press button 1, data pin1 and data pin3 will send a signal, and when I press button 2, data pin2 and data pin4 will send s signal and data pin1 and 3 will stop.
    I tried doing that but stopped at the programming stage.
    I have attached the file I've just did, and I would be most grateful if you kindly pointed me on how to configure this problem.
    note: am using win2000 and the parallel port is working fine and i've tried controlling things with it, to make the question more obvious, how could i control the 8 pins and update them as i like. i've read some articles
    and answers but didn't understand well since am new to labview
    Best regards,
    Attachments:
    semifinaltest.vi ‏39 KB

    Hi,
    find your vi with working parallel port (values should change). You have made a mistake - do not toggle byte/word, the paraport does not support 16bit. In addition I have attached a radio-button selection-vi; this should give an idea, how to select one of xx buttons; maybe the event structure could do the same job for your case. Unfortunately I don't have the time to deliver a complete solution for you....
    Hope this helps already. If you have further questions about paraport - mail simply to my .web-address
    You will find it by double-clicking on wha@atmel
    regards
    wha
    Attachments:
    semifinaltest.llb ‏46 KB
    Simulating_Radio_Buttons.llb ‏47 KB

  • RXTX Parallel port communication with Pin Printer

    I have successfully installed and configured RXTX-2.0-7pre1 on Linux platform.
    2 printers, one Laser jet printer connected to the Serial port and the other Pin Printer connected to the Parallel port.
    I can print my files out successfully with RXTX on both my 2 printers. But, there is some problem with my Pin Printer performance. The print job is a little slow and the printing is word by word output.
    While the Laser printer received the whole string of my RXTX output and printed them out asap.
    RXTX read my data and write them to the Parallel/Serial port directly, so, for my laser jet printer, it buffered the RXTX output data and processed them all in one. No problem, laser printer works well. But to the Pin Printer, it got the RXTX output and printed them out with no buffer. I am not authorized to deal with the Pin Printer device driver.
    So, my question is that, is there someone knows how to resolve this problem on RXTX side? That is to say, how to modify the source code of RXTX and customize it?
    I wanna know how to create buffer in RXTX, for example, buffering a whole string line and then sending them to the Parallel port. Then, It supposed to be that the Pin Printer will receive once a whole line output and printing line by line in the paper! Not the problemly slowly word by word output!
    Thanks a lot!

    Simple metrics from google should suffice the SUN team from understand the need/huge requirement for supporting Serial and parallel port programming in windows. Platforms would always change and the team at SUN should remain commited in supporting new platforms.

  • Help needed urgent please ( parallel port access in linux)

    hi all, i am trying to read and write data to /from the parallel port , i am running IBM j9 vm on linux.under /dev there are lp0..lp3 parport0..parport3, and port devices , i dont know which one to use , i have tried all , they all return with an ioexception saying "cannot find the file" except for port device which does not generate any error but it does not return what i have written on it ,
    any help would be much appreciated.
    i am using fileoutputstream and printwriter calsses .
    i dont want to use javax.comm api cause i think its incompatible with ibms visual age micro edition ( the one i am using ) so i would prefer something that works with my IDE .
    thanks
    yahya
    [email protected]

    However, there is an on-going OpenSource version called "RXTX" (http://jarvi.ezlink.com/rxtx/) that works quite well. Be sure to read all the documentation that comes with it, as you'll need to set some permissions on the ports you want to use.

  • Push button signal to parallel port to trigger a process

    I just need to connect a push button to the parallel port to set it as a trigger signal for a process.
    When push button is pressed, labview executes a process.
    Kindly help me how to do this, the wiring please
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.

    Data Lines to be used as inputsSome parallel ports can be configured to use the data lines as inputs. It depends a great deal on the way the manufacturer designed the parallel port. With some models the data lines can be read the same way we read the control lines, by driving them to high logic so they will take on the value of an external signal. However, most parallel ports require that you set the direction bit for input. This is bit 5 in the Control register (base+2). If the port is capable of it, setting the direction bit high has the effect of making the lines tri-state so it can be driven externally. Sometimes it is also necessary to toggle bit 6 high or low. However, it should be noted that some manufacturers actually lock these bits so that software cannot change them. An example is shown below in Figure 7.
    To test whether your data lines can be used for input, try the following:
    Set bit 5 of the control register high (at base address+2).
    With nothing connected to the port, write a couple of values to the data port, and read each back after you write it.
    If the reads DON'T match the writes, your port is probably bidirectional. Setting C5 disabled the data outputs and you're reading the open inputs of the data-port buffer. If the reads DO match the writes, your port isn't bidirectional. The data outputs are still enabled, you're reading back what you wrote, and you won't be able to read external signals. If it is possible to use your data lines for input, then you just need to set control register bit 5 high and read from the value of the data lines at the base address.

  • Parallel port under linux

    could anybody help a linux-labview beginner?
    i'm trying to write to my parallel port. but labview is obviousely not set
    up for this. does anywone happen to have a vi which can do that?
    best of regards
    michael h. fischer
    ============================================
    cell: +43 664 1254415
    fax: +34 664 1265930
    icq: #61578912
    vienna university
    institute of geology
    geochronology laboratories
    althanstrasse 14 / 2a482
    a - 1090 vienna (austria)
    web: www.univie.ac.at/geologie/fischer/
    wap: www.univie.ac.at/geochron/wap/
    ============================================

    "michael h. fischer" writes:
    > maybe i didn't comunicate here.
    > i don't intend to print anything out but i want to set each pin of the port
    > hi or low. i'm trying to turn some electrical relay-switches on and off.
    >
    > thanks anyway, all these hints are useful to me
    Michael,
    So using an true ASCII printer or dircetly /dev/lpx is the easiest
    solution. Just "print" the ASCII charakter representing the bits to
    set.
    Johannes Nieß
    >
    > "Johannes Niess" wrote in message
    > news:[email protected]..
    > > "michael h. fischer" writes:
    > >
    > > > could anybody help a linux-labview beginner?
    > > > i'm trying to write to my parallel port. bu
    t labview is obviousely not
    > set
    > > > up for this. does anywone happen to have a vi which can do that?
    > >
    > > Michael,
    > >
    > > I'm not sure how you adress the parallel port.
    > >
    > > Writing directly to an I/O port is not allowed for security
    > > reasons. There are VI's to do the required system calls.
    > >
    > > You might be able to use the (old) serial VI's with a high serial port
    > > number. You can look up the port number on a LV version for Windows.
    > >
    > > I'd use a completely different strategy: VISA can address parallel
    > > ports. With Windows you just use ASRL10. You might need some tweaking
    > > of the VISA preferences files to do it.
    > >
    > > Printing data to a parallel port should be done with the tools
    > > designed for it: System Exec: lpr file.txt
    > >
    > > Does someone have a summary of the options for reading the parallel
    > > port and setting control lines via the described methods?
    > >
    > > Johannes Nieß

  • Parallel port programming for a Sun Ultra 5 running Solaris 8

    Hi I'm trying to look for information about reading/writing to the parallel port of a Sun Ultra 5 running Solaris 8. I'd just like to see some basic programs written in C, nothing fancy, just reading and wrting to the port, getting the port address etc. toggling the lines.
    I've tried searching for this information and there is plenty of information about PC parallel port programming with windows or Linux. But there seems to be little for Sun's
    I've tried doing 'man ecpp' but that doesn't really give any clear example. What I need is an idiots guide.
    I've tried searching this Forum and I see that other people have asked the same question before but no one has replied to them. Why is this?
    Thanks if you can help.
    fishman.

    The key is gettting the port into diag mode. Here's a quickly little example that turns all the data pins on and then turns them off:
    #include <sys/types.h>
    #include <sys/conf.h>
    #include <sys/stat.h>
    #include <unistd.h>
    #include <stropts.h>
    #include <fcntl.h>
    #include <stdio.h>
    #include <sys/ecppio.h>
    int fd = 0;
    // ecpp structures
    ecpp_transfer_parms etp;
    ecpp_regs eregs;
    // returns -1 if error otherwise returns fd
    int openoutput()
    fd = open("/dev/ecpp0",O_RDWR);
    if (fd==-1) { return -1; }
    // default is 90
    etp.write_timeout = 10;
    // the big secret
    etp.mode = ECPP_DIAG_MODE;
    ioctl(fd,ECPPIOC_SETPARMS,&etp);
    return fd;
    unsigned char in()
    unsigned char data;
    // from the man pages
    ioctl(fd,ECPPIOC_GETREGS,&eregs);
    data = eregs.dsr;
    return data;
    void out( unsigned char data )
    write(fd,&data,1);
    int main( void )
    int dummy;
    openoutput();
    //all data pins on
    out( 255 );
    scanf("%d", &dummy);
    //all data pins off
    out( 0 );
    scanf("%d", &dummy);
    close( fd );
    return 0;
    }

  • Accessing Parallel Port Control and Status Registers with VISA and Win7x64

    Hello all,
    I've posted this in the I/O forum for VISA, but this main forum seems to get a lot more traffic so I'm posting here too.
    Wondering if anyone has a solution for accessing the Control and Status registers on a parallel port with VISA, now that Win7 has locked down the I/O ports and In Port.vi and Out Port.vi don't work anymore.  I've been looking all over for a solution and haven't found anything that will help; either the VISA solution is shown but doesn't mention if the Status and Control registers are accessible, or the solution is for a 32 bit system.
    The one thing I found was under Instrument I/O>VISA>VISA Advanced, there is a group of functions called Register Access; but, when I investigate that, it seems to need an address that the detailed help describes as "VXI, VME, and GPIB-VXI" or "PXI" with no mention of Parallel Port usage, so I'm pretty much at the end of what I can figure out.
    Basically what I need to do is use the data lines to send info, and watch the status lines for incoming discrete signals.  Since parallel ports are half duplex, I can't have the data lines be both inputs and outputs simultaneously, which is what I need.  A cheap D I/O card would be the easiest solution, but to make a long story short I'm dealing with a legacy system and that's something my higher-ups want to avoid.
    Any help is greatly appreciated!

    Hello,
    I was able to solve this problem using software from Entech Taiwan; it's called TVicPort and it's available for free for personal use, and very cheaply for commercial license.  If you have questions let me know, I'll do my best to answer them but investigate Entech's solution and see if it'll work for you:
    http://www.entechtaiwan.com/
    http://www.entechtaiwan.com/dev/port/index.shtm

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

  • Is it possible to get direct access to parallel port pins under Windows NT? What can I do

    to get such an access under NT? I found Write to Parallel Port.vi but I can`t open it. The error that occurs is:
    resource not found, error occured while loading the vi, labview load error code 8: could not load vi ressources.
    This vi is from 1994. Maybe the source of trouble is that I`m using version 5.1.1 or it is a problem with NT. What do you think?

    Parallel Port.vi can only be used in DOS-Systems (like Win9x, WinME ;-). NT does not allow writing to parallel port with low level routines. It is more useful to use the digital port that is on most of the DAQ cards.
    Some more informations on parallel ports: http://www.lvr.com/parport.htm
    In general it seems to be possible. Somebody told me just to use the write port command with the address of the parallel port. Another way seems to be to tell NT to allow direct port access - but I don't know how.
    Andreas

  • Using XP software with a parallel port dongle in windows 7 professional

    Please help...  Looking to have my parallel port dongle recognized for my older version software (XP) in Windows 7 under the XP PC mode.  Help in figuring out if LPT1 is set correctly or what I am doing wrong.
    Thanks

    Hello,
    I have W7 Professional 64 bit with Windows Virtual PC/Windows XP Mode installed. I have some older programs installed in XP Mode and they are working properly.
    Unfortunately, I have one older program that I currently have working on an older XP Machine and that program requires a Sentinel dongle to be seen on the LPT1 Parallel Port. Since my W7 computer has an LPT1 Header on the mother board, I have purchased and
    installed a PCI-Express Parallel Port and I have the ribbon cable connected to the LPT1 Header.
    After I enabled the parallel port in the bios, I could see LPT1 in the W7 Device Manager and in the Windows XP Mode Device Manager. However, when I click on
    Windows Virtual PC, highlight Windows XP Mode.vmcx and click on Settings, LPT1 does not appear.
    I have installed my old program in Windows XP Mode and it starts to run but, when it gets to the point where it must see the Sentinel dongle on the LPT1, the
    program does not find the dongle.
    I also purchased a Manhattan MHUSB to DB25 Parallel Converter and plugged it in. It said that it found new hardware and installed drivers for it but that didn’t
    work either.
    I am not married to any particular solution. So, I would use a USB Adapter or LPT1 connected to the mother board but there must be some code editing or changes
    in settings to make the dongle work in XP Mode.
    Can you tell me how to get W7 Professional 64 bit with Windows Virtual PC/Windows XP Mode to find the Sentinel dongle 
    on LPT1?
    Thank you,
    Dan
    Dan

  • Errors with the parallel port

    I am trying to communicate with a robotic arm which is attached to the parallel port.

    and... ?
    See:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=205&HUSERSHADE=0&HOID=5065000000110000006D070000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    2006 Ultimate LabVIEW G-eek.

Maybe you are looking for

  • How to delete fixed number of records at a time

    Hi, I have a millions of records in one table.I have to purge first 15 days data per day by deleting at time 10000 records. Appreciate any ideas from you. Thanks in Advance. regards, Suresh

  • DNS error when trying to share my internet connection?

    i have an imac connected online wirelessly, and im trying to share it connection using the ethernet port with my xbox360 but im getting dns error even that i put the right number? anyone have any idea. im able to get ip but not dns.

  • Connecting 2 Clients via Server

    Hi, I asked a question about this a while ago, and got some helpful answers, but I just can't seem to get my head 'round the idea. I have 2 clients, and I want them each to connect to the server, and for the server to pair them up, and pass them off

  • SSL keys not valid

    I upgraded to 10.8 and now my Fetch application gives an error : "an FTP with TLS/SSL connection to x.y.z.w could not be opened because an error has occurred. SSL error -9807 Do I have to regenerate my keys? What is the procedure? Dan

  • Arial Black Font won't display

    My website uses Arial Black on all of its menus. Firefox 4.0 converts this to Arial. It works fine with earlier versions of Firefox, IE and Chrome.