LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timed alternating binary signal sent to arduino

I am creating a low resolution machine vision device and I am using 4 analog to digital multiplexers to control my sensors.

 

I want to send a timed alternating binary number to the digital pins on the multiplexer but can't figure out how.

 

Essentially, I am trying to generate an 16 bit counter and send the status of each individual bit to a different digital pin on the arduino.

 

Can someone please help?

 

My code isn't very intuitive at the moment but I can post it if anyone wants to have a look.

 

Thank you!

0 Kudos
Message 1 of 4
(2,757 Views)

Luke, 

 

I have a couple of questions about your setup: 

 

>Are you using the NI LabVIEW Interface for Arduino Toolkit?

>What specific hardware do you have?

 

0 Kudos
Message 2 of 4
(2,720 Views)

Hello Haley,

 

I am indeed using the toolkit. I am using an arduino mega 2560 as well. I am also using 4 of these: https://www.sparkfun.com/products/9056 to control my 8x8 array.

 

I want to control the digital inputs on the mux board with a rotating timer.

I have attached my program. Each group of four digital writes are intended to represent a multiplexer. I want to tie the respective pins from each mux together ie: all 4 pin 0s together and have them run on the same clock.

 

The cycle time isn't a priority at the moment.

 

Thank you so much for your help

 

0 Kudos
Message 3 of 4
(2,696 Views)

Unfortunately, I do not have the Arduino Toolkti installed, but I suggest posting to the LabVIEW interface for Arduino community page. You will likely receive more bites posting there. 

0 Kudos
Message 4 of 4
(2,672 Views)