reading in GPIO state


I’m not the programmer for our team, but since our programmer’s progress is slow, I’m trying to do some research for her before hand so we can make good progress tomorrow.

How would I read in the state of a GPIO pin in Java?


I am not exactly sure what you are asking. Do you mean the state of a particular slot on the cRio? And what do you mean by state? Whether something is there or not?

DigitalModule.getInstance(int slot).getDIO(int channel)

Alternatively, you can create a DigitalInput object and use the get() method.