LAMBDA DG-4 & 5 PLUS/USB OPERATION MANUAL – REV.
55
routine that could be used to monitor the status of the DG-4 (the example assumes that #1
has already been opened as the serial port to which the DG-4 is connected.
Listing 4-4. Reading the Lambda DG-4's status.
SENDITS: GOSUB SERCLEAR
‘clears receive buffer
IF DATANUM < 255 THEN PRINT #1, CHR$(DATANUM); ‘sends
‘command
GOSUB SERIN
DTIME = 10
RETURN
SERIN:
D = 0 ‘Check the SERIAL PORT If characters are waiting
SERIN1: SerialInput$ = “” ‘blanks the input variable
IF LOC(1) > 0 THEN SerialInput$ = INPUT$(1, #1)
‘ if a character is waiting, transfers it to input
‘ variable
IF SerialInput$ <> “” THEN
IF DATANUM = ASC(SerialInput$) THEN
IF R = 1 THEN RETURN
‘ presets R (=”return on echo” switch) to 1 if the last
‘ command did not require a carriage return
‘ character return=13 ends routine (DG-4 is ready)
IF SerialInput$ = CHR$(13) THEN RETURN
IF DATANUM = 238 THEN RETURN
D = D + 1
IF D > 10000 THEN RETURN
GOTO SERIN1
SERCLEAR:
DO WHILE LOC(1) > 0
SerialInput$ = INPUT$(1, #1) ’ characters waiting
LOOP
RETURN
Commands
DATANUM = 170 ‘OPEN SHUTTER
DATANUM = 171 ‘MARKER BETWEEN 235 OR 236 IN N.D. ADJUST
DATANUM = 172 ‘CLOSE SHUTTER
DATANUM = 186 ‘ENABLE TURBO BLANKING
DATANUM = 188 ‘DISABLE TURBO BLANKING
DATANUM = 202 ‘TRIGGERED BY STROBE
DATANUM = 203 ‘DISABLE TRIGGERED BY STROBE
DATANUM = 204 ‘SELECT VIDEO SYNC
DATANUM = 205 ‘DISABLE VIDEO SYNC
DATANUM = 206 ‘SELECT VIDEO SYNC GATED BY STROBE LOW
DATANUM = 207 ‘DISABLE VIDEO SYNC GATED BY STROBE LOW
DATANUM = 218 ‘FREEZE DISPLAY
DATANUM = 219 ‘TURN DISPLAY ON
DATANUM = 223 ‘START LOADING RING BUFFER (UP TO 256 VALUES)
DATANUM = 234 ‘START REMOTE CHANGE OF N.D. FILTER SETTING
DATANUM = 235 ‘INCREASE THE DAC GALVO VALUE-SEND 171 AS SPACE
DATANUM = 236 ‘DECREASE THE DAC GALVO VALUE-SEND 171 AS SPACE
DATANUM = 237 ‘END CHANGE OF N.D. FILTER SETTING AND SAVE
DATANUM = 238 ‘FORCE ON-LINE FOR CHANNEL THAT RECEIVED IT
DATANUM = 240 ‘END LOADING RING BUFFER FILTERS
Summary of Contents for Lambda DG-4Plus/USB
Page 3: ......
Page 4: ......
Page 16: ...LAMBDA DG 4 5 PLUS USB OPERATION MANUAL REV 1 01B3 20190607 4...
Page 46: ......
Page 70: ......
Page 76: ...LAMBDA DG 4 5 PLUS USB OPERATION MANUAL REV 1 01B3 20190607 64 This page intentionally blank...
Page 78: ...LAMBDA DG 4 5 PLUS USB OPERATION MANUAL REV 1 01B3 20190607 66 This page intentionally blank...
Page 94: ...LAMBDA DG 4 5 PLUS USB OPERATION MANUAL REV 1 01B3 20190607 82 NOTES...
Page 98: ...LAMBDA DG 4 5 PLUS USB OPERATION MANUAL REV 1 01B3 20190607 86 NOTES...