02-16-2019 12:34 AM
Hello RavensFan. I was trying to get a new question started in the forum but I could not figure out how. I decided to reply to our last conversation. You have been so helpful, that i thought to pick your brain on a Linx/Arduino topic.
I had an LIFA code working, but all the sudden labview does not communicate with the Arduino MEGA board (tried different boards...if flashes from arduino fine, but no communication in labview). Following recommendations from the community, i have switched to LINX. I have the program communicating and running, and all my digital pin writing functions work as expected. The issue comes on my digital reading. I used to set digital reading pins to a HIGH state by turning on the pull-up resistor on the board (arduino has a function). To do so in labview, I simply set the a pin to "read mode" and then wrote to the digital pin with "1" (effectively turning on the pull up resistor, see bottom of image attached). Then, i read the digital pin again, and when "0" (ground) would be sent, I could reliably detect the change in state of the pin (as it would come from high).
In LINX, you do not need to set the pin function (read/write) a priory. Simply pick the function and select what channels to read/write. I attempted to set the pins to high as i used to do with LIFA to turn on the pull-up resistor, but no luck.
Do you know how to turn on the pull up resistor in LINX?
I have attached some images... i could put some sample codes if you would like me to. Thank you very much for your time and help.
02-16-2019 03:09 PM
There is a blue button at the top of the LabVIEW board that says "Start a Topic".
I'm glad I could help in the past, but I'm not familiar with Linx to be able to help now.
Since this truly is a new topic, I'll move your message to a new thread. A thread with fewer replies will tend to get more attention.