LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Data With 2 Pins Using Arduino One

Please, look at this photo I provided. I am trying to read data that is coming from pin 12 and 13 but I get nothing. Maybe something is not set up right. Can someone please help me?

 

Thank you!

0 Kudos
Message 1 of 5
(2,687 Views)

Use block diagram cleanup so it is easier to see what wires go where and in what order the subVI's execute.

 

Do you get any error messages?

 

You have the two pins set to input, yet you try to do a Digital Write on them.  Why?

For the digital Read, I don't see where you tell it what pins to read on those subVI's.

Also, your VISA resource is an empty constant.  Shouldn't you be telling it what serial resource the Arduino is connected to?

0 Kudos
Message 2 of 5
(2,645 Views)

Hello Friend,

You can't write anything to the pins configured as INPUT,

Change the configuration to OUTPUT and give 0 OR 1 to Digital Write function and see the magic.

 

Regards

Love Diwan

 

 

KUDO is the best way to say thanks.....! Smiley Very Happy

 

 

 

 

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

You can not read a pin configured as an output and you can not write to a pin that is configured as an input.

 

You configure pins as input to read them.

You configure pins as output to write to them.

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 5
(2,628 Views)

Alright. Thanks. 

0 Kudos
Message 5 of 5
(2,578 Views)