« Close

Datasheets and User Guides

App Notes

Software & Driver

 

5.2.21 - SetDefaults (SetToFactoryDefaults)

Executing this function causes the current or last used values (or the factory defaults) to be stored in flash as the power-up defaults.

The U3 flash has a rated endurance of at least 20000 writes, which is plenty for reasonable operation, but if this function is called in a high-speed loop the flash could eventually be damaged.

Note: Do not call this function while streaming.

(The values in parenthesis will set the defaults to factory settings.)

Table 5.2.21-1. SetDefaults Command Response

Command:  
Byte  
0 Checksum8
1 0xF8
2 0x01
3 0x0E
4 Checksum16 (LSB)
5 Checksum16 (MSB)
6 0xBA (0x82)
7 0x26 (0xC7)
   
Response:  
Byte  
0 Checksum8
1 0xF8
2 0x01
3 0x0E
4 Checksum16 (LSB)
5 Checksum16 (MSB)
6 Errorcode
7 0x00

LabJackPython Example

  
>>> import u3
>>> d = u3.U3()
>>> d.debug = True
'''Make the U3's current configuration the power-up defaults.'''
>>> d.setDefaults()
Sent:  [0xe8, 0xf8, 0x1, 0xe, 0xe0, 0x0, 0xba, 0x26]
Response:  [0x8, 0xf8, 0x1, 0xe, 0x0, 0x0, 0x0, 0x0]