« Close

Datasheets and User Guides

App Notes

Software & Driver

 

4.2.20 - eDO()

An easy function that writes the state of one digital output. 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 output.

Declaration:

LJ_ERROR _stdcall eDO (  LJ_HANDLE Handle,
                         long Channel,
                         long State)

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

  • Handle – Handle returned by OpenLabJack().
  • Channel – The channel to write to. 0-19 corresponds to FIO0-CIO3.
  • State – The state to write to the digital output. 0=False=Low and 1=True=High.

2 comments

Could you explain the "Channel" values? It's not very intuitive - what integer do you pass to get the EIO digital outs?

EIO are 8-15.  See the mapping towards the beginning of the Digital I/O Section.