Hioki TM6102 Скачать руководство пользователя страница 15

10

 

 

 

 

2 Cautions on Communication Program Creation 

 

The TCP/IP communication performs the process so that large data is sent efficiently. Therefore, when small data 

such as a command to control the instrument is sent, the send process may not be performed until the size of the send 
data reaches a certain level. In this case, the response from the instrument becomes slow. Therefore, when creating a 
communication program, perform the following settings to make the response from the instrument faster. 

 

• For Socket Program 

Set 1 for TCP_NODELAY of the socket option. 
Example: C/C++)

 

SOCKET sock; 
BOOL opt;

 

 

•••

 

opt = 1;

 

setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (char*)&opt, sizeof(BOOL));

 

 
 

• For .Net Framework

 

Set NoDelay of the TcpClient class to true.

 

Example: VB)

 

Dim tcpClient As System.Net.Sockets.TcpClient

 

 

•••

 

tcpClient.NoDelay = True

 

 

 

Содержание TM6102

Страница 1: ...or details regarding communication settings Although all reasonable care has been taken in the production of this manual should you find any points which are unclear or in error please contact your lo...

Страница 2: ......

Страница 3: ...nd Event Control Commands 16 CLS 16 ESR 16 Device Specific Commands 17 1 Event Status Register 17 ESR0 17 2 Communications Settings 17 SYSTem COMMunicate LAN IPADdress 17 SYSTem COMMunicate LAN CONTro...

Страница 4: ...ty Gain Correction Function 33 SCALe RADiometry GAIN 31 SCALe RADiometry GAIN DATA 31 f Chromaticity x y Offset Correction Function 34 SCALe XY OFFSet 32 SCALe XY OFFSet DATA 32 g Radiometric Quantity...

Страница 5: ...5 Measurement Flow 53...

Страница 6: ...ands that contain data make sure that the data is provided in the specified format Message Format Program Messages Program messages can be either Command Messages or Query Messages 1 Command Messages...

Страница 7: ...NG R OK short form RAN Error Headers Headers must always be prefixed to program messages 1 Command Program Headers There are three types of commands Simple Compound and Standard Headers for Simple Com...

Страница 8: ...messages are combined in this way and if one command contains an error all subsequent messages up to the next terminator will be ignored 2 Header Separator In a message consisting of both a header and...

Страница 9: ...ed or unsigned Unsigned numeric values are handled as positive values Values exceeding the precision handled by the instrument are rounded to the nearest valid digit NR1 Integer data e g 12 23 34 NR2...

Страница 10: ...nt path and can be omitted from the messages immediately following The current path is cleared when the power is turned on by a colon at the start of a command by a colon at the start of a command and...

Страница 11: ...ommand not supported by the instrument The specified data value is outside of the set range Bit 4 EXE Execution Error This bit is set to 1 when a received command cannot be executed for some reason Th...

Страница 12: ...er Event Status Registers 0 is cleared in the following situations When a CLS command is executed When an Event Status Register 0 query is executed ESR0 When the instrument is powered on again Standar...

Страница 13: ...nication processes and process contents All commands except TRG are processed sequentially In communications with the client time must be added for data transmission Wait until measurements stabilize...

Страница 14: ...R G and B are mixed Unit of Radiometric Quantity The unit of the radiometric quantity is omitted in descriptions Each instrument uses the unit as described below TM6102 W m 2 TM6103 W sr m 2 TM6104 W...

Страница 15: ...n level In this case the response from the instrument becomes slow Therefore when creating a communication program perform the following settings to make the response from the instrument faster For So...

Страница 16: ...s the Subnet mask SYSTem COMMunicate LAN GATeway Address Sets the default gateway SYSTem COMMunicate LAN GATeway Address Queries the default gateway SYSTem COMMunicate LAN UPDate Reflects the LAN sett...

Страница 17: ...lue DARK CLEar Clears the dark value Normal Measurement Settings AVERaging Average times Sets the number of average times of the normal measurement AVERaging Average times Queries the number of averag...

Страница 18: ...RGB X measured value Y measured value Z measured value Measurement status Queries the measured values of the tristimulus values XYZ FETCh XY is R G B or RGB Measured value of chromaticity x Measured...

Страница 19: ...hows the command description Shows the message syntax Explains the command data or response message Describes the message Shows an example of an actual command application Set and Query Number of Aver...

Страница 20: ...check that the operation is complete using OPC When the communication disconnection process is executed without checking the operation completion the initialization process may not be executed Execut...

Страница 21: ...before executing any subsequent commands Description The measurement completion is not waited for When you wait for measurement completion please use any of the following Confirm a reply of READ Conf...

Страница 22: ...ueries the currently set IP address Example SYST COMM LAN IPAD 192 168 0 2 SYST COMM LAN UPD SYST COMM LAN IPAD 192 168 0 2 Note When the IP address is changed by SYSTem COMMunicate LAN IPADdress the...

Страница 23: ...mmand Sets the default gateway Query Queries the currently set default gateway Example SYST COMM LAN GAT 192 168 0 100 SYST COMM LAN UPD SYST COMM LAN GAT 192 168 0 100 Note When the default gateway i...

Страница 24: ...Description Command Sets the trigger delay When the command is accepted the measured value is cleared and the instrument enters the non measurement state Query Queries the currently set trigger delay...

Страница 25: ...of average times of the modulation frequency measurement When the command is accepted the measured value is cleared and the instrument enters the non measurement state Query Queries the currently set...

Страница 26: ...requency Syntax Command PULSe FREQuency Modulation Frequency NRf Query PULSe FREQuency Response Modulation frequency NR2 Modulation frequency 10 0000 to 300 0000 Description Command Sets the modulatio...

Страница 27: ...range during the measurement please set measurement range by all means Set and Query Measurement Range is R G or B Syntax Command RANGe Measurement range number NRf Query RANGe Response Measurement r...

Страница 28: ...reen range 16 the maximum measurable radiometric quantity is 59 2504 mW m 2 Note is R G or B Do not send this query during measurement The maximum measurable radiometric quantity acquired by this quer...

Страница 29: ...hat is measured when the color matching function setting 2 is used The correlated color temperature delta uv and NTSC ratio cannot be measured The instrument enters the non measurement state 9 Dark Me...

Страница 30: ...DARK JUDGment 1 0 ON OFF Query DARK JUDGment Response 1 0 NR1 Description Command Sets the judgment function for the dark measurement result ON is set The response of READ or FETCh DARK is 1 PASS or...

Страница 31: ...cy PULSe FREQuency is changed when this setting is set to ON be sure to check that the estimation result has succeeded the response of DARK ESTimate RESult is 1 However the dark estimation fails under...

Страница 32: ...mation function DARK EST ON DARK EST 1 Sets the modulation frequency and acquires the dark estimation result PULS ON PULS FREQ 61 0 DARK EST RES 1 Note Be sure to check the description of DARK ESTimat...

Страница 33: ...K CLEar Description Command Clears all of the dark data When the command is accepted the measured value is cleared and the instrument enters the non measurement state Query Note All of the dark data a...

Страница 34: ...alue of Chromaticity Target Value of Chromaticity Tolerance of Chromaticity Description Command Sets the target value and tolerance of the chromaticity x y When the command is accepted the measured va...

Страница 35: ...sured value is cleared and the instrument enters the non measurement state When the following conditions are satisfied the response of TARGet RESult RGB is the PASS judgment The measured value of the...

Страница 36: ...y set centroid wavelength input mode Example SCAL WAV R ON SCAL WAV R 1 SCAL WAV G OFF SCAL WAV G 0 Note is R G or B When this setting is enabled the auto range operation of the enabled color is disab...

Страница 37: ...OFFSet DATA Offset value NRf Query SCALe WAVelength OFFSet DATA Response Offset value NR3 Offset value 2 00 to 2 00 nm Description Command Sets the offset value of the centroid wavelength When the co...

Страница 38: ...etry GAIN DATA Gain value NRf Query SCALe RADiometry GAIN DATA Response Gain value NR3 Gain value 1 00000E 3 to 1 00000E 3 Description Command Sets the gain value of the radiometric quantity When the...

Страница 39: ...uery SCALe XY OFFSet DATA Response Offset value NR3 Offset value 1 0000E 00 to 1 0000E 00 Description Command Sets the offset value of the chromaticity x y The offset value is added to only the measur...

Страница 40: ...CAL PHOT GAIN ON SCAL PHOT GAIN 1 Note When the photometric quantity gain is enabled the tristimulus values XYZ of the RGB mixed light are multiplied by the same gain value Set and Query Gain Value of...

