inpout32 in Java (jnpout32reg)

My x64 port of InpOut32
Post Reply
robinkramer
New User
Posts: 2
Joined: Wed Apr 06, 2016 1:23 pm

inpout32 in Java (jnpout32reg)

Post by robinkramer »

Hi everyone,

I am in desperate need for help. My name is Robin, and I am a student Human-Machine Communication at the University of Groningen in the Netherlands. For my master thesis I have written an experiment in Java, which I want to use for EEG-research. In order to do that, I need to send specific "event markers" to the EEG system via a parallel port.

I have searched and searched and finally found a Java implementation of inpout32, called jnpout32reg. However, I cannot get it to work. Then I downloaded Parallel Port Tester (http://download. cnet. com/Parallel-Port-Tester/ 3000-2086_4-75940249.html) which only works with inpout32.ddl and this works perfectly. I can even see the data being send to the EEG system. Is there some way to use inpout32.dll via Java, or is jnpout32reg the only possibility? And how would I go about to get this to work?

Thank you so much. My entire thesis depends on getting this to work.
User avatar
phil
Site Admin
Posts: 7611
Joined: Sun Apr 06, 2003 11:12 pm

Re: inpout32 in Java (jnpout32reg)

Post by phil »

Sorry, I don't know Java very well so I don't think I can help. The little I do know, I would have thought you would need to make use of JNI (java native interface) by writing a C/C++ DLL to interact between Java and the native InpOut32 DLL. Maybe someone else can.

It might be worth asking the author of InpOut32 at Logix4U as I only ported InpOut32 to 64bit Windows. However, they seem to be difficult to get in touch with these days :(

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
robinkramer
New User
Posts: 2
Joined: Wed Apr 06, 2016 1:23 pm

Re: inpout32 in Java (jnpout32reg)

Post by robinkramer »

I have found the solution, but it is a workaround. Instead of using jnpout32, I used inpout32/inpoutx64 via a Python script, which, in turn, I executed from within Java. For more explanation see:
http:// stackoverflow. com/questions/36456252/parallel-port-communication-with-jnpout32pkg-jnpout32reg
Post Reply