![Data Translation DT9837 Скачать руководство пользователя страница 143](http://html.mh-extra.com/html/data-translation/dt9837/dt9837_user-manual_511243143.webp)
Register-Level Programming
143
Note: olDiagReadReg()
and
olDiagWriteReg()
require a ULONG value for the data
parameter, but we are reading and writing only a single byte (last parameter).
// To read the current source power-up default for channel 2,
// use the following code:
ULONG Channel_2_Current_Source;
OLSTATUS olStatus = olDiagReadReg(m_hDev, EEPROM_ME
EEPROM_OFFSET_CURRENT_SOURCE_2, &Channel_2_Current_Source, 1);
// To set the coupling power-up default for channel 0 to AC,
// use the following code:
OLSTATUS olStatus = olDiagWriteReg(m_hDev, EEPROM_ME
EEPROM_OFFSET_COUPLING_0, (ULONG) AC, 1);
// To keep the high power mode always on, use the following code:
BOOL alwaysOn = True;
UNIT numberOfBytes = 1;
OLSTATUS olStatus = olDiagWriteReg(m_hDev, EEPROM_ME
EEPROM_OFFSET_POWER_OVERRIDE_REG, alwaysOn, numberOfBytes);
Содержание DT9837
Страница 1: ...DT9837 Series UM 22417 AJ User s Manual Title Page ...
Страница 4: ......
Страница 12: ...About this Manual 12 ...
Страница 13: ...13 1 Overview Hardware Features 14 Supported Software 21 Supported Accessories 24 Getting Started Procedure 25 ...
Страница 26: ...Chapter 1 26 ...
Страница 27: ...Part 1 Getting Started ...
Страница 28: ......
Страница 49: ...49 4 Verifying the Operation of a Module Select the Device 51 Acquire Data from an Analog Output Channel 54 ...
Страница 53: ...Verifying the Operation of a Module 53 ...
Страница 60: ...Chapter 4 60 ...
Страница 61: ...Part 2 Using Your Module ...
Страница 62: ......
Страница 90: ...Chapter 5 90 ...
Страница 104: ...Chapter 6 104 ...
Страница 105: ...105 7 Troubleshooting General Checklist 106 Technical Support 108 If Your Module Needs Factory Service 109 ...
Страница 110: ...Chapter 7 110 ...
Страница 130: ...Appendix A 130 ...
Страница 144: ...Appendix C 144 ...
Страница 150: ...Index 150 ...