Details setting of the output directory etc.

Details setting of the output directory etc.
This page details information of the setting of the output directory etc..

  1. How to change directory of save logging files.
  2. How to change max file-size of a logging file.
  3. How to output to a logging file HEX information.
  4. How to output to CSV file Total data.
  5. How to set timer of Total data.
  6. How to output to Binary file all Serial data.

  1. If you want to show window of setting of the output directory etc.,you will click on “Setting…” in Main Window.
    * If this software is executing log, you must stop log.



    How to change directory of save logging files.
    If you want to change directory of save logging files, you will input or set “SECS Log Directry”.

    [Commentary]
    This software will save logged files to directory you will input.
    So,default directory is that this software is installed,and “\log”.
    Please click on a “…” button when hesitating so that you may input it. You will notice following window.
    You will select derectory on following window, more you will click “OK” button.
    This item will be set derectory that you selected.

    How to change max file-size of a logging file.
    If you want to change max file-size of a logging file, you will input “Maximum size of one file(MB)”.

    [Commentary]
    This software will write in a file to size you will input. This item range is from 1 to 50 (MB).
    This item default value is 2(MB).
    The file name is automatically changed when the size of the file specified here is exceeded, and logging is continued.
    For instance, let’s assume to start at 2007/07/29 10:00:00 for logging , and the size of the file specified was exceeded at 2007/07/30 20:00:00.
    In this case, the following two files exist.
    20070729_100000_000.txt
    20070730_200000_000.txt
    * In this case, it continues, SECS Message will be written to “20070730_200000_000.txt”.
    How to output to a logging file HEX information.
    If you want to output to a logging file HEX information, you will check “Output to Binary information”.

    [Commentary]

    For example, if this item is checked, you will notice following information written in the logged file.
    # send... [ COM4 ] 
    #  size = 25 (0x19)
    #  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F     0123456789ABCFEF
    #  80 00 01 02 80 01 00 00 00 11 01 02 41 06 42 47     ... .......A.BG 
    #  53 45 43 53 41 03 31 2e 30 03 e9                   SECSA.1.0.  
    
    >> (s) 2009/02/18 14:41:18 [0x02 0000001C 19 80000102800100000011]
    <S01F02  
        <L[2]
            <A[6]    "BGSECS">
            <A[3]    "1.0">
        >
    >
    << (e)
    								
    if this item is not checked, you will notice following information written in the logged file.
    # send... [ COM4 ] 
    >> (s) 2009/02/18 14:41:18 [0x02 0000001C 19 80000102800100000011]
    <S01F02  
        <L[2]
            <A[6]    "BGSECS">
            <A[3]    "1.0">
        >
    >
    << (e)
    								
    How to output to CSV file Total data.
    If you want to output to CSV file Total data, you will check “Output to Total data”.
    If this item is not checked, CSV-file of total data will be not created.

    CSV-file is saved to same directory of “SECS Log Directry”.
    How to set timer of Total data.
    If you check “Output to Total data”, you should input “Total data timer(SEC)”.
    This item range is from 1 to 60(sec).
    For example, if you input 11 to this item, the Total data of every 11 seconds will be added to CSV-file.
    How to output to Binary file all Serial data.
    If you want to output to Binary file all Serial data, you will check “Output to All Serial data”.
    Binary-file is saved to same directory of “SECS Log Directry”.
    If this item is not checked, Binary-file of total data will be not created.
    Structure of Binary-file
     7                     0
    +--+--+--+--+--+--+--+--+
    +-----------------------+ 
    | HEADER#1              | 
    +-----------------------+ 
    | HEADER#2-1            | 
    +-----------------------+ 
    ~                       ~ 
    | DATA INFOMATION-1     | 
    ~                       ~ 
    |                       | 
    +-----------------------+ 
    | HEADER#2-2            | 
    +-----------------------+ 
    ~                       ~ 
    | DATA INFOMATION-2     | 
    ~                       ~ 
    +-----------------------+ 
    |                       | 
    ~                       ~ 
    |                       | 
    +-----------------------+ 
    
    Structure of HEADER#1(None endian conversion)
    
     7                     0
    +--+--+--+--+--+--+--+--+
    +-----------------------+ 
    |                       | 0
    | Header byte size      | 
    |                       | 
    |                       | 3
    +-----------------------+ 
    |                       | 4
    | Version               | 
    |                       | 
    |                       | 7
    +-----------------------+ 
    |                       | 8
    | sign of version       | 
    |                       | 
    |                       | 11
    +-----------------------+ 
    |                       | 12
    | count of              | 
    |        written data   | 
    |                       | 15
    +-----------------------+ 
    |                       | 16
    | Serial Port Name      | 
    |  ( ex) 'COM1' )       | :
    |                       | 35
    +-----------------------+ 
    |                       | 36
    | Serial Port Number    | 
    |  ( ex) 1 )            | :
    |                       | 39
    +-----------------------+ 
    |                       | 40
    |   date time of start  | 
    |         :             | :
    |                       | 55
    +-----------------------+ 
    |                       | 56
    |   date time of end    | 
    |         :             | :
    |                       | 71
    +-----------------------+ 
    
    Structure of HEADER#2(None endian conversion)
    
     7                     0
    +--+--+--+--+--+--+--+--+
    +-----------------------+ 
    |                       | 0
    | Header byte size      | 
    |                       | 
    |                       | 3
    +-----------------------+ 
    |                       | 4
    | Data byte size        | 
    |                       | 
    |                       | 7
    +-----------------------+ 
    |                       | 8
    | count of added data   | 
    |                       | 
    |                       | 11
    +-----------------------+ 
    |                       | 12
    |   Reserved            | 
    |                       | 
    |                       | 15
    +-----------------------+ 
    |                       | 16
    |   date time           | 
    |                       | 
    |                       | 31
    +-----------------------+ 
    |                       | 32
    |   Reserved            | 
    |                       | 
    |                       | 35
    +-----------------------+ 
    
    * Always , following data is added to header of each data.
    
     7                     0
    +--+--+--+--+--+--+--+--+
    +-----------------------+ 
    |                       | 0
    | Reserved              | 
    |                       | :
    |                       | 
    |                       | 15
    +-----------------------+ 
    |                       | 16
    | Data Size             | 
    |                       | 
    |                       | 19
    +-----------------------+ 
    |                       | 20
    | Data Kind             | 
    |                       | 
    |                       | 23
    +-----------------------+ 
    * Data Kind : 
    	0=	Serial port Open
    	1=	Serial port Read(Receive)
    	2=	Serial port Write(Send)
    	3=	Serial port Close
    	4=	Serial port Flush
    	5=	Serial port Setting#1
    	6=	Serial port Setting#2
    

    When the edit is finished, the “OK” button is clicked. Set information is reflected.


    < Back |