Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Agoston Torok · Jun 24, 2011 at 03:02 PM · synchronizationoutputparallel port

Communicate with parallel port

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, http://www.brainproducts.com/index.php). The most important thing is to synchronize (in time) the "new thing appeared on the screen" event with the trigger on the parallel port.

Has somebody any idea?

Thanks in advance,

Torok

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mappy · Jun 13, 2013 at 03:39 PM 0
Share

Hi Torok,

Could you solve this problem?

avatar image Agoston Torok · Jul 11, 2013 at 01:04 PM 0
Share

Yep, All the responses below helped, it's not that difficult as it sounds.

4 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Bunny83 · Jun 24, 2011 at 03:47 PM

update Since Unity5 you don't need Unity pro in order to use native code plugins. So even the personal / free edition can use such a plugin.

Unity pro --> native code plugin --> access to low-level hardware

Usually the port address of LPT1 is 0x378. I guess you are familiar with the parallel port harware?
If not look here:
http://www.beyondlogic.org/spp/parallel.htm

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Carrotpie · Jun 13, 2016 at 05:41 PM 0
Share

First link not working anymore...

avatar image
2

Answer by Graham-Dunnett · Jun 24, 2011 at 03:46 PM

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
2

Answer by aldonaletto · Jun 24, 2011 at 04:11 PM

There are some DLLs you can use - check this link:

http://logix4u.net/Legacy_Ports/Parallel_Port/Inpout32.dll_for_Windows_98/2000/NT/XP.html

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by mappy · Jun 14, 2013 at 12:49 PM

Hi all,

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.

Thanks in advance.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

communicating with parallel port 4 Answers

Why is Time.captureFramerate an integer value? 0 Answers

Socket received data being displayed in game with large delay, how can I synchronize it better?,Unity not synchronously receiving/displaying data from socket 1 Answer

Is it possible to run another program from a Unity executable? 2 Answers

Printing to a printer with Unity/ios 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges