03-24-2014 04:23 AM
After Why I download LIFA to Arduino_UNO,Initialization digita_Pin some of the "0", some of the "1" ? How to reset all "0"?Need to modify the LIFA_Base? How to change?
03-24-2014 01:23 PM
What does your LabVIEW code look like? Have you tried setting their values after you set their pin modes (before your main loop)?
03-24-2014 10:23 PM
Thank you Mr.Nathan_B's reply
I mean not to write any program in Labview and UNO, After download LIFA_Base, UNO digital Pin IO port will not reset state. LIFA_Base Bug?
thank you!
03-24-2014 10:32 PM
I'm not entirely sure I understand what you are saying. Would I be correct in assuming that you are saying that when you first load LIFA_Base onto the Arduino, the LEDs light up as you have shown in the image above without running any LabVIEW code?
As stated in the Arduino documenation, all digital pins should default to inputs (a high impedance state) and therefore should not be lighting up any LEDs that you have connected to them.
03-24-2014 10:38 PM
My application is IO port ontrol solenoid valve, if a power on ,IO is not initialized to zero,the solenoid valve action,the machine will be in danger,so the problem has been bothering me,I don't know how to solve it in LIFA_Base.
thank you!
03-24-2014 11:10 PM
Nathan_B. 编写:
I'm not entirely sure I understand what you are saying. Would I be correct in assuming that you are saying that when you first load LIFA_Base onto the Arduino, the LEDs light up as you have shown in the image above without running any LabVIEW code?
As stated in the Arduino documenation, all digital pins should default to inputs (a high impedance state) and therefore should not be lighting up any LEDs that you have connected to them.
yes, your understanding is correct,but why the digital Pins is default to outputs?
03-25-2014 12:08 AM
Mr Nathan_B
I modified the LIFA_Base void setup(),sovled my problem, is that OK?
thank you!
03-25-2014 03:18 AM
Your edit is perfectly fine. It just doesn't make sense why they are not defaulting correctly.
03-27-2014 12:18 PM
Hi,
I remenber that the same issue was discussed earlier about Mega boot state :
https://decibel.ni.com/content/message/41624#41624
Pedro gave a countermeasure, but If I remember well, I quickly tried it with not much success.
Your solution sgh81 will probably be more efficient 🙂
regards
antoine
03-27-2014 05:02 PM
The solution in the other thread will work as long as the Arduino is no rebooted or restarted in some way AFAIK.