Страница 41: ...ce input 6 Unbalance Among three sensors R G and B the radiometric quantity measured by the sensor of the color indicating unbalance is 1 20 when compared to the sensor that measured the maximum radio...

Страница 42: ...ta uv NTSC Ratio E 1 0000E 90 1 0000E 80 1 0000E 70 1 0000E 99 Radiometric Quantity Tristimulus values XYZ Photometric Quantity E 1 00000E 90 1 00000E 80 1 00000E 70 1 00000E 99 Modulation Frequency F...

Страница 43: ...M READ TRG 3 7109E 01 3 4633E 01 4 24932E 03 0 Note The next command does not execute until measurement is finished TRG and ABORt are received Please do not transmit TRG and ABORt at a time TRG is han...

Страница 44: ...e last measured value of the centroid wavelength Example MODE NORM READ TRG 3 7109E 01 3 4633E 01 4 24932E 03 0 FETC WAV CENT R 6 3427E 02 0 The red centroid wavelength is 634 27 nm FETC WAV CENT G 5...

Страница 45: ...ngth Example MODE NORM READ TRG 3 7109E 01 3 4633E 01 4 24932E 03 0 FETC WAV DOM R 6 3426E 02 0 The red dominant wavelength is 634 26 nm FETC WAV DOM G 5 4012E 02 0 The green dominant wavelength is 54...

Страница 46: ...102 MODE NORM READ TRG 3 7109E 01 3 4633E 01 4 24932E 03 0 FETC RAD R 7 92924E 00 0 The red radiometric quantity is 7 92924 W m 2 FETC RAD G 4 53508E 00 0 The green radiometric quantity is 4 53508 W m...

Страница 47: ...lues XYZ are 3011 97 1211 05 and 0 172926 respectively FETC XYZ G 9 04522E 02 2 95730E 03 6 22899E 01 0 X Y and Z of the green tristimulus values XYZ are 904 522 2957 30 and 62 2899 respectively FETC...

Страница 48: ...76E 01 0 x and y of the red chromaticity x y are 0 71320 and 0 28676 respectively FETC XY G 2 3050E 01 7 5362E 01 0 x and y of the green chromaticity x y are 0 23050 and 0 75362 respectively FETC XY B...

Страница 49: ...02 0 The red photometric quantity is 551 704 lx FETC PHOT G 1 33980E 03 0 The green photometric quantity is 1339 80 lx FETC PHOT B 3 68350E 01 0 The blue photometric quantity is 36 8350 lx FETC PHOT R...

Страница 50: ...light are 0 23180 and 0 48651 respectively Note is R G B or RGB Be sure to check that the measurement status is an appropriate value If the measurement mode is not the normal measurement mode an execu...

Страница 51: ...h an angle of visibility of 10 is not supported When 10 is set an unmeasured value is returned as the measured value Query NTSC Ratio Syntax Query FETCh NTSCratio Response NTSC ratio NR3 Measurement s...

Страница 52: ...level is maximum If the measurement mode is not the normal measurement mode an execution error occurs Query Modulation Frequency Measurement Result Syntax Query FETCh PULSe Response Modulation freque...

Страница 53: ...get Value of Photometric Quantity Tolerance of Photometric Quantity For the measurement status the measurement status of the last measured value of the radiometric quantity is returned When the measur...

Страница 54: ...nd should be handled as a reference value The information that is used for the final judgment is acquired by TARGet RESult RGB In rare cases even when the measured values of the radiometric quantities...

Страница 55: ...Value of Photometric Quantity Target Value of Photometric Quantity Tolerance of Photometric Quantity Example For TM6102 MODE NORM TARG ON TARG DEV X 0 37 0 05 TARG DEV Y 0 34 0 05 TARG DEV PHOT 12000...

Страница 56: ...and SYSTem PRESet Description Resets the operation of RST and the communication setting Example SYST PRES OPC 1 Note Be sure to check that the operation is complete using OPC When the communication di...

Страница 57: ...ess showed an abnormal value This may cause the communication failure to occur The repair is needed Storage memory error The operation of the memory for storage of settings was abnormal The repair is...

Страница 58: ...ct the environment and then perform the dark measurement again Normal Measurement MODE NORM Sets the normal measurement mode READ Sets the measurement complete wait state TRG Starts the measurement 3...

Страница 59: ......

Страница 60: ......

Отзывы: