Вверх ↑
Ответов: 933
Рейтинг: 197
#1: 2025-07-23 05:45:58 ЛС | профиль | цитата
Andrej77rv писал(а):
Может и не месяц. Я думаю там всё просто каждому пикселю соотвествует запись <...> в строке. Эта строка очень длинная.

Там же всё написано
Отправлять
# The firmware expects 12 bytes from the computer and will not do anything until 12 bytes have been received.
# The format is:
# byte[1-2]: The characters E and R. Defines where the firmware should start reading in its circular input-buffer.
# byte[3-6]: The 4 bytes constituting the 32-bit int holding the SH-period
# byte[7-10]: The 4 bytes constituting the 32-bit int holding the ICG-period
# byte[11]: Continuous flag: 0 equals one acquisition, 1 equals continuous mode
# byte[12]: The number of integrations to average



Получать
#wait for the firmware to return data
#combine received bytes into 16-bit data

#Data from the TCD1304 linear CCD
#column 1 = pixelnumber, column 2 = pixelvalue
#Pixel 1-32 and 3679-3694 and are dummy pixels
#SH-period: 100 ICG-period: 2000000 Integration time: 50 us

карма: 19

0