44 Using the Matrix Modules
Chapter 3
Saving and Recalling States
*SAV <
numeric_state
> stores the current state of the matrix modules
channels. Up to 10 states can be stored by specifying <
numeric_state
> as
an integer 0 through 9. The following states are stored: Channel relay states
(open or closed), ARM:COUNt, TRIGger:SOURce, OUTPut[:STATe], and
INITiate:CONTinuous.
*RCL <
numeric_state
> recalls the specified previously stored state. If the
specified <
numeric_state
> does not exist, the matrix module configures to
its power-on/reset states (see Table 3-2).
Example: Saving
and Recalling
States (BASIC)
This program shows one way to save and recall matrix modules states.
10 DIM A$[30]
! Dimensions string variable
A$ to 30 characters
20 OUTPUT 70915; "CLOS (@10000:10015)
! Closes channels on a matrix
module
30 OUTPUT 70915; "*SAV 5"
! Saves state as numeric state 5
40 OUTPUT 70915; "*RST; *CLS"
! Resets and clears the matrix
module
50 OUTPUT 70915; "CLOS? (@10000:10020)"
! Query to see which channels
are closed
60 ENTER 70915;A$
70 PRINT "Channels Closed:";A$
80 OUTPUT 70915; "*RCL 5"
! Recall numeric state 5
90 OUTPUT 70915; "CLOS? (@10000:10200)"
! Check if recalled channels are
closed
100 ENTER 70915; A$
110 PRINT "Channels Closed:";A$
! Prints 1s for first 16 channels
closed and 0s for remaining 5
channels
120 END
Содержание E1465A
Страница 2: ......
Страница 6: ...6 ...
Страница 10: ...10 Notes ...
Страница 12: ...12 Getting Started Chapter 1 Figure 1 1 E1465A 16x16 Relay Matrix Module TERMINAL MODULE MATRIX MODULE A B C D ...
Страница 13: ...Getting Started 13 Chapter 1 Figure 1 2 E1466A 4x64 Relay Matrix Module TERMINAL MODULE MATRIX MODULE A B C D ...
Страница 14: ...14 Getting Started Chapter 1 Figure 1 3 E1467A 8x32 Relay Matrix Module TERMINAL MODULE MATRIX MODULE A B C D ...
Страница 18: ...18 Getting Started Chapter 1 Notes ...
Страница 80: ...80 Matrix Modules Command Reference Chapter 4 Notes ...
Страница 98: ...98 Register Based Programming Appendix B Notes ...