Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   reading in GPIO state (http://www.chiefdelphi.com/forums/showthread.php?t=84571)

windell747 23-03-2010 09:31

reading in GPIO state
 
Hi,

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?

Thanks,
windell

TubaMorg 23-03-2010 09:44

Re: reading in GPIO state
 
Quote:

Originally Posted by windell747 (Post 941657)
Hi,

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?

Thanks,
windell

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?

Jared Russell 23-03-2010 09:47

Re: reading in GPIO state
 
DigitalModule.getInstance(int slot).getDIO(int channel)

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


All times are GMT -5. The time now is 09:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi