LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Interface for Arduino Question

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

0 Kudos
Message 1 of 5
(4,942 Views)

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.

0 Kudos
Message 2 of 5
(3,248 Views)

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. 

0 Kudos
Message 3 of 5
(3,248 Views)

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

0 Kudos
Message 4 of 5
(3,248 Views)

Hi Nathan_B.,

Thank you for your cooperation.

I tested the new version and its working very well.

Regards,

Ken Iti

0 Kudos
Message 5 of 5
(3,248 Views)