Skip to main content
Skip table of contents

4.1.2 - Configuration [U6 Datasheet]

The following can be used to reset the configuration of the timers & counters:

There are two IOTypes used to write or read general U6 configuration parameters:

LJ_ioPUT_CONFIG
LJ_ioGET_CONFIG

The following constants are then used in the channel parameter of the config function call to specify what is being written or read:

LJ_chLOCALID
LJ_chHARDWARE_VERSION
LJ_chSERIAL_NUMBER
LJ_chFIRMWARE_VERSION
LJ_chBOOTLOADER_VERSION
LJ_chPRODUCTID
LJ_chLED_STATE
LJ_chU6_PRO

Following is example pseudocode to write and read the local ID:

//Set the local ID to 4.
ePut (lngHandle, LJ_ioPUT_CONFIG, LJ_chLOCALID, 4, 0);

//Read the local ID.
eGet (lngHandle, LJ_ioGET_CONFIG, LJ_chLOCALID, &dblValue, 0);

LJ_ioPIN_CONFIGURATION_RESET

Currently there is no IOType for configuring all the power-up default settings. However, using low-level functionality you can.

To configure the U6 power-up default settings, first configure your I/O to the power-up default settings you want. This includes Analog Outputs, Digital I/O and Timers & Counters settings.

Then use the Raw Output/Input functionality to send/receive (LJ_ioRAW_OUT/LJ_ioRAW_IN) the low-level SetDefaults command/response. SetDefaults causes the current or last used U6 configuration to be stored in flash as the power-up defaults.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.