SpeedAdjust
: Allows the communication frequency to be reduced. 0 is the maximum speed of about 150 kHz. 20 is a
speed of about 70 kHz. 255 is the minimum speed of about 10 kHz.
SDAP/SCLP -PinNum
: Assigns which digital I/O line is used for each I2C line. Value passed is 0-22 corresponding to the
normal digital I/O numbers as specified in Section 2.9. Note that the screw terminals labeled SDA and SCL are not used for
I2C. Note that the I2C bus generally requires pull-up resistors of perhaps 4.7 kΩ from SDA to Vs and SCL to Vs.
Address
: This is the first byte of data sent on the I2C bus. The upper 7 bits are the address of the slave chip and bit 0 is the
read/write bit. Note that the read/write bit is controlled automatically by the LabJack, and thus bit 0 is ignored.
NumI2CBytesToSend
: Specifies how many I2C bytes will be sent (0-240).
NumI2CBytesToReceive
: Specifies how many I2C bytes will be read (0-240).
I2Cbyte#
: In the command, these are the bytes to send. In the response, these are the bytes read.
NumI2CWordsReceive
: This is the number of I2C bytes to receive divided by 2. If the number of bytes is odd, the value is
rounded up and an extra zero is added to the packet. This parameter is actually just to specify the size of this packet, as the
NumI2CbytesToReceive parameter above actually specifies how many bytes to read.
AckArray#
: Represents a 32-bit value where bits are set if the corresponding I2C write byte was ack’ed. Useful for
debugging up to the first 32 write bytes of communication. Bit 0 corresponds to the last data byte, bit 1 corresponds to the
second to last data byte, and so on up to the address byte. So if n is the number of data bytes, the ACKs value should be
(2
(n+1)
)-1.
5.3.21 - SHT1X
Control command reads temperature and humidity from a Sensirion SHT1X sensor (which is used by the EI-1050). For more
information, see the EI-1050 datasheet, and the SHT1X datasheet from sensirion.com.
Command:
Byte
0
Checksum8
1
0xF8
2
0x02
3
0x39
4
Checksum16 (LSB)
5
Checksum16 (MSB)
6
DataPinNum (0-22)
7
ClockPinNum (0-22)
8
Reserved
9
Reserved
Response:
Byte
0
Checksum8
1
0xF8
2
0x05
3
0x39
4
Checksum16 (LSB)
5
Checksum16 (MSB)
6
Errorcode
7
0x00
8
StatusReg
9
StatusRegCRC
10-11
Temperature
12
TemperatureCRC
13-14
Humidity
15
HumidityCRC
Data/Clock -PinNum
: Assigns which digital I/O line is used for each SPI line. Value passed is 0-7 corresponding to FIO0-
FIO7.
StatusReg
: Returns a read of the SHT1X status register.
Temperature
: Returns the raw binary temperature reading.
Humidity
: Returns the raw binary humidity reading.
#CRC
: Returns the CRC values from the sensor.
5.3.22 - StreamDAC
This function loads a list of binary values that the DACs will output to generate waveforms. Each time stream starts a scan the
DAC are set to the next value in their lists. StreamDAC is run by the stream subsystem, so Stream Config needs to be called to
set frequency, Stream Start will begin waveform generation and Stream Stop will halt generation.
74
Summary of Contents for UE9
Page 84: ...84 ...