Hi Everybody, I’ve just faced with an exciting problem: I would like to wirte a program, where you move around in an environment, whilst things appear at your sight. This is the easier side of it, but I want to send an 8 bit number to the parallel port to communicate with an instrument that works as a printer (it’s an EEG amplifier, Brain Products GmbH | Solutions for neurophysiological research). The most important thing is to synchronize (in time) the “new thing appeared on the screen” event with the trigger on the parallel port.
Unity has no way to communicate with a printer port when running in a web browser. If you have Pro and use the standalone build option then you can talk to the printer port using a plugin. This will require you to write a DLL that does the actual talking.
You must write a C# script to declare and access the DLL functions. I did it with another DLL (to access joystick rumble feature). In my project, the C# script read a static variable and sent it’s value to the joystick any time it changed value, but it’s better to have a function in the C# script to write whatever you want via DLL functions.
I need to solve a similar question. I’m working with a Mac, and the output would be through a USB port, that will be converted to a parallel port. I wonder whether Agoston Torok solved that, or if there are other better solutions.