Testing the PIDs
To test the PIDs, login to an SIU crate, bring up a windsh and type:
< /afs/slac.stanford.edu/u/ey/jana/glast/HW/SIU/pids/pids.vx
At the command prompt you can drive and read inputs and outputs.
------------------------------------------------------------------
This procedure loads JJ's PID code from:
< /afs/slac/u/ey/russell/glast/DAQ/source/DEMO/test/ptd/ld_pid.vxw
It will then configure the PIDs as outputs and levels giving one the ability to drive the outputs with the commands:
pidSet 5,1
pidSet 6,1
And read the inputs from the SC using the commands:
pidGet 23
pidGet 24
pidGet 25
To switch between primary and redundant issue the following commands:
pidSet 7,1 # primary
pidSet 7,0 # redundant
----------------------------------------------------------------------
Here is a transcript of JJ's cheat sheet on PIDs.
To test the output PIDs (the LEDs on the crate tester):
1. Configure the PIDs as outputs, levels
pidCnf 5,2,0,0
pidCnf 6,2,0,0
2. Configure primary/redundant selection PID #7 as an output
pidCnf 7,2,0,0
3. Place the primary/redundant selection switch on the crate tester to primary
4. Set the primary/redundant selection PID to drive "0"
pidSet 7,1
5. Turn LEDs on
pidSet 5,1
pidSet 6,1
6. Turn LEDs off
pidSet 5,0
pidSet 6,0
To test the input PIDs (i.e., the switches on the crate tester):
1. Configure the PIDs as input level
pidCnf 23,1,0,0
pidCnf 24,1,0,0
pidCnf 25,1,0,0
2. Read the value of the PIDs
pidGet 23
pidGet 24
pidGet 25
3. Flip the switches on the crate tester and pray that they are the complement of what you read in step 2.
pidGet 23
pidGet 24
pidGet 25
NOTE: When the input PIDs read a value of "1", the value on the wire is 0 V. When the input PIDs read back a value of "0", the value on the wire is actually high.
|