« Close

Datasheets and User Guides

App Notes

Software & Driver

 

24.0 IO Config, _DEFAULT

Subsections

IO_Config Overview 

IO_Config controls the default configuration that will be used when the device boots up, and can set an already running device to a known state. The default configuration sets the values that will be used during boot-up for digital directions, digital states, DACs, AIN_EF and DIO_EF. IO_Config can also apply either the default or factory configuration to a device that is already running.

 

 _DEFAULT

Registers ending with "_DEFAULT" will store non-volatile settings. These non-volatile settings will be used to configure the T7 during boot-up.

 

Terms

DEFAULT – A saved configuration set. These are also the settings that will be used when the device boots up.

FACTORY – The default settings that are loaded when the device is tested at LabJack.

CURRENT – The device's current settings.

 

Checksum

The IO_CONFIG_CURRENT_CRC32 register returns a CRC32 of the configuration data. The CRC can be used to detect configuration changes. Calculating the checksum takes between 5 and 15 ms. Some configurations are excluded from the CRC because they are expected to change during normal operations. The excluded configurations are:

  • Digital States

  • Digital Directions

  • DAC Voltages

 

Factory Rest

IO_Config settings can be cleared by a factory reset. See the SPC section for more information.

 Register Listing

IO Config Registers
Name Start Address Type Access
IO_CONFIG_SET_DEFAULT_TO_CURRENT 49002 UINT32 W
IO_CONFIG_SET_DEFAULT_TO_FACTORY 49004 UINT32 W
IO_CONFIG_SET_CURRENT_TO_FACTORY 61990 UINT16 W
IO_CONFIG_SET_CURRENT_TO_DEFAULT 61991 UINT16 W
IO_CONFIG_CURRENT_CRC32 49020 UINT32 R
IO_CONFIG_SET_DEFAULT_TO_CURRENT
- Address: 49002
Write a 1 to cause new default (reboot/power-up) values to be saved to flash. Current values are retrieved and saved as the new defaults. Systems affected: AIN, DIO, DAC, AIN_EF, DIO_EF.
  • Data type: UINT32  (type index = 1)
  • Write-only
IO_CONFIG_SET_DEFAULT_TO_FACTORY
- Address: 49004
Write a 1 to cause new default (reboot/power-up) values to be saved to flash. Factory values are retrieved and saved as the new defaults. Systems affected: AIN, DIO, DAC, AIN_EF, DIO_EF.
  • Data type: UINT32  (type index = 1)
  • Write-only
IO_CONFIG_SET_CURRENT_TO_FACTORY
- Address: 61990
Write a 1 to set current values to factory configuration. The factory values are retrieved from flash and written to the current configuration registers. Systems affected: AIN, DIO, DAC, AIN_EF, DIO_EF.
  • Data type: UINT16  (type index = 0)
  • Write-only
IO_CONFIG_SET_CURRENT_TO_DEFAULT
- Address: 61991
Write a 1 to set current values to default configuration. The default values are retrieved from flash and written to the current configuration registers, thus this behaves similar to reboot/power-up. Systems affected: AIN, DIO, DAC, AIN_EF, DIO_EF.
  • Data type: UINT16  (type index = 0)
  • Write-only
IO_CONFIG_CURRENT_CRC32
- Address: 49020
Collects the current IO configuration and calculates of a CRC32.
  • Data type: UINT32  (type index = 1)
  • Read-only
  • Minimum firmware version: 1.0220

 

Example

Use normal current configuration registers to write some values, and then save those as defaults so they are in effect at power-up:

AIN_ALL_RANGE = 0.1    //Set current range of all AIN to +/-0.1V
AIN_ALL_RESOLUTION_INDEX = 12    //Set current resolution index of all AIN to 12.
IO_CONFIG_SET_DEFAULT_TO_CURRENT = 1    //Set power-up defaults to current values.