LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the direction, input or ouput, set in the Arduino tone VI

I examed the Arduino Tone VI and found how the Digital Output pin number is set but could not find any place where the direction, input or output, of the pin is set.  Some of the documentation says you need to set the I/O direction of digital pins but as far as I can see the Arduino Tone VI ignores this requirement.  Is a digital pin by default set to output?  Or is there smething I am missing?

.

My goal is to use an Arduino Uno to drive a stepper in place of a USB-9472  See

<https://decibel.ni.com/content/docs/DOC-13289>

Howard

0 Kudos
Message 1 of 2
(3,347 Views)

Howard,

  Do you have an interesting application? We always like hearing how folks are using our toolkit!

In this case you are overlooking the Set Digital Pin Mode VI:

Screenshot-2011-10-13_18.09.36.png

I believe by default in the Arduino IDE a pin default to OUTPUT so the tone example that Sam made forgoes this step. So I do not believe it is necessary to set the digital pin mode but something to stay conscious of.

Regards from Austin,

Ben

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,617 Views)