Commit f7f02fe7 authored by Zhukov, Alexander P's avatar Zhukov, Alexander P
Browse files

Added Timestamp

parent 66ff9a14
......@@ -46,6 +46,26 @@
<Property Name="NI.ClassItem.State" Type="Int">1082401280</Property>
</Item>
</Item>
<Item Name="Polymorphic" Type="Folder">
<Item Name="WriteDescr.vi" Type="VI" URL="../WriteDescr.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%S!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!Z!-0````]&amp;2'6T9X)!,%"Q!"Y!!"131GFO5X2P=G&amp;H:3ZM&gt;G.M98.T!!!.1GFO5X2P=G&amp;H:3"J&lt;A"B!0!!$!!$!!1!"!!&amp;!!1!"!!%!!1!"A!%!!=!#!-!!(A!!!U)!!!!!!!!!!!!!!U,!!!!!!!!!!!!!!!!!!!!!!!!#A!!!!!!!!%+!!!!%A!!$1!!!!Q!!!!!!!!!!!!!!1!*!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342710288</Property>
</Item>
<Item Name="WriteTag.vi" Type="VI" URL="../WriteTag.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%Q!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!R!-0````]$6'&amp;H!#R!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$5*J&lt;F.U&lt;X*B:W5A;7Y!91$Q!!Q!!Q!%!!1!"1!%!!1!"!!%!!9!"!!(!!A$!!"Y!!!.#!!!!!!!!!!!!!!.#Q!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!"#A!!!")!!!U!!!!-!!!!!!!!!!!!!!%!#1!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342710288</Property>
</Item>
</Item>
<Item Name="Close.vi" Type="VI" URL="../Close.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%;!!!!#Q!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!!V!#!!'9X6S=W^S!!!71%!!!@````]!"1BD&lt;WZU:7ZU=Q!!$E!S`````Q2Q982I!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#R!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$5*J&lt;F.U&lt;X*B:W5A;7Y!6!$Q!!Q!!Q!%!!9!"Q!%!!1!"!!%!!A!"!!%!!E$!!"Y!!!*!!!!!!!!!!E!!!!*!!!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!!!!!!!*)!!!!!!1!+!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
......@@ -91,14 +111,14 @@
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342710272</Property>
</Item>
<Item Name="WriteDescr.vi" Type="VI" URL="../WriteDescr.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%F!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!Z!-0````]&amp;2'6T9X)!,%"Q!"Y!!"131GFO5X2P=G&amp;H:3ZM&gt;G.M98.T!!!.1GFO5X2P=G&amp;H:3"J&lt;A"5!0!!$!!$!!1!"!!&amp;!!1!"!!%!!1!"A!%!!=!#!-!!(A!!!U)!!!!!!!!!!!!!)U,!!!!!!!!!!!!!!!!!!!!!!!!#A!!!!!!!!%+!!!!EA!!!!!"!!E!!!!!</Property>
<Item Name="Write.vi" Type="VI" URL="../Write.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!!1!!!!!1!)!0+52/&gt;!!!%!!!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">false</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082401296</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082143248</Property>
</Item>
<Item Name="WriteLongString.vi" Type="VI" URL="../WriteLongString.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%H!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!""!-0````]'5X2S;7ZH!!!M1(!!(A!!&amp;"*#;7Z4&gt;'^S97&gt;F,GRW9WRB=X-!!!V#;7Z4&gt;'^S97&gt;F)'FO!&amp;1!]!!-!!-!"!!%!!5!"!!%!!1!"!!'!!1!"Q!)!A!!?!!!$1A!!!!!!!!!!!!!D1M!!!!!!!!!!!!!!!!!!!!!!!!)!!!!!!!!!1I!!!#3!!!!!!%!#1!!!!!</Property>
......@@ -127,13 +147,4 @@
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1074541056</Property>
</Item>
<Item Name="WriteTag.vi" Type="VI" URL="../WriteTag.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%D!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!R!-0````]$6'&amp;H!#R!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$5*J&lt;F.U&lt;X*B:W5A;7Y!6!$Q!!Q!!Q!%!!1!"1!%!!1!"!!%!!9!"!!(!!A$!!"Y!!!.#!!!!!!!!!!!!!#.#Q!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!"#A!!!*)!!!!!!1!*!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">false</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1107821072</Property>
</Item>
</LVClass>
......@@ -25,6 +25,8 @@
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="TestStorage.vi" Type="VI" URL="../TestStorage.vi"/>
<Item Name="BinStorage.lvclass" Type="LVClass" URL="../BinStorage.lvclass"/>
<Item Name="WriteName.vi" Type="VI" URL="../WriteName.vi"/>
<Item Name="WriteTimestamp.vi" Type="VI" URL="../WriteTimestamp.vi"/>
<Item Name="Dependencies" Type="Dependencies"/>
<Item Name="Build Specifications" Type="Build"/>
</Item>
......
No preview for this file type
File added
No preview for this file type
File added
No preview for this file type
......@@ -6,9 +6,23 @@ Created on Wed Jan 22 17:25:26 2020
@author: az9
"""
from array import array
from datetime import datetime as dt
def name(file, rec):
length = read_size(file,False)
description = file.read(length).decode()
rec['name'] = description
return True
def tst(file,rec):
bytes = file.read(8)
ar = array('I',bytes)
ar.byteswap()
t=dt.fromtimestamp(ar[0]+ar[1]*1E-9)
rec['timestamp']=t
return True
def description(file, rec):
length = read_size(file,True)
......@@ -32,9 +46,14 @@ def end_file(file, rec):
return False
parser = {
5: description,
4: tag,
1: name,
2: tst,
254: end_record,
255: end_file
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment