LabLynx User Manual Revision 1.1 2/18/2021
34
SetDigitalIOBit
Example .cfg File Text
# packet ID: x01
# size: x0003
# command ID: x06
# parameter 1: bit number 0-7 (1 byte)
# parameter 2: bit value 0 or 1 (1 byte)
# Upper 4 bits on 24-pin connector: bits 4-7 for GPIO 0-3 on 24-pin
# Lower 4 bits on 10-pin connector: bits 0-3 for GPIO 0-3 on 10-pin
# Examples
# list of command values: 01 0003 06 00 00
-SendBinaryCommand AcqSystem1 "010003060000"
# 24-pin GPIO 0 = 0
-SendBinaryCommand AcqSystem1 "010003060100"
# 24-pin GPIO 1 = 0
-SendBinaryCommand AcqSystem1 "010003060200"
# 24-pin GPIO 2 = 0
-SendBinaryCommand AcqSystem1 "010003060300"
# 24-pin GPIO 3 = 0
-SendBinaryCommand AcqSystem1 "010003060400"
# 10-pin GPIO 0 = 0
-SendBinaryCommand AcqSystem1 "010003060500"
# 10-pin GPIO 1 = 0
-SendBinaryCommand AcqSystem1 "010003060600"
# 10-pin GPIO 2 = 0
-SendBinaryCommand AcqSystem1 "010003060700"
# 10-pin GPIO 3 = 0
# -SendBinaryCommand AcqSystem1 "010003060001" # 24-pin GPIO 0 = 1
# -SendBinaryCommand AcqSystem1 "010003060101" # 24-pin GPIO 1 = 1
# -SendBinaryCommand AcqSystem1 "010003060201" # 24-pin GPIO 2 = 1
# -SendBinaryCommand AcqSystem1 "010003060301" # 24-pin GPIO 3 = 1
# -SendBinaryCommand AcqSystem1 "010003060401" # 10-pin GPIO 0 = 1
# -SendBinaryCommand AcqSystem1 "010003060501" # 10-pin GPIO 1 = 1
# -SendBinaryCommand AcqSystem1 "010003060601" # 10-pin GPIO 2 = 1
# -SendBinaryCommand AcqSystem1 "010003060701" # 10-pin GPIO 3 = 1