4.2.19 - eDI() [U6 Datasheet] | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver


4.2.19 - eDI() [U6 Datasheet]

An easy function that reads the state of one digital input. This is a simple alternative to the very flexible IOType based method normally used by this driver.

When needed, this function automatically configures the specified channel as a digital input.


LJ_ERROR _stdcall eDI (  LJ_HANDLE Handle,
                         long Channel,
                         long *State)

Parameter Description:
Returns: LabJack errorcodes or 0 for no error.

  • Handle – Handle returned by OpenLabJack().
  • Channel – The channel to read. 0-19 corresponds to FIO0-CIO3.


  • State – Returns the state of the digital input. 0=False=Low and 1=True=High.