![Agilent Technologies E1330B Скачать руководство пользователя страница 124](http://html.mh-extra.com/html/agilent-technologies/e1330b/e1330b_users-manual-and-scpi-programming-manual_2867439124.webp)
122 Agilent E1330B Digital I/O Module Register Information
Appendix B
Resetting the
Module
The following program resets the Agilent E1330 Digital I/O module (Bit 6 of the
Port Control/Status Register set to "1" then to"0"). Reset enables all four ports for
input, all other bits of other registers set to "0" IBASIC Version.
IBASIC Version
10
Base_addr = DVAL("1FE400",16)
!Logical Address 144.
20
Reg_addr = 04
!Offset for Status Control Register.
30
!Write a 0 then a 1 to bit 0 of status register.
40
WRITEIO -9826, Bas Reg_addr; 1
50
WRITEIO -9826, Bas Reg_addr; 0
60
END
C Version
#include <stdio.h>
#include <chpib.h>
#define LOG_ADDR 144
#define BASE_ADDR (long) ((0x1FC000) + (64 * LOG_ADDR))
main ()
{
int
reg_addr;
float
send_data[3];
char
state[2] = {13,10};
send_data[0] = BAS reg_addr;
send_data[1] = 16;
send_data[2] = 1;
IOEOI (7L, 0); IOEOL (7L, " ",0);
IOOUTPUTS (70900L, "DIAG:POKE ",10);
IOEOI (7L, 1); IOEOL (7L, " ",state,0);
IOOUTPUTA (70900L, send_data, 3);
send_data[2] = 0;
IOEOI (7L, 0); IOEOL (7L, " ",0);
IOOUTPUTS (70900L, "DIAG:POKE ",10);
IOEOI (7L, 1); IOEOL (7L, " ",state,0);
IOOUTPUTA (70900L, send_data, 3);
return 0;
}
Содержание E1330B
Страница 2: ......
Страница 10: ...8 Notes ...
Страница 11: ...9 Notes ...
Страница 12: ...10 Notes ...
Страница 25: ...Configuring the Agilent E1330B Digital I O Module 23 Chapter 2 Figure 2 6 J1 and J2 Connector Pinouts ...
Страница 32: ...30 Configuring the Agilent E1330B Digital I O Chapter 2 Notes ...
Страница 42: ...40 Using the Agilent E1330B Digital I O Module Chapter 3 Notes ...
Страница 58: ...56 Understanding the Agilent E1330B Digital I O Module Chapter 4 Notes ...
Страница 104: ...102 Agilent E1330B Digital I O Module Command Reference Chapter 5 Notes ...
Страница 146: ...144 Error Messages Appendix C Notes ...