= 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 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. == 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:..Weighing/StartRepeatMulti StartRepeatMulti] * [wiki:SetOutput SetOutput] * [wiki:SetOutputMask SetOutputMask]