Changes between Initial Version and Version 1 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/GetInput


Ignore:
Timestamp:
12/27/11 09:29:02 (13 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/GetInput

    v1 v1  
     1= GetInput =
     2Get a digital input state for the main board or a DIO option card.
     3
     4{{{
     5bool GetInput(int bd, int input);
     6}}}
     7
     8== Parameters ==
     9
     10 * bd - 0 for main board or number of digital output card.
     11 * input - input number (1-4) main board (1-8) option card.
     12
     13== Return Value ==
     14
     15 * Returns the result - true = input is on, false = input is off
     16
     17== Remarks ==
     18
     19The main board or option card must already be opened by calling OpenMnBd first. This function returns the status of the memory buffer for the input. It is necessary to have communications code in place for this memory to be updated in an application. This can be done by using StartRepeatIO or StartRepeatMulti, at the beginning of the application or by calling MnBdRequest MNBD_GET_IO_STATUS prior to GetOutput.
     20
     21== Examples ==
     22
     23{{{
     24if(GetInput(MNBD_DEV, 1) == true)
     25    DisplayText(0, 0, "Input 1 is ON");
     26}}}
     27
     28{{{
     29if(GetInput(1, 4) == false)
     30    DisplayText(0, 0, "Card 1 Input 4 is OFF");
     31}}}
     32
     33== See Also ==
     34
     35 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetOutput SetOutput]
     36 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetOutputMask SetOutputMask]