Section 2
–
MultiMux Operation and Installation
8
2.5 CR10/CR10X Program Example
The following example illustrates how to write custom programs for the CR10/CR10X to read instruments
connected to the MultiMux. The example assumes a 16 Channel Mode MultiMux reading 16 vibrating wire
gages and their respective thermistors.
The program example illustrates how measurements of instruments connected to the MultiMux are read,
it does not include instructions that would store the measurements for later retrieval. Consult the CR10
Operators Manual for more information on storing measurements.
1: Set Port(s) (P20) ;Configure the control ports of the CR10/CR10X, C1=Enable, C8=Clock
1: 7999 C8..C5 = output/nc/nc/nc
2: 9994 C4..C1 = nc/nc/nc/10ms
2: Do (P86) ;Enable the MultiMux
1: 41 Set Port 1 High
3: Excitation with Delay (P22) ;50ms delay after enabling the MultiMux
1: 1 Ex Channel
2: 0 Delay W/Ex (units = 0.01 sec)
3: 5 Delay After Ex (units = 0.01 sec)
4: 0 mV Excitation
4: Beginning of Loop (P87)
1: 0 Delay
2: 16 Loop Count ;Total number of instruments
5: Do (P86) ;Advance the channel
1: 78 Pulse Port 8
6: Vibrating Wire (SE) (P28) ;Read the Vibrating Wire Gage
1: 1 Reps
2: 1 SE Channel
3: 1 Excite all reps w/Exchan 1
4: 20 Starting Freq. (units = 100 Hz)
5: 35 End Freq. (units = 100 Hz)
6: 250 No. of Cycles
7: 0 Rep Delay (units = 0.01 sec)
8: 1 -- Loc [ VWGage_1 ]
9: 1000 Mult
10: 0 Offset
7: Excite-Delay (SE) (P4) ;Read the Thermistor
1: 1 Reps
2: 5 2500 mV Slow Range
3: 2 SE Channel
4: 1 Excite all reps w/Exchan 1
5: 5 Delay (units 0.01 sec)
6: 2500 mV Excitation
7: 17 -- Loc [ VWTemp_1 ]
8: .001 Mult
9: 0 Offset
8: Polynomial (P55) ;Convert thermistor voltage to
°
C
1: 1 Reps
2: 17 -- X Loc [ VWTemp_1 ]
3: 17 -- F(X) Loc [ VWTemp_1 ]
4: -104.78 C0
5: 378.11 C1
6: -611.59 C2
7: 544.27 C3
8: -240.91 C4
9: 43.089 C5
9: End (P95) ;End of measurement loop