LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Arduino, digital write pin, analog input

Hello

 

The analog input pins can be used as digital pins, referred to as A0, A1, etc. In Arduino aplication make I that as follow:

pinMode(2, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A4, OUTPUT);

 

digitalWrite(2, HIGH);
digitalWrite(A5, LOW);
digitalWrite(A4, HIGH);

 

I have problem in program in labview. When I use funkcion "Digital write pin" combinated with "Set digital pin mode" work withthout problems pins from DOUT2 to DOUT13. I need still two pins more. So, when i try the same on the pins "analog input A0 - A5" or "DOUT0 and DOUT1" works it mistakenly. Did someone something similarly? Have someone idea to solve that?

 

Thank you for your interest in helping me

Stefan

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

Hi Stefan,

 

I guess you use LIFA or LINX to access the Arduino hardware from LabVIEW. And I guess those driver packages are limited/"made safe" to only use the HW pins for their "original" designated purpose.

 

When you need some special abilities of your hardware you can program the Arduino with your own sketch and use basic serial communication to send commands to and read measurement data from your sketch!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(5,063 Views)