LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the "write digital port" function with Arduino Mega

Solved!
Go to solution

I made a mistake in the firmware part of that function.  Fixed and updated above.

0 Kudos
Message 11 of 15
(1,181 Views)

Hi Nathan,

It now works perfectly. All 8 bits are set in 40...50us at most. The delay between individual bits setting time is around 5us. The overall test time decreased more than 3 times (Arduino was a real bottleneck).

Thanks a lot!

Catalin

0 Kudos
Message 12 of 15
(1,181 Views)

Thanks for the quick help but the Vi "DigitalWriteByte" only works to pin 13

0 Kudos
Message 13 of 15
(1,181 Views)

What do you mean?  "Digital Write Byte" lets you write to 8 pins at a time starting at "Start Pin".  "Digital Write Port Mega" writes to all digital pins on the Mega.

Did you upload the custom firmware?  Could you please attach your VI?

0 Kudos
Message 14 of 15
(1,181 Views)

Thank you so much,Thank you so much,

it works i forgot to config the Digital Pins.


0 Kudos
Message 15 of 15
(1,181 Views)