「ITTS INF.dll」修訂間的差異
跳至導覽
跳至搜尋
Vincentcheng2116(討論 | 貢獻) |
Vincentcheng2116(討論 | 貢獻) |
||
(未顯示同一使用者於中間所作的 16 次修訂) | |||
行 1: | 行 1: | ||
<big><big>Feature:</big></big> | <big><big>Feature:</big></big> | ||
* Provide inf file format access.<br> | * Provide inf file format access.<br> | ||
+ | 功能列表 | ||
+ | * 01:WriteInteger | ||
+ | * 11:ReadInteger | ||
+ | * 02:WriteFlaot | ||
+ | * 12:ReadFloat | ||
+ | * 03:WriteString | ||
+ | * 13:ReadString | ||
+ | * 20: // normal file write file Append String | ||
+ | * 21: // read file | ||
+ | * 22: // test file speed (read file with (1) or without (0) cache ) (without cache will represent USB flash accessing speed) | ||
+ | * 23: // get file information exist:1 or not:0, size, CreationTime, TLastAccessTime, LastWriteTime | ||
+ | * 30: // delete file | ||
+ | * 40: // make Dir ForceDirectories('C:\NonExistantDir\TestDir') | ||
+ | * 41: // get file's information file name, size,datetime | ||
+ | * 42: // search file and get index of that file's info ( name,create dateime, update datetime) | ||
+ | * 43: // count match files use search *.* *.inf *.txt .. count number of files match the search | ||
+ | * 80: // variable converter hex to float since version 3.7.1.26 | ||
+ | * 81: // variable converter float (single) to Hex since version 3.7.1.26 | ||
+ | |||
+ | * 說明文件 | ||
+ | ** [[檔案:ITTS INF DLL Help.docx|有框|ITTS INF DLL Help]] | ||
<big>add on feature:</big> | <big>add on feature:</big> | ||
* file access speed test. | * file access speed test. | ||
− | <big>Scrip file example:</big> | + | * add hex to float convert |
+ | * add float to hex convert '''[[檔案:Inf test.itts|縮圖]]<br>''' | ||
+ | |||
+ | |||
+ | <big>Other Scrip file example:</big> | ||
[[ITTS:ITTS_INF.DLL_example]] | [[ITTS:ITTS_INF.DLL_example]] | ||
行 256: | 行 281: | ||
|} | |} | ||
+ | |||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! Example Code: read a text file which contents below. retrieve test log data latest data | ||
+ | |- | ||
+ | | | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> read log file</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_inf.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> USB_Result;Time;VID;PID;SN;Capacity;w_speed(MB/s);R_speed(MB/s);</FieldName> | ||
+ | <FieldNumber> 8;9;10;11;12;13;14;15;</FieldNumber> | ||
+ | <ErrorCode> </ErrorCode> | ||
+ | <RetryTimes> 0</RetryTimes> | ||
+ | <RetryDelay> 0</RetryDelay> | ||
+ | <Process> </Process> | ||
+ | <FieldType> </FieldType> | ||
+ | <Parameter> | ||
+ | <i1> | ||
+ | <Content></Content> | ||
+ | <Description>Min</Description> | ||
+ | </i1> | ||
+ | <i2> | ||
+ | <Content></Content> | ||
+ | <Description>Max</Description> | ||
+ | </i2> | ||
+ | <i3> | ||
+ | <Content>21:read file</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>['&TESTPLANPATH'"log.csv"]</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>-1</Content> | ||
+ | <Description>start line</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content>-1</Content> | ||
+ | <Description>end line</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>leading string</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>end_string</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content>T44([all])</Content> | ||
+ | <Description>format string</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content></Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | |||
+ | |} | ||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! log.csv | ||
+ | |- | ||
+ | | | ||
+ | Test Result,Time,VID,PID,SN,Capacity,Write Speed,Read Speed | ||
+ | Fail,2020-04-23 08:35:00,0781,5571,4C530000080815104501,7.45 GB,3.52 MB/s,23.70 MB/s | ||
+ | Fail,2020-04-23 08:36:30,0781,5571,4C530000080815104501,7.45 GB,3.28 MB/s,24.63 MB/s | ||
+ | Fail,2020-04-23 08:37:31,0781,5571,4C530000080815104501,7.45 GB,3.23 MB/s,23.70 MB/s | ||
+ | Fail,2020-04-23 09:02:13,0781,5571,4C530000080815104501,7.45 GB,3.50 MB/s,22.88 MB/s | ||
+ | Fail,2020-04-23 09:02:57,0781,5571,4C530000080815104501,7.45 GB,3.40 MB/s,24.63 MB/s | ||
+ | Pass,2020-04-23 09:03:11,0781,5591,4C531001440215112065,28.64 GB,107.53 MB/s,128.21 MB/s | ||
+ | Pass,2020-04-23 09:03:48,0781,5591,4C531001440215112065,28.64 GB,91.74 MB/s,106.38 MB/s | ||
+ | Fail,2020-04-23 09:32:38,0781,5571,4C530000080815104501,7.45 GB,2.79 MB/s,22.08 MB/s | ||
+ | Fail,2020-04-23 09:35:28,0781,5571,4C530000080815104501,7.45 GB,3.37 MB/s,22.08 MB/s | ||
+ | Fail,2020-04-23 09:49:04,0781,5571,4C530000080815104501,7.45 GB,3.25 MB/s,22.83 MB/s | ||
+ | Pass,2020-04-23 09:50:04,0781,5591,4C531001440215112065,28.64 GB,23.75 MB/s,33.67 MB/s | ||
+ | Pass,2020-04-23 10:09:34,0781,5591,4C531001440215112065,28.64 GB,22.83 MB/s,33.67 MB/s | ||
+ | Pass,2020-04-23 15:48:34,0781,5591,4C531001440215112065,28.64 GB,23.75 MB/s,33.67 MB/s | ||
+ | |} | ||
+ | |||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! hex to float function and Single to Hex function example | ||
+ | |- | ||
+ | | | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> hex to float</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_inf.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> hex_to_float</FieldName> | ||
+ | <FieldNumber> 8</FieldNumber> | ||
+ | <ErrorCode> </ErrorCode> | ||
+ | <RetryTimes> 0</RetryTimes> | ||
+ | <RetryDelay> 0</RetryDelay> | ||
+ | <Process> </Process> | ||
+ | <FieldType> </FieldType> | ||
+ | <Parameter> | ||
+ | <i1> | ||
+ | <Content></Content> | ||
+ | <Description>Min</Description> | ||
+ | </i1> | ||
+ | <i2> | ||
+ | <Content></Content> | ||
+ | <Description>Max</Description> | ||
+ | </i2> | ||
+ | <i3> | ||
+ | <Content>80:hex_to_float</Content> | ||
+ | <Description>cmd</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>['&TESTPLANPATH']</Content> | ||
+ | <Description>Value4 path</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>41F3D968</Content> | ||
+ | <Description>Value5 Hex</Description> | ||
+ | </i5> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> float to hex</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_inf.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> float_to_hex</FieldName> | ||
+ | <FieldNumber> 9</FieldNumber> | ||
+ | <ErrorCode> </ErrorCode> | ||
+ | <RetryTimes> 0</RetryTimes> | ||
+ | <RetryDelay> 0</RetryDelay> | ||
+ | <Process> </Process> | ||
+ | <FieldType> </FieldType> | ||
+ | <Parameter> | ||
+ | <i1> | ||
+ | <Content></Content> | ||
+ | <Description>Min</Description> | ||
+ | </i1> | ||
+ | <i2> | ||
+ | <Content></Content> | ||
+ | <Description>Max</Description> | ||
+ | </i2> | ||
+ | <i3> | ||
+ | <Content>81:Single_to_hex</Content> | ||
+ | <Description>cmd</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>['&TESTPLANPATH']</Content> | ||
+ | <Description>Value4 path</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>3.12345</Content> | ||
+ | <Description>Value5 Hex</Description> | ||
+ | </i5> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
<br> | <br> | ||
[http://intretech-tw.synology.me/mediawiki/index.php?title=DLL_Related_DOC back to DLLs list] | [http://intretech-tw.synology.me/mediawiki/index.php?title=DLL_Related_DOC back to DLLs list] |
於 2020年11月20日 (五) 15:22 的最新修訂
Feature:
- Provide inf file format access.
功能列表
- 01:WriteInteger
- 11:ReadInteger
- 02:WriteFlaot
- 12:ReadFloat
- 03:WriteString
- 13:ReadString
- 20: // normal file write file Append String
- 21: // read file
- 22: // test file speed (read file with (1) or without (0) cache ) (without cache will represent USB flash accessing speed)
- 23: // get file information exist:1 or not:0, size, CreationTime, TLastAccessTime, LastWriteTime
- 30: // delete file
- 40: // make Dir ForceDirectories('C:\NonExistantDir\TestDir')
- 41: // get file's information file name, size,datetime
- 42: // search file and get index of that file's info ( name,create dateime, update datetime)
- 43: // count match files use search *.* *.inf *.txt .. count number of files match the search
- 80: // variable converter hex to float since version 3.7.1.26
- 81: // variable converter float (single) to Hex since version 3.7.1.26
add on feature:
- file access speed test.
- add hex to float convert
- add float to hex convert 檔案:Inf test.itts
Other Scrip file example:
ITTS:ITTS_INF.DLL_example
WriteString, ReadInteger, ReadString example (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> 03:WriteString</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_inf.dll</ItemCommand> <FailAction> </FailAction> <FieldName> Ind_StringW</FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>03:WriteString</Content> <Description>P3 command</Description> </i3> <i4> <Content>['&TESTPLANPATH'"AAA.inf"]</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>Section1</Content> <Description>P5 Section Name</Description> </i5> <i6> <Content>Ind_String</Content> <Description>P6 Iden</Description> </i6> <i7> <Content>ABCDEF</Content> <Description>P7 Value</Description> </i7> <i8> <Content></Content> <Description>P8 default value</Description> </i8> <i9> <Content></Content> <Description>P9 StringProc</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> <Item> <Text> </Text> <Description> 11:ReadInteger</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_inf.dll</ItemCommand> <FailAction> </FailAction> <FieldName> Ind_Int</FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>11:ReadInteger</Content> <Description>P3 command</Description> </i3> <i4> <Content>['&TESTPLANPATH'"AAA.inf"]</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>Section1</Content> <Description>P5 Section Name</Description> </i5> <i6> <Content>Ind_Int</Content> <Description>P6 Iden</Description> </i6> <i7> <Content></Content> <Description>P7 Value</Description> </i7> <i8> <Content>54321</Content> <Description>P8 default value</Description> </i8> <i9> <Content></Content> <Description>P9 StringProc</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> <Item> <Text> </Text> <Description> 13:ReadString</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_inf.dll</ItemCommand> <FailAction> </FailAction> <FieldName> Ind_String</FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>13:ReadString</Content> <Description>P3 command</Description> </i3> <i4> <Content>['&TESTPLANPATH'"AAA.inf"]</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>Section1</Content> <Description>P5 Section Name</Description> </i5> <i6> <Content>Ind_String</Content> <Description>P6 Iden</Description> </i6> <i7> <Content></Content> <Description>P7 Value</Description> </i7> <i8> <Content>['&TESTPLANPATH'"QWERT"]</Content> <Description>P8 default value</Description> </i8> <i9> <Content></Content> <Description>P9 StringProc</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> |
Example Code: file access time c: (need a Test.txt 100k size of file to test) |
---|
<Item> <Text> </Text> <Description> file access time c:</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_inf.dll</ItemCommand> <FailAction> </FailAction> <FieldName> HD_C_speed(kB/S);HD_C_D_T</FieldName> <FieldNumber> 16;17</FieldNumber> <ErrorCode> Err001</ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>22:accesstime</Content> <Description>P3 command</Description> </i3> <i4> <Content>['&TESTPLANPATH'"Test.txt"]</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>0</Content> <Description>cache1 or without0</Description> </i5> <i6> <Content>2</Content> <Description>test time for avg</Description> </i6> <i7> <Content>1</Content> <Description>skip first time</Description> </i7> <i8> <Content></Content> <Description>nil</Description> </i8> <i9> <Content></Content> <Description>format string</Description> </i9> <i10> <Content>1</Content> <Description>debug mode</Description> </i10> </Parameter> </Item> |
Example Code: read a text file which contents below. retrieve test log data latest data |
---|
<Item> <Text> </Text> <Description> read log file</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_inf.dll</ItemCommand> <FailAction> </FailAction> <FieldName> USB_Result;Time;VID;PID;SN;Capacity;w_speed(MB/s);R_speed(MB/s);</FieldName> <FieldNumber> 8;9;10;11;12;13;14;15;</FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>21:read file</Content> <Description>P3 command</Description> </i3> <i4> <Content>['&TESTPLANPATH'"log.csv"]</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>-1</Content> <Description>start line</Description> </i5> <i6> <Content>-1</Content> <Description>end line</Description> </i6> <i7> <Content></Content> <Description>leading string</Description> </i7> <i8> <Content></Content> <Description>end_string</Description> </i8> <i9> <Content>T44([all])</Content> <Description>format string</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> |
log.csv |
---|
Test Result,Time,VID,PID,SN,Capacity,Write Speed,Read Speed Fail,2020-04-23 08:35:00,0781,5571,4C530000080815104501,7.45 GB,3.52 MB/s,23.70 MB/s Fail,2020-04-23 08:36:30,0781,5571,4C530000080815104501,7.45 GB,3.28 MB/s,24.63 MB/s Fail,2020-04-23 08:37:31,0781,5571,4C530000080815104501,7.45 GB,3.23 MB/s,23.70 MB/s Fail,2020-04-23 09:02:13,0781,5571,4C530000080815104501,7.45 GB,3.50 MB/s,22.88 MB/s Fail,2020-04-23 09:02:57,0781,5571,4C530000080815104501,7.45 GB,3.40 MB/s,24.63 MB/s Pass,2020-04-23 09:03:11,0781,5591,4C531001440215112065,28.64 GB,107.53 MB/s,128.21 MB/s Pass,2020-04-23 09:03:48,0781,5591,4C531001440215112065,28.64 GB,91.74 MB/s,106.38 MB/s Fail,2020-04-23 09:32:38,0781,5571,4C530000080815104501,7.45 GB,2.79 MB/s,22.08 MB/s Fail,2020-04-23 09:35:28,0781,5571,4C530000080815104501,7.45 GB,3.37 MB/s,22.08 MB/s Fail,2020-04-23 09:49:04,0781,5571,4C530000080815104501,7.45 GB,3.25 MB/s,22.83 MB/s Pass,2020-04-23 09:50:04,0781,5591,4C531001440215112065,28.64 GB,23.75 MB/s,33.67 MB/s Pass,2020-04-23 10:09:34,0781,5591,4C531001440215112065,28.64 GB,22.83 MB/s,33.67 MB/s Pass,2020-04-23 15:48:34,0781,5591,4C531001440215112065,28.64 GB,23.75 MB/s,33.67 MB/s |
hex to float function and Single to Hex function example |
---|
<Item> <Text> </Text> <Description> hex to float</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_inf.dll</ItemCommand> <FailAction> </FailAction> <FieldName> hex_to_float</FieldName> <FieldNumber> 8</FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>80:hex_to_float</Content> <Description>cmd</Description> </i3> <i4> <Content>['&TESTPLANPATH']</Content> <Description>Value4 path</Description> </i4> <i5> <Content>41F3D968</Content> <Description>Value5 Hex</Description> </i5> </Parameter> </Item> <Item> <Text> </Text> <Description> float to hex</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_inf.dll</ItemCommand> <FailAction> </FailAction> <FieldName> float_to_hex</FieldName> <FieldNumber> 9</FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>81:Single_to_hex</Content> <Description>cmd</Description> </i3> <i4> <Content>['&TESTPLANPATH']</Content> <Description>Value4 path</Description> </i4> <i5> <Content>3.12345</Content> <Description>Value5 Hex</Description> </i5> </Parameter> </Item> |