= GetInput = Get a digital input state for the main board or a DIO option card. {{{ bool GetInput(int bd, int input); }}} == Parameters == * bd - 0 for main board or number of digital output card. * input - input number (1-4) main board (1-8) option card. == Return Value == * Returns the result - true = input is on, false = input is off == Remarks == The 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 so that this memory is updated regularly. This should be done by using !StartRepeatMulti near the beginning of the application and providing a background event that calls !MnBdRead. == Examples == {{{ if(GetInput(MNBD_DEV, 1) == true) DisplayText(0, 0, "Input 1 is ON"); }}} {{{ if(GetInput(1, 4) == false) DisplayText(0, 0, "Card 1 Input 4 is OFF"); }}} == See Also == * [wiki://Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/StartRepeatMulti StartRepeatMulti] * [wiki:SetOutput SetOutput] * [wiki:SetOutputMask SetOutputMask]