06-27-2013 06:14 PM
Hi,
How should I do to Write or Read values to Digital Port (DIO 0-53) by using Arduino Mega?
What I need to do is to write/read all digital pins (0-53) at the same time.
Ken Iti
06-28-2013 12:51 AM
The short answer is to create a new command that does this (you duplicate the existing write to port and then expand it to all the pins. They won't be written simultaneously technically (on the order of microseconds between each pin) but it will be much faster than doing it with single digital writes from LabVIEW.
What are you using or doing that requires so many pins? I'm curious.
06-28-2013 02:42 AM
Ok, I decided to code this. Make sure you upload my version of the firmware and make sure that you first set all pins to outputs. Let me know how it works.
It's based on the existing Digital Write Port but I've read that you shouldn't do anything to pins 0 and 1 since that is how LabVIEW is communicating with the Arduino. So, only set pins 2 through 53 to output.
06-28-2013 05:47 AM
Hi Nathan_B.,
I'm developing an automatic test system for medical devices that requires an activation of 50 relays. It will be used as a project work of my graduation in electronic engeneering course.
I will use the new version of the firmware later and let you know.
Thanks a lot.
Ken Iti
07-02-2013 03:02 PM
Hi Nathan_B.,
Thank you for your cooperation.
I tested the new version and its working very well.
Regards,
Ken Iti