FSTAR LED control software update
LED BOX 1 For ECAL: led@130.199.60.245
LED BOX 2 For HCAL: led@130.199.60.250
purpose: set active LED row and column bits and set Bias Voltage from single command line. Note lowercase “L” option to run as listening socket.
ð Login as: led@LEDECAL:~/documents
ð Run => ./led_sok3 (with the following command line options)
options:
Required: -l# -> set local or socket mode 0= socket mode, 1= local mode (run from within SSH session command line)
-w# -> 0= read back only, 1= write new values
-r# -> set active row bits (0 - 31)
-c# -> set active column bits (0 - 1023)
-v# -> set DC Bias Level in unit Volts (0 or in a range from 10.## - 30.00)
NOTE: v bias is stored in DAC EEPROM, but before taking LED run, it is advised to check v bias with: ./led_sok -l1 -w0
Write Example: Set all LEDs in all rows and column active and set bias voltage to 22.00V
> led@LEDECAL:~/documents $ ./led_sok3 -l1 -r31 -c1023 -v22.0 -w1
Result:
Writing LED Bits........
Biasnum 22.00 DACbits 3003 Setting Bias Voltage ..........
DAC1 value 3003 DAC1 Voltage: 22.00 V
DAC2 value 3003 DAC2 Voltage: 22.00 V
Reading bits ..........
LED BITS READBACK READING ROW BITS 0 1 1 1 1 1 READING COL BITS 1 1 1 1 1 1 1 1 1 1
Read only Example: (note w = 0)
Result:
led@LED2:~/documents $ ./led_sok3 -l1 -r31 -c1023 -v15.0 -w0
Read Mode....
0 DAC1 value 2047
DAC1 Voltage : 15.00 V
DAC2 value 2047
DAC2 Voltage : 15.00 V
LED BITS READBACK READING ROW BITS 0 1 1 1 1 1 RADING COL BITS 1 1 1 1 1 1 1 1 1 1
Running led_sok3 as socket server: TCP port 4001
led_sok3 can be run as a listing port socket server:
Example: listen for commands on TCP port: 4001 (note l flag is set to 0)
./led_sok3 -l0 4001 &
Run as => led@LED2:~/documents $ ./led_sok3 -l0 4001
Result:
socket mode!
Listener on port 41231
Waiting for connections ...
Client side:
Run from Client Telnet session: 130.199.60.245 4001
Server responds with=> LED SOK V1.1 !
Client side Commands: Mode row col bias Mode
w = write
r = read row -> 0 - 31 col -> 0 - 1023 bias -> 10.## - 30.00
Write Example: Set all rows and columns on and set bias to 15.00V ->
w 31 1023 15.00
Readback: ->
> "r"
Response from server:
row Bits 31 !
column Bits 1023 !
pulser freq. 0 ! ......
DAC1 Value 2047 !
LED1 Voltage 15.00 !
DAC2 Value 2047 !
LED2 Voltage 15.00 !
- timcam's blog
- Login or register to post comments