02-02-2017 06:25 AM
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
02-02-2017 06:32 AM
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!