Kod: Tümünü seç
SSP FIRMWARE COMMAND SET
'========serial mode commands
'
' 19.2K baud, no parity, inverted, always driven
'
' n is any real integer 0 <= n <= 9
' x is any character
' LF is a line feed character, decimal 10, hex A
' CR is a carriage return character, decimal 13, hex D
' "!" is the exclamation character, decimal 33, hex 21
'
' SSMODE if in manual mode, this command will initate the serial loop mode and
' only serial commands will control the instrument
' after the serial loop mode is entered, a "!" LF CR is sent on the
' serial port to acknowledge the mode change
' if the instrument is already in the serial loop mode, the
' acknowledgement code is sent again, "!" LF CR to confrim that the
' instrument is in the serial loop mode
'
' SGAINn sets gain of instrument of preamp stage. n can be 1, 2 or 3 only
' 1 = gain of 100, 2 = gain of 10, 3 = gain of 100
' "!" LF CR is returned on serial port to acknowledge command
'
' SInnnn sets integration time in units of 0.01 seconds. 0001 <= nnnn <= 9999
' "!" LF CR is returned on serial port to acknowledge command
'
' SCOUNT start a reading with selected gain and integration time.
' after the count is completed, the results are displayed on the
' instrument and sent on the serial port in the following format:
' C=nnnnn LF CR, where 00000 <= nnnnn <= 65535, leading zeros are sent
'
' SMnnnn initiate a fast reading cycle with selected gain and integration time.
' nnnn is the number of readings to do, 0000 <= nnnn <= 9999, leading
' zeros must be added for number to be correct
' after each reading is done the value is sent on the serial in the
' following format: nnnn LF CR where 0000 <= nnnn <= 9999
' the fast mode sequence can be interrupted by sending a SS
' once the fast mode is successfully stoped, a "!" LF CR is sent
'
' SFILTn if the auto filter option is available on the instrument, the filter
' number can be selected. n can be 1, 2, 3, 4, 5 or 6 only.
' once the filter move is complete a "!" LF CR is sent
'
' SHOMEx if the auto filter option is available on the instrument, this command
' makes the filter slider find position 1 and stay there.
' once the filter move is complete a "!" LF CR is sent
'
' SENDxx exits the serial loop mode and returns to manual mode.
' before leaving the serial loop mode, an "END" LF CR is sent
'
'=======serial error messages
'
' "ER=1" LF CR low battery voltage condition is sent at any time that the
' instrument detects a low voltage on the battery - SSP-3 only
'
' "ER=2" LF CR high voltage has shut down because of object to bright - SSP-5 only
Fonksiyon yazmaya çalıştım fakat beceremedim

Comport komponentinden portwrite(SSMODE) mu diyeceğim acaba?
Portlar hakkında nasıl veri alınıp gönderildiği ile ilgili araştırmam var fakat çok fazla şey bilmediğim belli oluyor sanırım

Ben uğraşmaya devam ediyorum yardım veya önerileriniz için şimdiden teşekkür ederim.